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/networking/network_ip_bgp_peer_groups_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ip_bgp_peer_groups_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewNetworkIPBgpPeerGroupsCreateParams creates a new NetworkIPBgpPeerGroupsCreateParams 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 NewNetworkIPBgpPeerGroupsCreateParams() *NetworkIPBgpPeerGroupsCreateParams { return &NetworkIPBgpPeerGroupsCreateParams{ timeout: cr.DefaultTimeout, } } // NewNetworkIPBgpPeerGroupsCreateParamsWithTimeout creates a new NetworkIPBgpPeerGroupsCreateParams object // with the ability to set a timeout on a request. func NewNetworkIPBgpPeerGroupsCreateParamsWithTimeout(timeout time.Duration) *NetworkIPBgpPeerGroupsCreateParams { return &NetworkIPBgpPeerGroupsCreateParams{ timeout: timeout, } } // NewNetworkIPBgpPeerGroupsCreateParamsWithContext creates a new NetworkIPBgpPeerGroupsCreateParams object // with the ability to set a context for a request. func NewNetworkIPBgpPeerGroupsCreateParamsWithContext(ctx context.Context) *NetworkIPBgpPeerGroupsCreateParams { return &NetworkIPBgpPeerGroupsCreateParams{ Context: ctx, } } // NewNetworkIPBgpPeerGroupsCreateParamsWithHTTPClient creates a new NetworkIPBgpPeerGroupsCreateParams object // with the ability to set a custom HTTPClient for a request. func NewNetworkIPBgpPeerGroupsCreateParamsWithHTTPClient(client *http.Client) *NetworkIPBgpPeerGroupsCreateParams { return &NetworkIPBgpPeerGroupsCreateParams{ HTTPClient: client, } } /* NetworkIPBgpPeerGroupsCreateParams contains all the parameters to send to the API endpoint for the network ip bgp peer groups create operation. Typically these are written to a http.Request. */ type NetworkIPBgpPeerGroupsCreateParams struct { /* Info. Peer group parameters */ Info *models.BgpPeerGroup /* 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 network ip bgp peer groups create params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkIPBgpPeerGroupsCreateParams) WithDefaults() *NetworkIPBgpPeerGroupsCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the network ip bgp peer groups create params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkIPBgpPeerGroupsCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) ) val := NetworkIPBgpPeerGroupsCreateParams{ ReturnRecords: &returnRecordsDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the network ip bgp peer groups create params func (o *NetworkIPBgpPeerGroupsCreateParams) WithTimeout(timeout time.Duration) *NetworkIPBgpPeerGroupsCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the network ip bgp peer groups create params func (o *NetworkIPBgpPeerGroupsCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the network ip bgp peer groups create params func (o *NetworkIPBgpPeerGroupsCreateParams) WithContext(ctx context.Context) *NetworkIPBgpPeerGroupsCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the network ip bgp peer groups create params func (o *NetworkIPBgpPeerGroupsCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the network ip bgp peer groups create params func (o *NetworkIPBgpPeerGroupsCreateParams) WithHTTPClient(client *http.Client) *NetworkIPBgpPeerGroupsCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the network ip bgp peer groups create params func (o *NetworkIPBgpPeerGroupsCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the network ip bgp peer groups create params func (o *NetworkIPBgpPeerGroupsCreateParams) WithInfo(info *models.BgpPeerGroup) *NetworkIPBgpPeerGroupsCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the network ip bgp peer groups create params func (o *NetworkIPBgpPeerGroupsCreateParams) SetInfo(info *models.BgpPeerGroup) { o.Info = info } // WithReturnRecords adds the returnRecords to the network ip bgp peer groups create params func (o *NetworkIPBgpPeerGroupsCreateParams) WithReturnRecords(returnRecords *bool) *NetworkIPBgpPeerGroupsCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the network ip bgp peer groups create params func (o *NetworkIPBgpPeerGroupsCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WriteToRequest writes these params to a swagger request func (o *NetworkIPBgpPeerGroupsCreateParams) 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/networking/network_ip_routes_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ip_routes_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewNetworkIPRoutesGetParams creates a new NetworkIPRoutesGetParams 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 NewNetworkIPRoutesGetParams() *NetworkIPRoutesGetParams { return &NetworkIPRoutesGetParams{ timeout: cr.DefaultTimeout, } } // NewNetworkIPRoutesGetParamsWithTimeout creates a new NetworkIPRoutesGetParams object // with the ability to set a timeout on a request. func NewNetworkIPRoutesGetParamsWithTimeout(timeout time.Duration) *NetworkIPRoutesGetParams { return &NetworkIPRoutesGetParams{ timeout: timeout, } } // NewNetworkIPRoutesGetParamsWithContext creates a new NetworkIPRoutesGetParams object // with the ability to set a context for a request. func NewNetworkIPRoutesGetParamsWithContext(ctx context.Context) *NetworkIPRoutesGetParams { return &NetworkIPRoutesGetParams{ Context: ctx, } } // NewNetworkIPRoutesGetParamsWithHTTPClient creates a new NetworkIPRoutesGetParams object // with the ability to set a custom HTTPClient for a request. func NewNetworkIPRoutesGetParamsWithHTTPClient(client *http.Client) *NetworkIPRoutesGetParams { return &NetworkIPRoutesGetParams{ HTTPClient: client, } } /* NetworkIPRoutesGetParams contains all the parameters to send to the API endpoint for the network ip routes get operation. Typically these are written to a http.Request. */ type NetworkIPRoutesGetParams struct { /* DestinationAddress. Filter by destination.address */ DestinationAddress *string /* DestinationFamily. Filter by destination.family */ DestinationFamily *string /* DestinationNetmask. Filter by destination.netmask */ DestinationNetmask *string /* Fields. Specify the fields to return. */ Fields []string /* Gateway. Filter by gateway */ Gateway *string /* InterfacesIPAddress. Filter by interfaces.ip.address */ InterfacesIPAddress *string /* InterfacesName. Filter by interfaces.name */ InterfacesName *string /* InterfacesUUID. Filter by interfaces.uuid */ InterfacesUUID *string /* IpspaceName. Filter by ipspace.name */ IpspaceName *string /* IpspaceUUID. Filter by ipspace.uuid */ IpspaceUUID *string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* Metric. Filter by metric */ Metric *int64 /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* Scope. Filter by scope */ Scope *string /* SvmName. Filter by svm.name */ SvmName *string /* SvmUUID. Filter by svm.uuid */ SvmUUID *string /* UUID. Filter by uuid */ UUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the network ip routes get params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkIPRoutesGetParams) WithDefaults() *NetworkIPRoutesGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the network ip routes get params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkIPRoutesGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := NetworkIPRoutesGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithTimeout(timeout time.Duration) *NetworkIPRoutesGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithContext(ctx context.Context) *NetworkIPRoutesGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithHTTPClient(client *http.Client) *NetworkIPRoutesGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithDestinationAddress adds the destinationAddress to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithDestinationAddress(destinationAddress *string) *NetworkIPRoutesGetParams { o.SetDestinationAddress(destinationAddress) return o } // SetDestinationAddress adds the destinationAddress to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetDestinationAddress(destinationAddress *string) { o.DestinationAddress = destinationAddress } // WithDestinationFamily adds the destinationFamily to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithDestinationFamily(destinationFamily *string) *NetworkIPRoutesGetParams { o.SetDestinationFamily(destinationFamily) return o } // SetDestinationFamily adds the destinationFamily to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetDestinationFamily(destinationFamily *string) { o.DestinationFamily = destinationFamily } // WithDestinationNetmask adds the destinationNetmask to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithDestinationNetmask(destinationNetmask *string) *NetworkIPRoutesGetParams { o.SetDestinationNetmask(destinationNetmask) return o } // SetDestinationNetmask adds the destinationNetmask to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetDestinationNetmask(destinationNetmask *string) { o.DestinationNetmask = destinationNetmask } // WithFields adds the fields to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithFields(fields []string) *NetworkIPRoutesGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetFields(fields []string) { o.Fields = fields } // WithGateway adds the gateway to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithGateway(gateway *string) *NetworkIPRoutesGetParams { o.SetGateway(gateway) return o } // SetGateway adds the gateway to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetGateway(gateway *string) { o.Gateway = gateway } // WithInterfacesIPAddress adds the interfacesIPAddress to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithInterfacesIPAddress(interfacesIPAddress *string) *NetworkIPRoutesGetParams { o.SetInterfacesIPAddress(interfacesIPAddress) return o } // SetInterfacesIPAddress adds the interfacesIpAddress to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetInterfacesIPAddress(interfacesIPAddress *string) { o.InterfacesIPAddress = interfacesIPAddress } // WithInterfacesName adds the interfacesName to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithInterfacesName(interfacesName *string) *NetworkIPRoutesGetParams { o.SetInterfacesName(interfacesName) return o } // SetInterfacesName adds the interfacesName to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetInterfacesName(interfacesName *string) { o.InterfacesName = interfacesName } // WithInterfacesUUID adds the interfacesUUID to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithInterfacesUUID(interfacesUUID *string) *NetworkIPRoutesGetParams { o.SetInterfacesUUID(interfacesUUID) return o } // SetInterfacesUUID adds the interfacesUuid to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetInterfacesUUID(interfacesUUID *string) { o.InterfacesUUID = interfacesUUID } // WithIpspaceName adds the ipspaceName to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithIpspaceName(ipspaceName *string) *NetworkIPRoutesGetParams { o.SetIpspaceName(ipspaceName) return o } // SetIpspaceName adds the ipspaceName to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetIpspaceName(ipspaceName *string) { o.IpspaceName = ipspaceName } // WithIpspaceUUID adds the ipspaceUUID to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithIpspaceUUID(ipspaceUUID *string) *NetworkIPRoutesGetParams { o.SetIpspaceUUID(ipspaceUUID) return o } // SetIpspaceUUID adds the ipspaceUuid to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetIpspaceUUID(ipspaceUUID *string) { o.IpspaceUUID = ipspaceUUID } // WithMaxRecords adds the maxRecords to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithMaxRecords(maxRecords *int64) *NetworkIPRoutesGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithMetric adds the metric to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithMetric(metric *int64) *NetworkIPRoutesGetParams { o.SetMetric(metric) return o } // SetMetric adds the metric to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetMetric(metric *int64) { o.Metric = metric } // WithOrderBy adds the orderBy to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithOrderBy(orderBy []string) *NetworkIPRoutesGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithReturnRecords(returnRecords *bool) *NetworkIPRoutesGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithReturnTimeout(returnTimeout *int64) *NetworkIPRoutesGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithScope adds the scope to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithScope(scope *string) *NetworkIPRoutesGetParams { o.SetScope(scope) return o } // SetScope adds the scope to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetScope(scope *string) { o.Scope = scope } // WithSvmName adds the svmName to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithSvmName(svmName *string) *NetworkIPRoutesGetParams { o.SetSvmName(svmName) return o } // SetSvmName adds the svmName to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetSvmName(svmName *string) { o.SvmName = svmName } // WithSvmUUID adds the svmUUID to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithSvmUUID(svmUUID *string) *NetworkIPRoutesGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetSvmUUID(svmUUID *string) { o.SvmUUID = svmUUID } // WithUUID adds the uuid to the network ip routes get params func (o *NetworkIPRoutesGetParams) WithUUID(uuid *string) *NetworkIPRoutesGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the network ip routes get params func (o *NetworkIPRoutesGetParams) SetUUID(uuid *string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *NetworkIPRoutesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.DestinationAddress != nil { // query param destination.address var qrDestinationAddress string if o.DestinationAddress != nil { qrDestinationAddress = *o.DestinationAddress } qDestinationAddress := qrDestinationAddress if qDestinationAddress != "" { if err := r.SetQueryParam("destination.address", qDestinationAddress); err != nil { return err } } } if o.DestinationFamily != nil { // query param destination.family var qrDestinationFamily string if o.DestinationFamily != nil { qrDestinationFamily = *o.DestinationFamily } qDestinationFamily := qrDestinationFamily if qDestinationFamily != "" { if err := r.SetQueryParam("destination.family", qDestinationFamily); err != nil { return err } } } if o.DestinationNetmask != nil { // query param destination.netmask var qrDestinationNetmask string if o.DestinationNetmask != nil { qrDestinationNetmask = *o.DestinationNetmask } qDestinationNetmask := qrDestinationNetmask if qDestinationNetmask != "" { if err := r.SetQueryParam("destination.netmask", qDestinationNetmask); 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.Gateway != nil { // query param gateway var qrGateway string if o.Gateway != nil { qrGateway = *o.Gateway } qGateway := qrGateway if qGateway != "" { if err := r.SetQueryParam("gateway", qGateway); err != nil { return err } } } if o.InterfacesIPAddress != nil { // query param interfaces.ip.address var qrInterfacesIPAddress string if o.InterfacesIPAddress != nil { qrInterfacesIPAddress = *o.InterfacesIPAddress } qInterfacesIPAddress := qrInterfacesIPAddress if qInterfacesIPAddress != "" { if err := r.SetQueryParam("interfaces.ip.address", qInterfacesIPAddress); err != nil { return err } } } if o.InterfacesName != nil { // query param interfaces.name var qrInterfacesName string if o.InterfacesName != nil { qrInterfacesName = *o.InterfacesName } qInterfacesName := qrInterfacesName if qInterfacesName != "" { if err := r.SetQueryParam("interfaces.name", qInterfacesName); err != nil { return err } } } if o.InterfacesUUID != nil { // query param interfaces.uuid var qrInterfacesUUID string if o.InterfacesUUID != nil { qrInterfacesUUID = *o.InterfacesUUID } qInterfacesUUID := qrInterfacesUUID if qInterfacesUUID != "" { if err := r.SetQueryParam("interfaces.uuid", qInterfacesUUID); 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.Metric != nil { // query param metric var qrMetric int64 if o.Metric != nil { qrMetric = *o.Metric } qMetric := swag.FormatInt64(qrMetric) if qMetric != "" { if err := r.SetQueryParam("metric", qMetric); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.Scope != nil { // query param scope var qrScope string if o.Scope != nil { qrScope = *o.Scope } qScope := qrScope if qScope != "" { if err := r.SetQueryParam("scope", qScope); err != nil { return err } } } if o.SvmName != nil { // query param svm.name var qrSvmName string if o.SvmName != nil { qrSvmName = *o.SvmName } qSvmName := qrSvmName if qSvmName != "" { if err := r.SetQueryParam("svm.name", qSvmName); err != nil { return err } } } if o.SvmUUID != nil { // query param svm.uuid var qrSvmUUID string if o.SvmUUID != nil { qrSvmUUID = *o.SvmUUID } qSvmUUID := qrSvmUUID if qSvmUUID != "" { if err := r.SetQueryParam("svm.uuid", qSvmUUID); err != nil { return err } } } if 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 } // bindParamNetworkIPRoutesGet binds the parameter fields func (o *NetworkIPRoutesGetParams) 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 } // bindParamNetworkIPRoutesGet binds the parameter order_by func (o *NetworkIPRoutesGetParams) 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/networking/network_ip_service_policies_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ip_service_policies_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewNetworkIPServicePoliciesGetParams creates a new NetworkIPServicePoliciesGetParams 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 NewNetworkIPServicePoliciesGetParams() *NetworkIPServicePoliciesGetParams { return &NetworkIPServicePoliciesGetParams{ timeout: cr.DefaultTimeout, } } // NewNetworkIPServicePoliciesGetParamsWithTimeout creates a new NetworkIPServicePoliciesGetParams object // with the ability to set a timeout on a request. func NewNetworkIPServicePoliciesGetParamsWithTimeout(timeout time.Duration) *NetworkIPServicePoliciesGetParams { return &NetworkIPServicePoliciesGetParams{ timeout: timeout, } } // NewNetworkIPServicePoliciesGetParamsWithContext creates a new NetworkIPServicePoliciesGetParams object // with the ability to set a context for a request. func NewNetworkIPServicePoliciesGetParamsWithContext(ctx context.Context) *NetworkIPServicePoliciesGetParams { return &NetworkIPServicePoliciesGetParams{ Context: ctx, } } // NewNetworkIPServicePoliciesGetParamsWithHTTPClient creates a new NetworkIPServicePoliciesGetParams object // with the ability to set a custom HTTPClient for a request. func NewNetworkIPServicePoliciesGetParamsWithHTTPClient(client *http.Client) *NetworkIPServicePoliciesGetParams { return &NetworkIPServicePoliciesGetParams{ HTTPClient: client, } } /* NetworkIPServicePoliciesGetParams contains all the parameters to send to the API endpoint for the network ip service policies get operation. Typically these are written to a http.Request. */ type NetworkIPServicePoliciesGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* IpspaceName. Filter by ipspace.name */ IpspaceName *string /* IpspaceUUID. Filter by ipspace.uuid */ IpspaceUUID *string /* IsBuiltIn. Filter by is_built_in */ IsBuiltIn *bool /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* Name. Filter by name */ Name *string /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* 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 /* Services. Filter by services */ Services *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 network ip service policies get params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkIPServicePoliciesGetParams) WithDefaults() *NetworkIPServicePoliciesGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the network ip service policies get params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkIPServicePoliciesGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := NetworkIPServicePoliciesGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) WithTimeout(timeout time.Duration) *NetworkIPServicePoliciesGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) WithContext(ctx context.Context) *NetworkIPServicePoliciesGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) WithHTTPClient(client *http.Client) *NetworkIPServicePoliciesGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) WithFields(fields []string) *NetworkIPServicePoliciesGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) SetFields(fields []string) { o.Fields = fields } // WithIpspaceName adds the ipspaceName to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) WithIpspaceName(ipspaceName *string) *NetworkIPServicePoliciesGetParams { o.SetIpspaceName(ipspaceName) return o } // SetIpspaceName adds the ipspaceName to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) SetIpspaceName(ipspaceName *string) { o.IpspaceName = ipspaceName } // WithIpspaceUUID adds the ipspaceUUID to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) WithIpspaceUUID(ipspaceUUID *string) *NetworkIPServicePoliciesGetParams { o.SetIpspaceUUID(ipspaceUUID) return o } // SetIpspaceUUID adds the ipspaceUuid to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) SetIpspaceUUID(ipspaceUUID *string) { o.IpspaceUUID = ipspaceUUID } // WithIsBuiltIn adds the isBuiltIn to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) WithIsBuiltIn(isBuiltIn *bool) *NetworkIPServicePoliciesGetParams { o.SetIsBuiltIn(isBuiltIn) return o } // SetIsBuiltIn adds the isBuiltIn to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) SetIsBuiltIn(isBuiltIn *bool) { o.IsBuiltIn = isBuiltIn } // WithMaxRecords adds the maxRecords to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) WithMaxRecords(maxRecords *int64) *NetworkIPServicePoliciesGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithName adds the name to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) WithName(name *string) *NetworkIPServicePoliciesGetParams { o.SetName(name) return o } // SetName adds the name to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) SetName(name *string) { o.Name = name } // WithOrderBy adds the orderBy to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) WithOrderBy(orderBy []string) *NetworkIPServicePoliciesGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) WithReturnRecords(returnRecords *bool) *NetworkIPServicePoliciesGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) WithReturnTimeout(returnTimeout *int64) *NetworkIPServicePoliciesGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithScope adds the scope to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) WithScope(scope *string) *NetworkIPServicePoliciesGetParams { o.SetScope(scope) return o } // SetScope adds the scope to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) SetScope(scope *string) { o.Scope = scope } // WithServices adds the services to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) WithServices(services *string) *NetworkIPServicePoliciesGetParams { o.SetServices(services) return o } // SetServices adds the services to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) SetServices(services *string) { o.Services = services } // WithSvmName adds the svmName to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) WithSvmName(svmName *string) *NetworkIPServicePoliciesGetParams { o.SetSvmName(svmName) return o } // SetSvmName adds the svmName to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) SetSvmName(svmName *string) { o.SvmName = svmName } // WithSvmUUID adds the svmUUID to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) WithSvmUUID(svmUUID *string) *NetworkIPServicePoliciesGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) SetSvmUUID(svmUUID *string) { o.SvmUUID = svmUUID } // WithUUID adds the uuid to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) WithUUID(uuid *string) *NetworkIPServicePoliciesGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the network ip service policies get params func (o *NetworkIPServicePoliciesGetParams) SetUUID(uuid *string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *NetworkIPServicePoliciesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.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.IsBuiltIn != nil { // query param is_built_in var qrIsBuiltIn bool if o.IsBuiltIn != nil { qrIsBuiltIn = *o.IsBuiltIn } qIsBuiltIn := swag.FormatBool(qrIsBuiltIn) if qIsBuiltIn != "" { if err := r.SetQueryParam("is_built_in", qIsBuiltIn); 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.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.Services != nil { // query param services var qrServices string if o.Services != nil { qrServices = *o.Services } qServices := qrServices if qServices != "" { if err := r.SetQueryParam("services", qServices); 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 } // bindParamNetworkIPServicePoliciesGet binds the parameter fields func (o *NetworkIPServicePoliciesGetParams) 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 } // bindParamNetworkIPServicePoliciesGet binds the parameter order_by func (o *NetworkIPServicePoliciesGetParams) 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/networking/fc_interface_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/fc_interface_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // FcInterfaceCollectionGetReader is a Reader for the FcInterfaceCollectionGet structure. type FcInterfaceCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *FcInterfaceCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewFcInterfaceCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewFcInterfaceCollectionGetDefault(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 } } // NewFcInterfaceCollectionGetOK creates a FcInterfaceCollectionGetOK with default headers values func NewFcInterfaceCollectionGetOK() *FcInterfaceCollectionGetOK { return &FcInterfaceCollectionGetOK{} } /* FcInterfaceCollectionGetOK describes a response with status code 200, with default header values. OK */ type FcInterfaceCollectionGetOK struct { Payload *models.FcInterfaceResponse } // IsSuccess returns true when this fc interface collection get o k response has a 2xx status code func (o *FcInterfaceCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this fc interface collection get o k response has a 3xx status code func (o *FcInterfaceCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this fc interface collection get o k response has a 4xx status code func (o *FcInterfaceCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this fc interface collection get o k response has a 5xx status code func (o *FcInterfaceCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this fc interface collection get o k response a status code equal to that given func (o *FcInterfaceCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *FcInterfaceCollectionGetOK) Error() string { return fmt.Sprintf("[GET /network/fc/interfaces][%d] fcInterfaceCollectionGetOK %+v", 200, o.Payload) } func (o *FcInterfaceCollectionGetOK) String() string { return fmt.Sprintf("[GET /network/fc/interfaces][%d] fcInterfaceCollectionGetOK %+v", 200, o.Payload) } func (o *FcInterfaceCollectionGetOK) GetPayload() *models.FcInterfaceResponse { return o.Payload } func (o *FcInterfaceCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.FcInterfaceResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewFcInterfaceCollectionGetDefault creates a FcInterfaceCollectionGetDefault with default headers values func NewFcInterfaceCollectionGetDefault(code int) *FcInterfaceCollectionGetDefault { return &FcInterfaceCollectionGetDefault{ _statusCode: code, } } /* FcInterfaceCollectionGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 5374938 | Query parameter `recommend.data_protocol` is required when any other `recommend` query parameters are specified. | | 5374939 | Query parameter `recommend.fabrics.name` specifies a duplicate FC fabric. | | 5374940 | Query parameter `recommend.nodes.name` or `recommend.nodes.uuid` specifies a duplicate node. | | 5375953 | Query parameter `recommend.fabrics.name` specifies an FC fabric to which no FC port is connected. | | 5375954 | Query parameter `recommend.nodes.name` or `recommend.nodes.uuid` specifies a node that does not support the specified data protocol. | | 5375955 | Query parameter `recommend.proposed.locations.port.uuid` does not specify a valid port or specifies a port that is support the specified data protocol. | | 5375956 | Query parameter `recommend.proposed.locations.port.uuid` specifies a port that is not located on a node specified by query parameter `recommend.nodes.name` or `recommend.nodes.uuid`. If the nodes are to be constrained, only ports on those nodes may be proposed. | | 5375957 | Query parameter `recommend.proposed.locations.port.uuid` specifies a port that is disabled. | | 5375958 | Query parameter `recommend.proposed.locations.port.uuid` specifies a port that is not reporting a connected FC fabric. | */ type FcInterfaceCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the fc interface collection get default response func (o *FcInterfaceCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this fc interface collection get default response has a 2xx status code func (o *FcInterfaceCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this fc interface collection get default response has a 3xx status code func (o *FcInterfaceCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this fc interface collection get default response has a 4xx status code func (o *FcInterfaceCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this fc interface collection get default response has a 5xx status code func (o *FcInterfaceCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this fc interface collection get default response a status code equal to that given func (o *FcInterfaceCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *FcInterfaceCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /network/fc/interfaces][%d] fc_interface_collection_get default %+v", o._statusCode, o.Payload) } func (o *FcInterfaceCollectionGetDefault) String() string { return fmt.Sprintf("[GET /network/fc/interfaces][%d] fc_interface_collection_get default %+v", o._statusCode, o.Payload) } func (o *FcInterfaceCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *FcInterfaceCollectionGetDefault) 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/networking/http_proxy_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/http_proxy_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewHTTPProxyCreateParams creates a new HTTPProxyCreateParams 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 NewHTTPProxyCreateParams() *HTTPProxyCreateParams { return &HTTPProxyCreateParams{ timeout: cr.DefaultTimeout, } } // NewHTTPProxyCreateParamsWithTimeout creates a new HTTPProxyCreateParams object // with the ability to set a timeout on a request. func NewHTTPProxyCreateParamsWithTimeout(timeout time.Duration) *HTTPProxyCreateParams { return &HTTPProxyCreateParams{ timeout: timeout, } } // NewHTTPProxyCreateParamsWithContext creates a new HTTPProxyCreateParams object // with the ability to set a context for a request. func NewHTTPProxyCreateParamsWithContext(ctx context.Context) *HTTPProxyCreateParams { return &HTTPProxyCreateParams{ Context: ctx, } } // NewHTTPProxyCreateParamsWithHTTPClient creates a new HTTPProxyCreateParams object // with the ability to set a custom HTTPClient for a request. func NewHTTPProxyCreateParamsWithHTTPClient(client *http.Client) *HTTPProxyCreateParams { return &HTTPProxyCreateParams{ HTTPClient: client, } } /* HTTPProxyCreateParams contains all the parameters to send to the API endpoint for the http proxy create operation. Typically these are written to a http.Request. */ type HTTPProxyCreateParams struct { /* Info. Information specification */ Info *models.NetworkHTTPProxy /* 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 http proxy create params (not the query body). // // All values with no default are reset to their zero value. func (o *HTTPProxyCreateParams) WithDefaults() *HTTPProxyCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the http proxy create params (not the query body). // // All values with no default are reset to their zero value. func (o *HTTPProxyCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) ) val := HTTPProxyCreateParams{ ReturnRecords: &returnRecordsDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the http proxy create params func (o *HTTPProxyCreateParams) WithTimeout(timeout time.Duration) *HTTPProxyCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the http proxy create params func (o *HTTPProxyCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the http proxy create params func (o *HTTPProxyCreateParams) WithContext(ctx context.Context) *HTTPProxyCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the http proxy create params func (o *HTTPProxyCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the http proxy create params func (o *HTTPProxyCreateParams) WithHTTPClient(client *http.Client) *HTTPProxyCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the http proxy create params func (o *HTTPProxyCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the http proxy create params func (o *HTTPProxyCreateParams) WithInfo(info *models.NetworkHTTPProxy) *HTTPProxyCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the http proxy create params func (o *HTTPProxyCreateParams) SetInfo(info *models.NetworkHTTPProxy) { o.Info = info } // WithReturnRecords adds the returnRecords to the http proxy create params func (o *HTTPProxyCreateParams) WithReturnRecords(returnRecords *bool) *HTTPProxyCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the http proxy create params func (o *HTTPProxyCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WriteToRequest writes these params to a swagger request func (o *HTTPProxyCreateParams) 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/networking/fabric_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/fabric_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewFabricCollectionGetParams creates a new FabricCollectionGetParams 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 NewFabricCollectionGetParams() *FabricCollectionGetParams { return &FabricCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewFabricCollectionGetParamsWithTimeout creates a new FabricCollectionGetParams object // with the ability to set a timeout on a request. func NewFabricCollectionGetParamsWithTimeout(timeout time.Duration) *FabricCollectionGetParams { return &FabricCollectionGetParams{ timeout: timeout, } } // NewFabricCollectionGetParamsWithContext creates a new FabricCollectionGetParams object // with the ability to set a context for a request. func NewFabricCollectionGetParamsWithContext(ctx context.Context) *FabricCollectionGetParams { return &FabricCollectionGetParams{ Context: ctx, } } // NewFabricCollectionGetParamsWithHTTPClient creates a new FabricCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewFabricCollectionGetParamsWithHTTPClient(client *http.Client) *FabricCollectionGetParams { return &FabricCollectionGetParams{ HTTPClient: client, } } /* FabricCollectionGetParams contains all the parameters to send to the API endpoint for the fabric collection get operation. Typically these are written to a http.Request. */ type FabricCollectionGetParams struct { /* CacheAge. Filter by cache.age */ CacheAge *string /* CacheIsCurrent. Filter by cache.is_current */ CacheIsCurrent *bool /* CacheMaximumAge. The maximum age of data in the Fibre Channel fabric cache before it should be refreshed from the fabric. The default is 15 minutes. Format: iso8601 Default: "15 minutes" */ CacheMaximumAge *string /* CacheUpdateTime. Filter by cache.update_time */ CacheUpdateTime *string /* ConnectionsClusterPortName. Filter by connections.cluster_port.name */ ConnectionsClusterPortName *string /* ConnectionsClusterPortNodeName. Filter by connections.cluster_port.node.name */ ConnectionsClusterPortNodeName *string /* ConnectionsClusterPortUUID. Filter by connections.cluster_port.uuid */ ConnectionsClusterPortUUID *string /* ConnectionsClusterPortWwpn. Filter by connections.cluster_port.wwpn */ ConnectionsClusterPortWwpn *string /* ConnectionsSwitchPortWwpn. Filter by connections.switch.port.wwpn */ ConnectionsSwitchPortWwpn *string /* ConnectionsSwitchWwn. Filter by connections.switch.wwn */ ConnectionsSwitchWwn *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 /* ZonesetName. Filter by zoneset.name */ ZonesetName *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the fabric collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *FabricCollectionGetParams) WithDefaults() *FabricCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the fabric collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *FabricCollectionGetParams) SetDefaults() { var ( cacheMaximumAgeDefault = string("15 minutes") returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := FabricCollectionGetParams{ CacheMaximumAge: &cacheMaximumAgeDefault, ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the fabric collection get params func (o *FabricCollectionGetParams) WithTimeout(timeout time.Duration) *FabricCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the fabric collection get params func (o *FabricCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the fabric collection get params func (o *FabricCollectionGetParams) WithContext(ctx context.Context) *FabricCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the fabric collection get params func (o *FabricCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the fabric collection get params func (o *FabricCollectionGetParams) WithHTTPClient(client *http.Client) *FabricCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the fabric collection get params func (o *FabricCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithCacheAge adds the cacheAge to the fabric collection get params func (o *FabricCollectionGetParams) WithCacheAge(cacheAge *string) *FabricCollectionGetParams { o.SetCacheAge(cacheAge) return o } // SetCacheAge adds the cacheAge to the fabric collection get params func (o *FabricCollectionGetParams) SetCacheAge(cacheAge *string) { o.CacheAge = cacheAge } // WithCacheIsCurrent adds the cacheIsCurrent to the fabric collection get params func (o *FabricCollectionGetParams) WithCacheIsCurrent(cacheIsCurrent *bool) *FabricCollectionGetParams { o.SetCacheIsCurrent(cacheIsCurrent) return o } // SetCacheIsCurrent adds the cacheIsCurrent to the fabric collection get params func (o *FabricCollectionGetParams) SetCacheIsCurrent(cacheIsCurrent *bool) { o.CacheIsCurrent = cacheIsCurrent } // WithCacheMaximumAge adds the cacheMaximumAge to the fabric collection get params func (o *FabricCollectionGetParams) WithCacheMaximumAge(cacheMaximumAge *string) *FabricCollectionGetParams { o.SetCacheMaximumAge(cacheMaximumAge) return o } // SetCacheMaximumAge adds the cacheMaximumAge to the fabric collection get params func (o *FabricCollectionGetParams) SetCacheMaximumAge(cacheMaximumAge *string) { o.CacheMaximumAge = cacheMaximumAge } // WithCacheUpdateTime adds the cacheUpdateTime to the fabric collection get params func (o *FabricCollectionGetParams) WithCacheUpdateTime(cacheUpdateTime *string) *FabricCollectionGetParams { o.SetCacheUpdateTime(cacheUpdateTime) return o } // SetCacheUpdateTime adds the cacheUpdateTime to the fabric collection get params func (o *FabricCollectionGetParams) SetCacheUpdateTime(cacheUpdateTime *string) { o.CacheUpdateTime = cacheUpdateTime } // WithConnectionsClusterPortName adds the connectionsClusterPortName to the fabric collection get params func (o *FabricCollectionGetParams) WithConnectionsClusterPortName(connectionsClusterPortName *string) *FabricCollectionGetParams { o.SetConnectionsClusterPortName(connectionsClusterPortName) return o } // SetConnectionsClusterPortName adds the connectionsClusterPortName to the fabric collection get params func (o *FabricCollectionGetParams) SetConnectionsClusterPortName(connectionsClusterPortName *string) { o.ConnectionsClusterPortName = connectionsClusterPortName } // WithConnectionsClusterPortNodeName adds the connectionsClusterPortNodeName to the fabric collection get params func (o *FabricCollectionGetParams) WithConnectionsClusterPortNodeName(connectionsClusterPortNodeName *string) *FabricCollectionGetParams { o.SetConnectionsClusterPortNodeName(connectionsClusterPortNodeName) return o } // SetConnectionsClusterPortNodeName adds the connectionsClusterPortNodeName to the fabric collection get params func (o *FabricCollectionGetParams) SetConnectionsClusterPortNodeName(connectionsClusterPortNodeName *string) { o.ConnectionsClusterPortNodeName = connectionsClusterPortNodeName } // WithConnectionsClusterPortUUID adds the connectionsClusterPortUUID to the fabric collection get params func (o *FabricCollectionGetParams) WithConnectionsClusterPortUUID(connectionsClusterPortUUID *string) *FabricCollectionGetParams { o.SetConnectionsClusterPortUUID(connectionsClusterPortUUID) return o } // SetConnectionsClusterPortUUID adds the connectionsClusterPortUuid to the fabric collection get params func (o *FabricCollectionGetParams) SetConnectionsClusterPortUUID(connectionsClusterPortUUID *string) { o.ConnectionsClusterPortUUID = connectionsClusterPortUUID } // WithConnectionsClusterPortWwpn adds the connectionsClusterPortWwpn to the fabric collection get params func (o *FabricCollectionGetParams) WithConnectionsClusterPortWwpn(connectionsClusterPortWwpn *string) *FabricCollectionGetParams { o.SetConnectionsClusterPortWwpn(connectionsClusterPortWwpn) return o } // SetConnectionsClusterPortWwpn adds the connectionsClusterPortWwpn to the fabric collection get params func (o *FabricCollectionGetParams) SetConnectionsClusterPortWwpn(connectionsClusterPortWwpn *string) { o.ConnectionsClusterPortWwpn = connectionsClusterPortWwpn } // WithConnectionsSwitchPortWwpn adds the connectionsSwitchPortWwpn to the fabric collection get params func (o *FabricCollectionGetParams) WithConnectionsSwitchPortWwpn(connectionsSwitchPortWwpn *string) *FabricCollectionGetParams { o.SetConnectionsSwitchPortWwpn(connectionsSwitchPortWwpn) return o } // SetConnectionsSwitchPortWwpn adds the connectionsSwitchPortWwpn to the fabric collection get params func (o *FabricCollectionGetParams) SetConnectionsSwitchPortWwpn(connectionsSwitchPortWwpn *string) { o.ConnectionsSwitchPortWwpn = connectionsSwitchPortWwpn } // WithConnectionsSwitchWwn adds the connectionsSwitchWwn to the fabric collection get params func (o *FabricCollectionGetParams) WithConnectionsSwitchWwn(connectionsSwitchWwn *string) *FabricCollectionGetParams { o.SetConnectionsSwitchWwn(connectionsSwitchWwn) return o } // SetConnectionsSwitchWwn adds the connectionsSwitchWwn to the fabric collection get params func (o *FabricCollectionGetParams) SetConnectionsSwitchWwn(connectionsSwitchWwn *string) { o.ConnectionsSwitchWwn = connectionsSwitchWwn } // WithFields adds the fields to the fabric collection get params func (o *FabricCollectionGetParams) WithFields(fields []string) *FabricCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the fabric collection get params func (o *FabricCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithMaxRecords adds the maxRecords to the fabric collection get params func (o *FabricCollectionGetParams) WithMaxRecords(maxRecords *int64) *FabricCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the fabric collection get params func (o *FabricCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithName adds the name to the fabric collection get params func (o *FabricCollectionGetParams) WithName(name *string) *FabricCollectionGetParams { o.SetName(name) return o } // SetName adds the name to the fabric collection get params func (o *FabricCollectionGetParams) SetName(name *string) { o.Name = name } // WithOrderBy adds the orderBy to the fabric collection get params func (o *FabricCollectionGetParams) WithOrderBy(orderBy []string) *FabricCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the fabric collection get params func (o *FabricCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the fabric collection get params func (o *FabricCollectionGetParams) WithReturnRecords(returnRecords *bool) *FabricCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the fabric collection get params func (o *FabricCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the fabric collection get params func (o *FabricCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *FabricCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the fabric collection get params func (o *FabricCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithZonesetName adds the zonesetName to the fabric collection get params func (o *FabricCollectionGetParams) WithZonesetName(zonesetName *string) *FabricCollectionGetParams { o.SetZonesetName(zonesetName) return o } // SetZonesetName adds the zonesetName to the fabric collection get params func (o *FabricCollectionGetParams) SetZonesetName(zonesetName *string) { o.ZonesetName = zonesetName } // WriteToRequest writes these params to a swagger request func (o *FabricCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.CacheAge != nil { // query param cache.age var qrCacheAge string if o.CacheAge != nil { qrCacheAge = *o.CacheAge } qCacheAge := qrCacheAge if qCacheAge != "" { if err := r.SetQueryParam("cache.age", qCacheAge); err != nil { return err } } } if o.CacheIsCurrent != nil { // query param cache.is_current var qrCacheIsCurrent bool if o.CacheIsCurrent != nil { qrCacheIsCurrent = *o.CacheIsCurrent } qCacheIsCurrent := swag.FormatBool(qrCacheIsCurrent) if qCacheIsCurrent != "" { if err := r.SetQueryParam("cache.is_current", qCacheIsCurrent); err != nil { return err } } } if o.CacheMaximumAge != nil { // query param cache.maximum_age var qrCacheMaximumAge string if o.CacheMaximumAge != nil { qrCacheMaximumAge = *o.CacheMaximumAge } qCacheMaximumAge := qrCacheMaximumAge if qCacheMaximumAge != "" { if err := r.SetQueryParam("cache.maximum_age", qCacheMaximumAge); err != nil { return err } } } if o.CacheUpdateTime != nil { // query param cache.update_time var qrCacheUpdateTime string if o.CacheUpdateTime != nil { qrCacheUpdateTime = *o.CacheUpdateTime } qCacheUpdateTime := qrCacheUpdateTime if qCacheUpdateTime != "" { if err := r.SetQueryParam("cache.update_time", qCacheUpdateTime); err != nil { return err } } } if o.ConnectionsClusterPortName != nil { // query param connections.cluster_port.name var qrConnectionsClusterPortName string if o.ConnectionsClusterPortName != nil { qrConnectionsClusterPortName = *o.ConnectionsClusterPortName } qConnectionsClusterPortName := qrConnectionsClusterPortName if qConnectionsClusterPortName != "" { if err := r.SetQueryParam("connections.cluster_port.name", qConnectionsClusterPortName); err != nil { return err } } } if o.ConnectionsClusterPortNodeName != nil { // query param connections.cluster_port.node.name var qrConnectionsClusterPortNodeName string if o.ConnectionsClusterPortNodeName != nil { qrConnectionsClusterPortNodeName = *o.ConnectionsClusterPortNodeName } qConnectionsClusterPortNodeName := qrConnectionsClusterPortNodeName if qConnectionsClusterPortNodeName != "" { if err := r.SetQueryParam("connections.cluster_port.node.name", qConnectionsClusterPortNodeName); err != nil { return err } } } if o.ConnectionsClusterPortUUID != nil { // query param connections.cluster_port.uuid var qrConnectionsClusterPortUUID string if o.ConnectionsClusterPortUUID != nil { qrConnectionsClusterPortUUID = *o.ConnectionsClusterPortUUID } qConnectionsClusterPortUUID := qrConnectionsClusterPortUUID if qConnectionsClusterPortUUID != "" { if err := r.SetQueryParam("connections.cluster_port.uuid", qConnectionsClusterPortUUID); err != nil { return err } } } if o.ConnectionsClusterPortWwpn != nil { // query param connections.cluster_port.wwpn var qrConnectionsClusterPortWwpn string if o.ConnectionsClusterPortWwpn != nil { qrConnectionsClusterPortWwpn = *o.ConnectionsClusterPortWwpn } qConnectionsClusterPortWwpn := qrConnectionsClusterPortWwpn if qConnectionsClusterPortWwpn != "" { if err := r.SetQueryParam("connections.cluster_port.wwpn", qConnectionsClusterPortWwpn); err != nil { return err } } } if o.ConnectionsSwitchPortWwpn != nil { // query param connections.switch.port.wwpn var qrConnectionsSwitchPortWwpn string if o.ConnectionsSwitchPortWwpn != nil { qrConnectionsSwitchPortWwpn = *o.ConnectionsSwitchPortWwpn } qConnectionsSwitchPortWwpn := qrConnectionsSwitchPortWwpn if qConnectionsSwitchPortWwpn != "" { if err := r.SetQueryParam("connections.switch.port.wwpn", qConnectionsSwitchPortWwpn); err != nil { return err } } } if o.ConnectionsSwitchWwn != nil { // query param connections.switch.wwn var qrConnectionsSwitchWwn string if o.ConnectionsSwitchWwn != nil { qrConnectionsSwitchWwn = *o.ConnectionsSwitchWwn } qConnectionsSwitchWwn := qrConnectionsSwitchWwn if qConnectionsSwitchWwn != "" { if err := r.SetQueryParam("connections.switch.wwn", qConnectionsSwitchWwn); 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.ZonesetName != nil { // query param zoneset.name var qrZonesetName string if o.ZonesetName != nil { qrZonesetName = *o.ZonesetName } qZonesetName := qrZonesetName if qZonesetName != "" { if err := r.SetQueryParam("zoneset.name", qZonesetName); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamFabricCollectionGet binds the parameter fields func (o *FabricCollectionGetParams) 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 } // bindParamFabricCollectionGet binds the parameter order_by func (o *FabricCollectionGetParams) 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/networking/http_proxy_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/http_proxy_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // HTTPProxyModifyReader is a Reader for the HTTPProxyModify structure. type HTTPProxyModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *HTTPProxyModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewHTTPProxyModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewHTTPProxyModifyDefault(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 } } // NewHTTPProxyModifyOK creates a HTTPProxyModifyOK with default headers values func NewHTTPProxyModifyOK() *HTTPProxyModifyOK { return &HTTPProxyModifyOK{} } /* HTTPProxyModifyOK describes a response with status code 200, with default header values. OK */ type HTTPProxyModifyOK struct { } // IsSuccess returns true when this http proxy modify o k response has a 2xx status code func (o *HTTPProxyModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this http proxy modify o k response has a 3xx status code func (o *HTTPProxyModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this http proxy modify o k response has a 4xx status code func (o *HTTPProxyModifyOK) IsClientError() bool { return false } // IsServerError returns true when this http proxy modify o k response has a 5xx status code func (o *HTTPProxyModifyOK) IsServerError() bool { return false } // IsCode returns true when this http proxy modify o k response a status code equal to that given func (o *HTTPProxyModifyOK) IsCode(code int) bool { return code == 200 } func (o *HTTPProxyModifyOK) Error() string { return fmt.Sprintf("[PATCH /network/http-proxy/{uuid}][%d] httpProxyModifyOK ", 200) } func (o *HTTPProxyModifyOK) String() string { return fmt.Sprintf("[PATCH /network/http-proxy/{uuid}][%d] httpProxyModifyOK ", 200) } func (o *HTTPProxyModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewHTTPProxyModifyDefault creates a HTTPProxyModifyDefault with default headers values func NewHTTPProxyModifyDefault(code int) *HTTPProxyModifyDefault { return &HTTPProxyModifyDefault{ _statusCode: code, } } /* HTTPProxyModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 26214473 | The HTTP proxy configuration is not valid. | | 23724130 | Cannot use an IPv6 name server address because there are no IPv6 interfaces. | | 26214481 | Username and password cannot be empty when HTTP proxy authentication is enabled. | | 26214482 | Username and password cannot be specified when HTTP proxy authentication is disabled. | */ type HTTPProxyModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the http proxy modify default response func (o *HTTPProxyModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this http proxy modify default response has a 2xx status code func (o *HTTPProxyModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this http proxy modify default response has a 3xx status code func (o *HTTPProxyModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this http proxy modify default response has a 4xx status code func (o *HTTPProxyModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this http proxy modify default response has a 5xx status code func (o *HTTPProxyModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this http proxy modify default response a status code equal to that given func (o *HTTPProxyModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *HTTPProxyModifyDefault) Error() string { return fmt.Sprintf("[PATCH /network/http-proxy/{uuid}][%d] http_proxy_modify default %+v", o._statusCode, o.Payload) } func (o *HTTPProxyModifyDefault) String() string { return fmt.Sprintf("[PATCH /network/http-proxy/{uuid}][%d] http_proxy_modify default %+v", o._statusCode, o.Payload) } func (o *HTTPProxyModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *HTTPProxyModifyDefault) 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/networking/ipspace_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/ipspace_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" ) // IpspaceModifyReader is a Reader for the IpspaceModify structure. type IpspaceModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *IpspaceModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewIpspaceModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) } } // NewIpspaceModifyOK creates a IpspaceModifyOK with default headers values func NewIpspaceModifyOK() *IpspaceModifyOK { return &IpspaceModifyOK{} } /* IpspaceModifyOK describes a response with status code 200, with default header values. OK */ type IpspaceModifyOK struct { } // IsSuccess returns true when this ipspace modify o k response has a 2xx status code func (o *IpspaceModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this ipspace modify o k response has a 3xx status code func (o *IpspaceModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this ipspace modify o k response has a 4xx status code func (o *IpspaceModifyOK) IsClientError() bool { return false } // IsServerError returns true when this ipspace modify o k response has a 5xx status code func (o *IpspaceModifyOK) IsServerError() bool { return false } // IsCode returns true when this ipspace modify o k response a status code equal to that given func (o *IpspaceModifyOK) IsCode(code int) bool { return code == 200 } func (o *IpspaceModifyOK) Error() string { return fmt.Sprintf("[PATCH /network/ipspaces/{uuid}][%d] ipspaceModifyOK ", 200) } func (o *IpspaceModifyOK) String() string { return fmt.Sprintf("[PATCH /network/ipspaces/{uuid}][%d] ipspaceModifyOK ", 200) } func (o *IpspaceModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ethernet_broadcast_domains_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ethernet_broadcast_domains_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NetworkEthernetBroadcastDomainsCreateReader is a Reader for the NetworkEthernetBroadcastDomainsCreate structure. type NetworkEthernetBroadcastDomainsCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NetworkEthernetBroadcastDomainsCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewNetworkEthernetBroadcastDomainsCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNetworkEthernetBroadcastDomainsCreateDefault(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 } } // NewNetworkEthernetBroadcastDomainsCreateCreated creates a NetworkEthernetBroadcastDomainsCreateCreated with default headers values func NewNetworkEthernetBroadcastDomainsCreateCreated() *NetworkEthernetBroadcastDomainsCreateCreated { return &NetworkEthernetBroadcastDomainsCreateCreated{} } /* NetworkEthernetBroadcastDomainsCreateCreated describes a response with status code 201, with default header values. Created */ type NetworkEthernetBroadcastDomainsCreateCreated struct { /* Useful for tracking the resource location */ Location string } // IsSuccess returns true when this network ethernet broadcast domains create created response has a 2xx status code func (o *NetworkEthernetBroadcastDomainsCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this network ethernet broadcast domains create created response has a 3xx status code func (o *NetworkEthernetBroadcastDomainsCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this network ethernet broadcast domains create created response has a 4xx status code func (o *NetworkEthernetBroadcastDomainsCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this network ethernet broadcast domains create created response has a 5xx status code func (o *NetworkEthernetBroadcastDomainsCreateCreated) IsServerError() bool { return false } // IsCode returns true when this network ethernet broadcast domains create created response a status code equal to that given func (o *NetworkEthernetBroadcastDomainsCreateCreated) IsCode(code int) bool { return code == 201 } func (o *NetworkEthernetBroadcastDomainsCreateCreated) Error() string { return fmt.Sprintf("[POST /network/ethernet/broadcast-domains][%d] networkEthernetBroadcastDomainsCreateCreated ", 201) } func (o *NetworkEthernetBroadcastDomainsCreateCreated) String() string { return fmt.Sprintf("[POST /network/ethernet/broadcast-domains][%d] networkEthernetBroadcastDomainsCreateCreated ", 201) } func (o *NetworkEthernetBroadcastDomainsCreateCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Location hdrLocation := response.GetHeader("Location") if hdrLocation != "" { o.Location = hdrLocation } return nil } // NewNetworkEthernetBroadcastDomainsCreateDefault creates a NetworkEthernetBroadcastDomainsCreateDefault with default headers values func NewNetworkEthernetBroadcastDomainsCreateDefault(code int) *NetworkEthernetBroadcastDomainsCreateDefault { return &NetworkEthernetBroadcastDomainsCreateDefault{ _statusCode: code, } } /* NetworkEthernetBroadcastDomainsCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 1377267 | The specified IPspace does not exist. | | 1967082 | The specified ipspace.name does not match the IPspace name of ipspace.uuid. | | 1967102 | A POST operation might have left the configuration in an inconsistent state. Check the configuration. | | 53281982 | The specified broadcast domain name is reserved by the system. | */ type NetworkEthernetBroadcastDomainsCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the network ethernet broadcast domains create default response func (o *NetworkEthernetBroadcastDomainsCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this network ethernet broadcast domains create default response has a 2xx status code func (o *NetworkEthernetBroadcastDomainsCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this network ethernet broadcast domains create default response has a 3xx status code func (o *NetworkEthernetBroadcastDomainsCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this network ethernet broadcast domains create default response has a 4xx status code func (o *NetworkEthernetBroadcastDomainsCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this network ethernet broadcast domains create default response has a 5xx status code func (o *NetworkEthernetBroadcastDomainsCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this network ethernet broadcast domains create default response a status code equal to that given func (o *NetworkEthernetBroadcastDomainsCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NetworkEthernetBroadcastDomainsCreateDefault) Error() string { return fmt.Sprintf("[POST /network/ethernet/broadcast-domains][%d] network_ethernet_broadcast_domains_create default %+v", o._statusCode, o.Payload) } func (o *NetworkEthernetBroadcastDomainsCreateDefault) String() string { return fmt.Sprintf("[POST /network/ethernet/broadcast-domains][%d] network_ethernet_broadcast_domains_create default %+v", o._statusCode, o.Payload) } func (o *NetworkEthernetBroadcastDomainsCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NetworkEthernetBroadcastDomainsCreateDefault) 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/networking/ip_service_policy_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/ip_service_policy_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewIPServicePolicyModifyParams creates a new IPServicePolicyModifyParams 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 NewIPServicePolicyModifyParams() *IPServicePolicyModifyParams { return &IPServicePolicyModifyParams{ timeout: cr.DefaultTimeout, } } // NewIPServicePolicyModifyParamsWithTimeout creates a new IPServicePolicyModifyParams object // with the ability to set a timeout on a request. func NewIPServicePolicyModifyParamsWithTimeout(timeout time.Duration) *IPServicePolicyModifyParams { return &IPServicePolicyModifyParams{ timeout: timeout, } } // NewIPServicePolicyModifyParamsWithContext creates a new IPServicePolicyModifyParams object // with the ability to set a context for a request. func NewIPServicePolicyModifyParamsWithContext(ctx context.Context) *IPServicePolicyModifyParams { return &IPServicePolicyModifyParams{ Context: ctx, } } // NewIPServicePolicyModifyParamsWithHTTPClient creates a new IPServicePolicyModifyParams object // with the ability to set a custom HTTPClient for a request. func NewIPServicePolicyModifyParamsWithHTTPClient(client *http.Client) *IPServicePolicyModifyParams { return &IPServicePolicyModifyParams{ HTTPClient: client, } } /* IPServicePolicyModifyParams contains all the parameters to send to the API endpoint for the ip service policy modify operation. Typically these are written to a http.Request. */ type IPServicePolicyModifyParams struct { /* Info. policy parameters */ Info *models.IPServicePolicy /* UUID. UUID of the service policy */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ip service policy modify params (not the query body). // // All values with no default are reset to their zero value. func (o *IPServicePolicyModifyParams) WithDefaults() *IPServicePolicyModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ip service policy modify params (not the query body). // // All values with no default are reset to their zero value. func (o *IPServicePolicyModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the ip service policy modify params func (o *IPServicePolicyModifyParams) WithTimeout(timeout time.Duration) *IPServicePolicyModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ip service policy modify params func (o *IPServicePolicyModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ip service policy modify params func (o *IPServicePolicyModifyParams) WithContext(ctx context.Context) *IPServicePolicyModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the ip service policy modify params func (o *IPServicePolicyModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ip service policy modify params func (o *IPServicePolicyModifyParams) WithHTTPClient(client *http.Client) *IPServicePolicyModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ip service policy modify params func (o *IPServicePolicyModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the ip service policy modify params func (o *IPServicePolicyModifyParams) WithInfo(info *models.IPServicePolicy) *IPServicePolicyModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the ip service policy modify params func (o *IPServicePolicyModifyParams) SetInfo(info *models.IPServicePolicy) { o.Info = info } // WithUUID adds the uuid to the ip service policy modify params func (o *IPServicePolicyModifyParams) WithUUID(uuid string) *IPServicePolicyModifyParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the ip service policy modify params func (o *IPServicePolicyModifyParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *IPServicePolicyModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/ip_subnet_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/ip_subnet_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // IPSubnetCreateReader is a Reader for the IPSubnetCreate structure. type IPSubnetCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *IPSubnetCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewIPSubnetCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewIPSubnetCreateDefault(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 } } // NewIPSubnetCreateCreated creates a IPSubnetCreateCreated with default headers values func NewIPSubnetCreateCreated() *IPSubnetCreateCreated { return &IPSubnetCreateCreated{} } /* IPSubnetCreateCreated describes a response with status code 201, with default header values. Created */ type IPSubnetCreateCreated struct { /* Useful for tracking the resource location */ Location string } // IsSuccess returns true when this ip subnet create created response has a 2xx status code func (o *IPSubnetCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this ip subnet create created response has a 3xx status code func (o *IPSubnetCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this ip subnet create created response has a 4xx status code func (o *IPSubnetCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this ip subnet create created response has a 5xx status code func (o *IPSubnetCreateCreated) IsServerError() bool { return false } // IsCode returns true when this ip subnet create created response a status code equal to that given func (o *IPSubnetCreateCreated) IsCode(code int) bool { return code == 201 } func (o *IPSubnetCreateCreated) Error() string { return fmt.Sprintf("[POST /network/ip/subnets][%d] ipSubnetCreateCreated ", 201) } func (o *IPSubnetCreateCreated) String() string { return fmt.Sprintf("[POST /network/ip/subnets][%d] ipSubnetCreateCreated ", 201) } func (o *IPSubnetCreateCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Location hdrLocation := response.GetHeader("Location") if hdrLocation != "" { o.Location = hdrLocation } return nil } // NewIPSubnetCreateDefault creates a IPSubnetCreateDefault with default headers values func NewIPSubnetCreateDefault(code int) *IPSubnetCreateDefault { return &IPSubnetCreateDefault{ _statusCode: code, } } /* IPSubnetCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 1377660 | A subnet with the name already exists in the IPspace. | | 1377661 | Subnet in IPspace cannot use subnet address because that address is already used by another subnet in the same IPspace. | | 1377662 | The IP range address is not within the subnet in IPspace. | | 1377663 | The specified IP address range of subnet in IPspace contains an address already in use by a LIF. | | 1377664 | The specified IP address range of subnet in IPspace contains an address already in use by the Service Processor. | | 1377673 | The addresses provided must have the same address family. | | 1377681 | Cannot update LIF associations for LIF. The broadcast domain of the LIF does not match the broadcast domain of the subnet. | | 1967082 | The specified ipspace.name does not match the IPspace name of specified ipspace.uuid | | 53282568 | The subnet.address must be specified together with subnet.netmask. | | 53282569 | The specified subnet.netmask is not valid. | | 53282570 | Each pair of ranges must have ip_ranges.start less than or equal to ip_ranges.end. | | 53282571 | The ip_ranges.start and ip_ranges.end fields must have the same number of items. | | 53282573 | Broadcast domain is a required parameter. The broadcast_domain.name and/or the broadcast_domain.uuid must be specified. | | 53282574 | The specified broadcast_domain and ipspace parameters do not match. | | 53282575 | Operation might have left configuration in an inconsistent state. Unable to set UUID for created entry. | | 53282576 | The specified ipspace.uuid is invalid. | | 53282577 | The specified broadcast_domain.uuid is invalid. | | 53282578 | The specified broadcast_domain.name does not match the IPspace name of specified broadcast_domain.uuid | | 53282579 | Missing the ipspace.name or ipspace.uuid parameter. | */ type IPSubnetCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ip subnet create default response func (o *IPSubnetCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ip subnet create default response has a 2xx status code func (o *IPSubnetCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ip subnet create default response has a 3xx status code func (o *IPSubnetCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ip subnet create default response has a 4xx status code func (o *IPSubnetCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ip subnet create default response has a 5xx status code func (o *IPSubnetCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ip subnet create default response a status code equal to that given func (o *IPSubnetCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *IPSubnetCreateDefault) Error() string { return fmt.Sprintf("[POST /network/ip/subnets][%d] ip_subnet_create default %+v", o._statusCode, o.Payload) } func (o *IPSubnetCreateDefault) String() string { return fmt.Sprintf("[POST /network/ip/subnets][%d] ip_subnet_create default %+v", o._statusCode, o.Payload) } func (o *IPSubnetCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *IPSubnetCreateDefault) 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/networking/fc_port_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/fc_port_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewFcPortCollectionGetParams creates a new FcPortCollectionGetParams 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 NewFcPortCollectionGetParams() *FcPortCollectionGetParams { return &FcPortCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewFcPortCollectionGetParamsWithTimeout creates a new FcPortCollectionGetParams object // with the ability to set a timeout on a request. func NewFcPortCollectionGetParamsWithTimeout(timeout time.Duration) *FcPortCollectionGetParams { return &FcPortCollectionGetParams{ timeout: timeout, } } // NewFcPortCollectionGetParamsWithContext creates a new FcPortCollectionGetParams object // with the ability to set a context for a request. func NewFcPortCollectionGetParamsWithContext(ctx context.Context) *FcPortCollectionGetParams { return &FcPortCollectionGetParams{ Context: ctx, } } // NewFcPortCollectionGetParamsWithHTTPClient creates a new FcPortCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewFcPortCollectionGetParamsWithHTTPClient(client *http.Client) *FcPortCollectionGetParams { return &FcPortCollectionGetParams{ HTTPClient: client, } } /* FcPortCollectionGetParams contains all the parameters to send to the API endpoint for the fc port collection get operation. Typically these are written to a http.Request. */ type FcPortCollectionGetParams struct { /* Description. Filter by description */ Description *string /* Enabled. Filter by enabled */ Enabled *bool /* FabricConnected. Filter by fabric.connected */ FabricConnected *bool /* FabricConnectedSpeed. Filter by fabric.connected_speed */ FabricConnectedSpeed *int64 /* FabricName. Filter by fabric.name */ FabricName *string /* FabricPortAddress. Filter by fabric.port_address */ FabricPortAddress *string /* FabricSwitchPort. Filter by fabric.switch_port */ FabricSwitchPort *string /* Fields. Specify the fields to return. */ Fields []string /* InterfaceCount. Filter by interface_count */ InterfaceCount *int64 /* 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 /* NodeName. Filter by node.name */ NodeName *string /* NodeUUID. Filter by node.uuid */ NodeUUID *string /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* PhysicalProtocol. Filter by physical_protocol */ PhysicalProtocol *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 /* SpeedConfigured. Filter by speed.configured */ SpeedConfigured *string /* SpeedMaximum. Filter by speed.maximum */ SpeedMaximum *string /* State. Filter by state */ State *string /* 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 /* SupportedProtocols. Filter by supported_protocols */ SupportedProtocols *string /* TransceiverCapabilities. Filter by transceiver.capabilities */ TransceiverCapabilities *int64 /* TransceiverFormFactor. Filter by transceiver.form_factor */ TransceiverFormFactor *string /* TransceiverManufacturer. Filter by transceiver.manufacturer */ TransceiverManufacturer *string /* TransceiverPartNumber. Filter by transceiver.part_number */ TransceiverPartNumber *string /* UUID. Filter by uuid */ UUID *string /* Wwnn. Filter by wwnn */ Wwnn *string /* Wwpn. Filter by wwpn */ Wwpn *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the fc port collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *FcPortCollectionGetParams) WithDefaults() *FcPortCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the fc port collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *FcPortCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := FcPortCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the fc port collection get params func (o *FcPortCollectionGetParams) WithTimeout(timeout time.Duration) *FcPortCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the fc port collection get params func (o *FcPortCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the fc port collection get params func (o *FcPortCollectionGetParams) WithContext(ctx context.Context) *FcPortCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the fc port collection get params func (o *FcPortCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the fc port collection get params func (o *FcPortCollectionGetParams) WithHTTPClient(client *http.Client) *FcPortCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the fc port collection get params func (o *FcPortCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithDescription adds the description to the fc port collection get params func (o *FcPortCollectionGetParams) WithDescription(description *string) *FcPortCollectionGetParams { o.SetDescription(description) return o } // SetDescription adds the description to the fc port collection get params func (o *FcPortCollectionGetParams) SetDescription(description *string) { o.Description = description } // WithEnabled adds the enabled to the fc port collection get params func (o *FcPortCollectionGetParams) WithEnabled(enabled *bool) *FcPortCollectionGetParams { o.SetEnabled(enabled) return o } // SetEnabled adds the enabled to the fc port collection get params func (o *FcPortCollectionGetParams) SetEnabled(enabled *bool) { o.Enabled = enabled } // WithFabricConnected adds the fabricConnected to the fc port collection get params func (o *FcPortCollectionGetParams) WithFabricConnected(fabricConnected *bool) *FcPortCollectionGetParams { o.SetFabricConnected(fabricConnected) return o } // SetFabricConnected adds the fabricConnected to the fc port collection get params func (o *FcPortCollectionGetParams) SetFabricConnected(fabricConnected *bool) { o.FabricConnected = fabricConnected } // WithFabricConnectedSpeed adds the fabricConnectedSpeed to the fc port collection get params func (o *FcPortCollectionGetParams) WithFabricConnectedSpeed(fabricConnectedSpeed *int64) *FcPortCollectionGetParams { o.SetFabricConnectedSpeed(fabricConnectedSpeed) return o } // SetFabricConnectedSpeed adds the fabricConnectedSpeed to the fc port collection get params func (o *FcPortCollectionGetParams) SetFabricConnectedSpeed(fabricConnectedSpeed *int64) { o.FabricConnectedSpeed = fabricConnectedSpeed } // WithFabricName adds the fabricName to the fc port collection get params func (o *FcPortCollectionGetParams) WithFabricName(fabricName *string) *FcPortCollectionGetParams { o.SetFabricName(fabricName) return o } // SetFabricName adds the fabricName to the fc port collection get params func (o *FcPortCollectionGetParams) SetFabricName(fabricName *string) { o.FabricName = fabricName } // WithFabricPortAddress adds the fabricPortAddress to the fc port collection get params func (o *FcPortCollectionGetParams) WithFabricPortAddress(fabricPortAddress *string) *FcPortCollectionGetParams { o.SetFabricPortAddress(fabricPortAddress) return o } // SetFabricPortAddress adds the fabricPortAddress to the fc port collection get params func (o *FcPortCollectionGetParams) SetFabricPortAddress(fabricPortAddress *string) { o.FabricPortAddress = fabricPortAddress } // WithFabricSwitchPort adds the fabricSwitchPort to the fc port collection get params func (o *FcPortCollectionGetParams) WithFabricSwitchPort(fabricSwitchPort *string) *FcPortCollectionGetParams { o.SetFabricSwitchPort(fabricSwitchPort) return o } // SetFabricSwitchPort adds the fabricSwitchPort to the fc port collection get params func (o *FcPortCollectionGetParams) SetFabricSwitchPort(fabricSwitchPort *string) { o.FabricSwitchPort = fabricSwitchPort } // WithFields adds the fields to the fc port collection get params func (o *FcPortCollectionGetParams) WithFields(fields []string) *FcPortCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the fc port collection get params func (o *FcPortCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithInterfaceCount adds the interfaceCount to the fc port collection get params func (o *FcPortCollectionGetParams) WithInterfaceCount(interfaceCount *int64) *FcPortCollectionGetParams { o.SetInterfaceCount(interfaceCount) return o } // SetInterfaceCount adds the interfaceCount to the fc port collection get params func (o *FcPortCollectionGetParams) SetInterfaceCount(interfaceCount *int64) { o.InterfaceCount = interfaceCount } // WithMaxRecords adds the maxRecords to the fc port collection get params func (o *FcPortCollectionGetParams) WithMaxRecords(maxRecords *int64) *FcPortCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the fc port collection get params func (o *FcPortCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithMetricDuration adds the metricDuration to the fc port collection get params func (o *FcPortCollectionGetParams) WithMetricDuration(metricDuration *string) *FcPortCollectionGetParams { o.SetMetricDuration(metricDuration) return o } // SetMetricDuration adds the metricDuration to the fc port collection get params func (o *FcPortCollectionGetParams) SetMetricDuration(metricDuration *string) { o.MetricDuration = metricDuration } // WithMetricIopsOther adds the metricIopsOther to the fc port collection get params func (o *FcPortCollectionGetParams) WithMetricIopsOther(metricIopsOther *int64) *FcPortCollectionGetParams { o.SetMetricIopsOther(metricIopsOther) return o } // SetMetricIopsOther adds the metricIopsOther to the fc port collection get params func (o *FcPortCollectionGetParams) SetMetricIopsOther(metricIopsOther *int64) { o.MetricIopsOther = metricIopsOther } // WithMetricIopsRead adds the metricIopsRead to the fc port collection get params func (o *FcPortCollectionGetParams) WithMetricIopsRead(metricIopsRead *int64) *FcPortCollectionGetParams { o.SetMetricIopsRead(metricIopsRead) return o } // SetMetricIopsRead adds the metricIopsRead to the fc port collection get params func (o *FcPortCollectionGetParams) SetMetricIopsRead(metricIopsRead *int64) { o.MetricIopsRead = metricIopsRead } // WithMetricIopsTotal adds the metricIopsTotal to the fc port collection get params func (o *FcPortCollectionGetParams) WithMetricIopsTotal(metricIopsTotal *int64) *FcPortCollectionGetParams { o.SetMetricIopsTotal(metricIopsTotal) return o } // SetMetricIopsTotal adds the metricIopsTotal to the fc port collection get params func (o *FcPortCollectionGetParams) SetMetricIopsTotal(metricIopsTotal *int64) { o.MetricIopsTotal = metricIopsTotal } // WithMetricIopsWrite adds the metricIopsWrite to the fc port collection get params func (o *FcPortCollectionGetParams) WithMetricIopsWrite(metricIopsWrite *int64) *FcPortCollectionGetParams { o.SetMetricIopsWrite(metricIopsWrite) return o } // SetMetricIopsWrite adds the metricIopsWrite to the fc port collection get params func (o *FcPortCollectionGetParams) SetMetricIopsWrite(metricIopsWrite *int64) { o.MetricIopsWrite = metricIopsWrite } // WithMetricLatencyOther adds the metricLatencyOther to the fc port collection get params func (o *FcPortCollectionGetParams) WithMetricLatencyOther(metricLatencyOther *int64) *FcPortCollectionGetParams { o.SetMetricLatencyOther(metricLatencyOther) return o } // SetMetricLatencyOther adds the metricLatencyOther to the fc port collection get params func (o *FcPortCollectionGetParams) SetMetricLatencyOther(metricLatencyOther *int64) { o.MetricLatencyOther = metricLatencyOther } // WithMetricLatencyRead adds the metricLatencyRead to the fc port collection get params func (o *FcPortCollectionGetParams) WithMetricLatencyRead(metricLatencyRead *int64) *FcPortCollectionGetParams { o.SetMetricLatencyRead(metricLatencyRead) return o } // SetMetricLatencyRead adds the metricLatencyRead to the fc port collection get params func (o *FcPortCollectionGetParams) SetMetricLatencyRead(metricLatencyRead *int64) { o.MetricLatencyRead = metricLatencyRead } // WithMetricLatencyTotal adds the metricLatencyTotal to the fc port collection get params func (o *FcPortCollectionGetParams) WithMetricLatencyTotal(metricLatencyTotal *int64) *FcPortCollectionGetParams { o.SetMetricLatencyTotal(metricLatencyTotal) return o } // SetMetricLatencyTotal adds the metricLatencyTotal to the fc port collection get params func (o *FcPortCollectionGetParams) SetMetricLatencyTotal(metricLatencyTotal *int64) { o.MetricLatencyTotal = metricLatencyTotal } // WithMetricLatencyWrite adds the metricLatencyWrite to the fc port collection get params func (o *FcPortCollectionGetParams) WithMetricLatencyWrite(metricLatencyWrite *int64) *FcPortCollectionGetParams { o.SetMetricLatencyWrite(metricLatencyWrite) return o } // SetMetricLatencyWrite adds the metricLatencyWrite to the fc port collection get params func (o *FcPortCollectionGetParams) SetMetricLatencyWrite(metricLatencyWrite *int64) { o.MetricLatencyWrite = metricLatencyWrite } // WithMetricStatus adds the metricStatus to the fc port collection get params func (o *FcPortCollectionGetParams) WithMetricStatus(metricStatus *string) *FcPortCollectionGetParams { o.SetMetricStatus(metricStatus) return o } // SetMetricStatus adds the metricStatus to the fc port collection get params func (o *FcPortCollectionGetParams) SetMetricStatus(metricStatus *string) { o.MetricStatus = metricStatus } // WithMetricThroughputRead adds the metricThroughputRead to the fc port collection get params func (o *FcPortCollectionGetParams) WithMetricThroughputRead(metricThroughputRead *int64) *FcPortCollectionGetParams { o.SetMetricThroughputRead(metricThroughputRead) return o } // SetMetricThroughputRead adds the metricThroughputRead to the fc port collection get params func (o *FcPortCollectionGetParams) SetMetricThroughputRead(metricThroughputRead *int64) { o.MetricThroughputRead = metricThroughputRead } // WithMetricThroughputTotal adds the metricThroughputTotal to the fc port collection get params func (o *FcPortCollectionGetParams) WithMetricThroughputTotal(metricThroughputTotal *int64) *FcPortCollectionGetParams { o.SetMetricThroughputTotal(metricThroughputTotal) return o } // SetMetricThroughputTotal adds the metricThroughputTotal to the fc port collection get params func (o *FcPortCollectionGetParams) SetMetricThroughputTotal(metricThroughputTotal *int64) { o.MetricThroughputTotal = metricThroughputTotal } // WithMetricThroughputWrite adds the metricThroughputWrite to the fc port collection get params func (o *FcPortCollectionGetParams) WithMetricThroughputWrite(metricThroughputWrite *int64) *FcPortCollectionGetParams { o.SetMetricThroughputWrite(metricThroughputWrite) return o } // SetMetricThroughputWrite adds the metricThroughputWrite to the fc port collection get params func (o *FcPortCollectionGetParams) SetMetricThroughputWrite(metricThroughputWrite *int64) { o.MetricThroughputWrite = metricThroughputWrite } // WithMetricTimestamp adds the metricTimestamp to the fc port collection get params func (o *FcPortCollectionGetParams) WithMetricTimestamp(metricTimestamp *string) *FcPortCollectionGetParams { o.SetMetricTimestamp(metricTimestamp) return o } // SetMetricTimestamp adds the metricTimestamp to the fc port collection get params func (o *FcPortCollectionGetParams) SetMetricTimestamp(metricTimestamp *string) { o.MetricTimestamp = metricTimestamp } // WithName adds the name to the fc port collection get params func (o *FcPortCollectionGetParams) WithName(name *string) *FcPortCollectionGetParams { o.SetName(name) return o } // SetName adds the name to the fc port collection get params func (o *FcPortCollectionGetParams) SetName(name *string) { o.Name = name } // WithNodeName adds the nodeName to the fc port collection get params func (o *FcPortCollectionGetParams) WithNodeName(nodeName *string) *FcPortCollectionGetParams { o.SetNodeName(nodeName) return o } // SetNodeName adds the nodeName to the fc port collection get params func (o *FcPortCollectionGetParams) SetNodeName(nodeName *string) { o.NodeName = nodeName } // WithNodeUUID adds the nodeUUID to the fc port collection get params func (o *FcPortCollectionGetParams) WithNodeUUID(nodeUUID *string) *FcPortCollectionGetParams { o.SetNodeUUID(nodeUUID) return o } // SetNodeUUID adds the nodeUuid to the fc port collection get params func (o *FcPortCollectionGetParams) SetNodeUUID(nodeUUID *string) { o.NodeUUID = nodeUUID } // WithOrderBy adds the orderBy to the fc port collection get params func (o *FcPortCollectionGetParams) WithOrderBy(orderBy []string) *FcPortCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the fc port collection get params func (o *FcPortCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithPhysicalProtocol adds the physicalProtocol to the fc port collection get params func (o *FcPortCollectionGetParams) WithPhysicalProtocol(physicalProtocol *string) *FcPortCollectionGetParams { o.SetPhysicalProtocol(physicalProtocol) return o } // SetPhysicalProtocol adds the physicalProtocol to the fc port collection get params func (o *FcPortCollectionGetParams) SetPhysicalProtocol(physicalProtocol *string) { o.PhysicalProtocol = physicalProtocol } // WithReturnRecords adds the returnRecords to the fc port collection get params func (o *FcPortCollectionGetParams) WithReturnRecords(returnRecords *bool) *FcPortCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the fc port collection get params func (o *FcPortCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the fc port collection get params func (o *FcPortCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *FcPortCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the fc port collection get params func (o *FcPortCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithSpeedConfigured adds the speedConfigured to the fc port collection get params func (o *FcPortCollectionGetParams) WithSpeedConfigured(speedConfigured *string) *FcPortCollectionGetParams { o.SetSpeedConfigured(speedConfigured) return o } // SetSpeedConfigured adds the speedConfigured to the fc port collection get params func (o *FcPortCollectionGetParams) SetSpeedConfigured(speedConfigured *string) { o.SpeedConfigured = speedConfigured } // WithSpeedMaximum adds the speedMaximum to the fc port collection get params func (o *FcPortCollectionGetParams) WithSpeedMaximum(speedMaximum *string) *FcPortCollectionGetParams { o.SetSpeedMaximum(speedMaximum) return o } // SetSpeedMaximum adds the speedMaximum to the fc port collection get params func (o *FcPortCollectionGetParams) SetSpeedMaximum(speedMaximum *string) { o.SpeedMaximum = speedMaximum } // WithState adds the state to the fc port collection get params func (o *FcPortCollectionGetParams) WithState(state *string) *FcPortCollectionGetParams { o.SetState(state) return o } // SetState adds the state to the fc port collection get params func (o *FcPortCollectionGetParams) SetState(state *string) { o.State = state } // WithStatisticsIopsRawOther adds the statisticsIopsRawOther to the fc port collection get params func (o *FcPortCollectionGetParams) WithStatisticsIopsRawOther(statisticsIopsRawOther *int64) *FcPortCollectionGetParams { o.SetStatisticsIopsRawOther(statisticsIopsRawOther) return o } // SetStatisticsIopsRawOther adds the statisticsIopsRawOther to the fc port collection get params func (o *FcPortCollectionGetParams) SetStatisticsIopsRawOther(statisticsIopsRawOther *int64) { o.StatisticsIopsRawOther = statisticsIopsRawOther } // WithStatisticsIopsRawRead adds the statisticsIopsRawRead to the fc port collection get params func (o *FcPortCollectionGetParams) WithStatisticsIopsRawRead(statisticsIopsRawRead *int64) *FcPortCollectionGetParams { o.SetStatisticsIopsRawRead(statisticsIopsRawRead) return o } // SetStatisticsIopsRawRead adds the statisticsIopsRawRead to the fc port collection get params func (o *FcPortCollectionGetParams) SetStatisticsIopsRawRead(statisticsIopsRawRead *int64) { o.StatisticsIopsRawRead = statisticsIopsRawRead } // WithStatisticsIopsRawTotal adds the statisticsIopsRawTotal to the fc port collection get params func (o *FcPortCollectionGetParams) WithStatisticsIopsRawTotal(statisticsIopsRawTotal *int64) *FcPortCollectionGetParams { o.SetStatisticsIopsRawTotal(statisticsIopsRawTotal) return o } // SetStatisticsIopsRawTotal adds the statisticsIopsRawTotal to the fc port collection get params func (o *FcPortCollectionGetParams) SetStatisticsIopsRawTotal(statisticsIopsRawTotal *int64) { o.StatisticsIopsRawTotal = statisticsIopsRawTotal } // WithStatisticsIopsRawWrite adds the statisticsIopsRawWrite to the fc port collection get params func (o *FcPortCollectionGetParams) WithStatisticsIopsRawWrite(statisticsIopsRawWrite *int64) *FcPortCollectionGetParams { o.SetStatisticsIopsRawWrite(statisticsIopsRawWrite) return o } // SetStatisticsIopsRawWrite adds the statisticsIopsRawWrite to the fc port collection get params func (o *FcPortCollectionGetParams) SetStatisticsIopsRawWrite(statisticsIopsRawWrite *int64) { o.StatisticsIopsRawWrite = statisticsIopsRawWrite } // WithStatisticsLatencyRawOther adds the statisticsLatencyRawOther to the fc port collection get params func (o *FcPortCollectionGetParams) WithStatisticsLatencyRawOther(statisticsLatencyRawOther *int64) *FcPortCollectionGetParams { o.SetStatisticsLatencyRawOther(statisticsLatencyRawOther) return o } // SetStatisticsLatencyRawOther adds the statisticsLatencyRawOther to the fc port collection get params func (o *FcPortCollectionGetParams) SetStatisticsLatencyRawOther(statisticsLatencyRawOther *int64) { o.StatisticsLatencyRawOther = statisticsLatencyRawOther } // WithStatisticsLatencyRawRead adds the statisticsLatencyRawRead to the fc port collection get params func (o *FcPortCollectionGetParams) WithStatisticsLatencyRawRead(statisticsLatencyRawRead *int64) *FcPortCollectionGetParams { o.SetStatisticsLatencyRawRead(statisticsLatencyRawRead) return o } // SetStatisticsLatencyRawRead adds the statisticsLatencyRawRead to the fc port collection get params func (o *FcPortCollectionGetParams) SetStatisticsLatencyRawRead(statisticsLatencyRawRead *int64) { o.StatisticsLatencyRawRead = statisticsLatencyRawRead } // WithStatisticsLatencyRawTotal adds the statisticsLatencyRawTotal to the fc port collection get params func (o *FcPortCollectionGetParams) WithStatisticsLatencyRawTotal(statisticsLatencyRawTotal *int64) *FcPortCollectionGetParams { o.SetStatisticsLatencyRawTotal(statisticsLatencyRawTotal) return o } // SetStatisticsLatencyRawTotal adds the statisticsLatencyRawTotal to the fc port collection get params func (o *FcPortCollectionGetParams) SetStatisticsLatencyRawTotal(statisticsLatencyRawTotal *int64) { o.StatisticsLatencyRawTotal = statisticsLatencyRawTotal } // WithStatisticsLatencyRawWrite adds the statisticsLatencyRawWrite to the fc port collection get params func (o *FcPortCollectionGetParams) WithStatisticsLatencyRawWrite(statisticsLatencyRawWrite *int64) *FcPortCollectionGetParams { o.SetStatisticsLatencyRawWrite(statisticsLatencyRawWrite) return o } // SetStatisticsLatencyRawWrite adds the statisticsLatencyRawWrite to the fc port collection get params func (o *FcPortCollectionGetParams) SetStatisticsLatencyRawWrite(statisticsLatencyRawWrite *int64) { o.StatisticsLatencyRawWrite = statisticsLatencyRawWrite } // WithStatisticsStatus adds the statisticsStatus to the fc port collection get params func (o *FcPortCollectionGetParams) WithStatisticsStatus(statisticsStatus *string) *FcPortCollectionGetParams { o.SetStatisticsStatus(statisticsStatus) return o } // SetStatisticsStatus adds the statisticsStatus to the fc port collection get params func (o *FcPortCollectionGetParams) SetStatisticsStatus(statisticsStatus *string) { o.StatisticsStatus = statisticsStatus } // WithStatisticsThroughputRawRead adds the statisticsThroughputRawRead to the fc port collection get params func (o *FcPortCollectionGetParams) WithStatisticsThroughputRawRead(statisticsThroughputRawRead *int64) *FcPortCollectionGetParams { o.SetStatisticsThroughputRawRead(statisticsThroughputRawRead) return o } // SetStatisticsThroughputRawRead adds the statisticsThroughputRawRead to the fc port collection get params func (o *FcPortCollectionGetParams) SetStatisticsThroughputRawRead(statisticsThroughputRawRead *int64) { o.StatisticsThroughputRawRead = statisticsThroughputRawRead } // WithStatisticsThroughputRawTotal adds the statisticsThroughputRawTotal to the fc port collection get params func (o *FcPortCollectionGetParams) WithStatisticsThroughputRawTotal(statisticsThroughputRawTotal *int64) *FcPortCollectionGetParams { o.SetStatisticsThroughputRawTotal(statisticsThroughputRawTotal) return o } // SetStatisticsThroughputRawTotal adds the statisticsThroughputRawTotal to the fc port collection get params func (o *FcPortCollectionGetParams) SetStatisticsThroughputRawTotal(statisticsThroughputRawTotal *int64) { o.StatisticsThroughputRawTotal = statisticsThroughputRawTotal } // WithStatisticsThroughputRawWrite adds the statisticsThroughputRawWrite to the fc port collection get params func (o *FcPortCollectionGetParams) WithStatisticsThroughputRawWrite(statisticsThroughputRawWrite *int64) *FcPortCollectionGetParams { o.SetStatisticsThroughputRawWrite(statisticsThroughputRawWrite) return o } // SetStatisticsThroughputRawWrite adds the statisticsThroughputRawWrite to the fc port collection get params func (o *FcPortCollectionGetParams) SetStatisticsThroughputRawWrite(statisticsThroughputRawWrite *int64) { o.StatisticsThroughputRawWrite = statisticsThroughputRawWrite } // WithStatisticsTimestamp adds the statisticsTimestamp to the fc port collection get params func (o *FcPortCollectionGetParams) WithStatisticsTimestamp(statisticsTimestamp *string) *FcPortCollectionGetParams { o.SetStatisticsTimestamp(statisticsTimestamp) return o } // SetStatisticsTimestamp adds the statisticsTimestamp to the fc port collection get params func (o *FcPortCollectionGetParams) SetStatisticsTimestamp(statisticsTimestamp *string) { o.StatisticsTimestamp = statisticsTimestamp } // WithSupportedProtocols adds the supportedProtocols to the fc port collection get params func (o *FcPortCollectionGetParams) WithSupportedProtocols(supportedProtocols *string) *FcPortCollectionGetParams { o.SetSupportedProtocols(supportedProtocols) return o } // SetSupportedProtocols adds the supportedProtocols to the fc port collection get params func (o *FcPortCollectionGetParams) SetSupportedProtocols(supportedProtocols *string) { o.SupportedProtocols = supportedProtocols } // WithTransceiverCapabilities adds the transceiverCapabilities to the fc port collection get params func (o *FcPortCollectionGetParams) WithTransceiverCapabilities(transceiverCapabilities *int64) *FcPortCollectionGetParams { o.SetTransceiverCapabilities(transceiverCapabilities) return o } // SetTransceiverCapabilities adds the transceiverCapabilities to the fc port collection get params func (o *FcPortCollectionGetParams) SetTransceiverCapabilities(transceiverCapabilities *int64) { o.TransceiverCapabilities = transceiverCapabilities } // WithTransceiverFormFactor adds the transceiverFormFactor to the fc port collection get params func (o *FcPortCollectionGetParams) WithTransceiverFormFactor(transceiverFormFactor *string) *FcPortCollectionGetParams { o.SetTransceiverFormFactor(transceiverFormFactor) return o } // SetTransceiverFormFactor adds the transceiverFormFactor to the fc port collection get params func (o *FcPortCollectionGetParams) SetTransceiverFormFactor(transceiverFormFactor *string) { o.TransceiverFormFactor = transceiverFormFactor } // WithTransceiverManufacturer adds the transceiverManufacturer to the fc port collection get params
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
true
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ethernet_broadcast_domain_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ethernet_broadcast_domain_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NetworkEthernetBroadcastDomainGetReader is a Reader for the NetworkEthernetBroadcastDomainGet structure. type NetworkEthernetBroadcastDomainGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NetworkEthernetBroadcastDomainGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNetworkEthernetBroadcastDomainGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNetworkEthernetBroadcastDomainGetDefault(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 } } // NewNetworkEthernetBroadcastDomainGetOK creates a NetworkEthernetBroadcastDomainGetOK with default headers values func NewNetworkEthernetBroadcastDomainGetOK() *NetworkEthernetBroadcastDomainGetOK { return &NetworkEthernetBroadcastDomainGetOK{} } /* NetworkEthernetBroadcastDomainGetOK describes a response with status code 200, with default header values. OK */ type NetworkEthernetBroadcastDomainGetOK struct { Payload *models.BroadcastDomain } // IsSuccess returns true when this network ethernet broadcast domain get o k response has a 2xx status code func (o *NetworkEthernetBroadcastDomainGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this network ethernet broadcast domain get o k response has a 3xx status code func (o *NetworkEthernetBroadcastDomainGetOK) IsRedirect() bool { return false } // IsClientError returns true when this network ethernet broadcast domain get o k response has a 4xx status code func (o *NetworkEthernetBroadcastDomainGetOK) IsClientError() bool { return false } // IsServerError returns true when this network ethernet broadcast domain get o k response has a 5xx status code func (o *NetworkEthernetBroadcastDomainGetOK) IsServerError() bool { return false } // IsCode returns true when this network ethernet broadcast domain get o k response a status code equal to that given func (o *NetworkEthernetBroadcastDomainGetOK) IsCode(code int) bool { return code == 200 } func (o *NetworkEthernetBroadcastDomainGetOK) Error() string { return fmt.Sprintf("[GET /network/ethernet/broadcast-domains/{uuid}][%d] networkEthernetBroadcastDomainGetOK %+v", 200, o.Payload) } func (o *NetworkEthernetBroadcastDomainGetOK) String() string { return fmt.Sprintf("[GET /network/ethernet/broadcast-domains/{uuid}][%d] networkEthernetBroadcastDomainGetOK %+v", 200, o.Payload) } func (o *NetworkEthernetBroadcastDomainGetOK) GetPayload() *models.BroadcastDomain { return o.Payload } func (o *NetworkEthernetBroadcastDomainGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.BroadcastDomain) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewNetworkEthernetBroadcastDomainGetDefault creates a NetworkEthernetBroadcastDomainGetDefault with default headers values func NewNetworkEthernetBroadcastDomainGetDefault(code int) *NetworkEthernetBroadcastDomainGetDefault { return &NetworkEthernetBroadcastDomainGetDefault{ _statusCode: code, } } /* NetworkEthernetBroadcastDomainGetDefault describes a response with status code -1, with default header values. Error */ type NetworkEthernetBroadcastDomainGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the network ethernet broadcast domain get default response func (o *NetworkEthernetBroadcastDomainGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this network ethernet broadcast domain get default response has a 2xx status code func (o *NetworkEthernetBroadcastDomainGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this network ethernet broadcast domain get default response has a 3xx status code func (o *NetworkEthernetBroadcastDomainGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this network ethernet broadcast domain get default response has a 4xx status code func (o *NetworkEthernetBroadcastDomainGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this network ethernet broadcast domain get default response has a 5xx status code func (o *NetworkEthernetBroadcastDomainGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this network ethernet broadcast domain get default response a status code equal to that given func (o *NetworkEthernetBroadcastDomainGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NetworkEthernetBroadcastDomainGetDefault) Error() string { return fmt.Sprintf("[GET /network/ethernet/broadcast-domains/{uuid}][%d] network_ethernet_broadcast_domain_get default %+v", o._statusCode, o.Payload) } func (o *NetworkEthernetBroadcastDomainGetDefault) String() string { return fmt.Sprintf("[GET /network/ethernet/broadcast-domains/{uuid}][%d] network_ethernet_broadcast_domain_get default %+v", o._statusCode, o.Payload) } func (o *NetworkEthernetBroadcastDomainGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NetworkEthernetBroadcastDomainGetDefault) 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/networking/switch_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/switch_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewSwitchCollectionGetParams creates a new SwitchCollectionGetParams 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 NewSwitchCollectionGetParams() *SwitchCollectionGetParams { return &SwitchCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewSwitchCollectionGetParamsWithTimeout creates a new SwitchCollectionGetParams object // with the ability to set a timeout on a request. func NewSwitchCollectionGetParamsWithTimeout(timeout time.Duration) *SwitchCollectionGetParams { return &SwitchCollectionGetParams{ timeout: timeout, } } // NewSwitchCollectionGetParamsWithContext creates a new SwitchCollectionGetParams object // with the ability to set a context for a request. func NewSwitchCollectionGetParamsWithContext(ctx context.Context) *SwitchCollectionGetParams { return &SwitchCollectionGetParams{ Context: ctx, } } // NewSwitchCollectionGetParamsWithHTTPClient creates a new SwitchCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewSwitchCollectionGetParamsWithHTTPClient(client *http.Client) *SwitchCollectionGetParams { return &SwitchCollectionGetParams{ HTTPClient: client, } } /* SwitchCollectionGetParams contains all the parameters to send to the API endpoint for the switch collection get operation. Typically these are written to a http.Request. */ type SwitchCollectionGetParams struct { /* Address. Filter by address */ Address *string /* Discovered. Filter by discovered */ Discovered *bool /* Fields. Specify the fields to return. */ Fields []string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* Model. Filter by model */ Model *string /* MonitoringEnabled. Filter by monitoring.enabled */ MonitoringEnabled *bool /* MonitoringMonitored. Filter by monitoring.monitored */ MonitoringMonitored *bool /* MonitoringReason. Filter by monitoring.reason */ MonitoringReason *string /* Name. Filter by name */ Name *string /* Network. Filter by network */ Network *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 /* SerialNumber. Filter by serial_number */ SerialNumber *string /* SnmpUser. Filter by snmp.user */ SnmpUser *string /* SnmpVersion. Filter by snmp.version */ SnmpVersion *string /* Version. Filter by version */ Version *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the switch collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *SwitchCollectionGetParams) WithDefaults() *SwitchCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the switch collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *SwitchCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := SwitchCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the switch collection get params func (o *SwitchCollectionGetParams) WithTimeout(timeout time.Duration) *SwitchCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the switch collection get params func (o *SwitchCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the switch collection get params func (o *SwitchCollectionGetParams) WithContext(ctx context.Context) *SwitchCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the switch collection get params func (o *SwitchCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the switch collection get params func (o *SwitchCollectionGetParams) WithHTTPClient(client *http.Client) *SwitchCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the switch collection get params func (o *SwitchCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAddress adds the address to the switch collection get params func (o *SwitchCollectionGetParams) WithAddress(address *string) *SwitchCollectionGetParams { o.SetAddress(address) return o } // SetAddress adds the address to the switch collection get params func (o *SwitchCollectionGetParams) SetAddress(address *string) { o.Address = address } // WithDiscovered adds the discovered to the switch collection get params func (o *SwitchCollectionGetParams) WithDiscovered(discovered *bool) *SwitchCollectionGetParams { o.SetDiscovered(discovered) return o } // SetDiscovered adds the discovered to the switch collection get params func (o *SwitchCollectionGetParams) SetDiscovered(discovered *bool) { o.Discovered = discovered } // WithFields adds the fields to the switch collection get params func (o *SwitchCollectionGetParams) WithFields(fields []string) *SwitchCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the switch collection get params func (o *SwitchCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithMaxRecords adds the maxRecords to the switch collection get params func (o *SwitchCollectionGetParams) WithMaxRecords(maxRecords *int64) *SwitchCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the switch collection get params func (o *SwitchCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithModel adds the model to the switch collection get params func (o *SwitchCollectionGetParams) WithModel(model *string) *SwitchCollectionGetParams { o.SetModel(model) return o } // SetModel adds the model to the switch collection get params func (o *SwitchCollectionGetParams) SetModel(model *string) { o.Model = model } // WithMonitoringEnabled adds the monitoringEnabled to the switch collection get params func (o *SwitchCollectionGetParams) WithMonitoringEnabled(monitoringEnabled *bool) *SwitchCollectionGetParams { o.SetMonitoringEnabled(monitoringEnabled) return o } // SetMonitoringEnabled adds the monitoringEnabled to the switch collection get params func (o *SwitchCollectionGetParams) SetMonitoringEnabled(monitoringEnabled *bool) { o.MonitoringEnabled = monitoringEnabled } // WithMonitoringMonitored adds the monitoringMonitored to the switch collection get params func (o *SwitchCollectionGetParams) WithMonitoringMonitored(monitoringMonitored *bool) *SwitchCollectionGetParams { o.SetMonitoringMonitored(monitoringMonitored) return o } // SetMonitoringMonitored adds the monitoringMonitored to the switch collection get params func (o *SwitchCollectionGetParams) SetMonitoringMonitored(monitoringMonitored *bool) { o.MonitoringMonitored = monitoringMonitored } // WithMonitoringReason adds the monitoringReason to the switch collection get params func (o *SwitchCollectionGetParams) WithMonitoringReason(monitoringReason *string) *SwitchCollectionGetParams { o.SetMonitoringReason(monitoringReason) return o } // SetMonitoringReason adds the monitoringReason to the switch collection get params func (o *SwitchCollectionGetParams) SetMonitoringReason(monitoringReason *string) { o.MonitoringReason = monitoringReason } // WithName adds the name to the switch collection get params func (o *SwitchCollectionGetParams) WithName(name *string) *SwitchCollectionGetParams { o.SetName(name) return o } // SetName adds the name to the switch collection get params func (o *SwitchCollectionGetParams) SetName(name *string) { o.Name = name } // WithNetwork adds the network to the switch collection get params func (o *SwitchCollectionGetParams) WithNetwork(network *string) *SwitchCollectionGetParams { o.SetNetwork(network) return o } // SetNetwork adds the network to the switch collection get params func (o *SwitchCollectionGetParams) SetNetwork(network *string) { o.Network = network } // WithOrderBy adds the orderBy to the switch collection get params func (o *SwitchCollectionGetParams) WithOrderBy(orderBy []string) *SwitchCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the switch collection get params func (o *SwitchCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the switch collection get params func (o *SwitchCollectionGetParams) WithReturnRecords(returnRecords *bool) *SwitchCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the switch collection get params func (o *SwitchCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the switch collection get params func (o *SwitchCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *SwitchCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the switch collection get params func (o *SwitchCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithSerialNumber adds the serialNumber to the switch collection get params func (o *SwitchCollectionGetParams) WithSerialNumber(serialNumber *string) *SwitchCollectionGetParams { o.SetSerialNumber(serialNumber) return o } // SetSerialNumber adds the serialNumber to the switch collection get params func (o *SwitchCollectionGetParams) SetSerialNumber(serialNumber *string) { o.SerialNumber = serialNumber } // WithSnmpUser adds the snmpUser to the switch collection get params func (o *SwitchCollectionGetParams) WithSnmpUser(snmpUser *string) *SwitchCollectionGetParams { o.SetSnmpUser(snmpUser) return o } // SetSnmpUser adds the snmpUser to the switch collection get params func (o *SwitchCollectionGetParams) SetSnmpUser(snmpUser *string) { o.SnmpUser = snmpUser } // WithSnmpVersion adds the snmpVersion to the switch collection get params func (o *SwitchCollectionGetParams) WithSnmpVersion(snmpVersion *string) *SwitchCollectionGetParams { o.SetSnmpVersion(snmpVersion) return o } // SetSnmpVersion adds the snmpVersion to the switch collection get params func (o *SwitchCollectionGetParams) SetSnmpVersion(snmpVersion *string) { o.SnmpVersion = snmpVersion } // WithVersion adds the version to the switch collection get params func (o *SwitchCollectionGetParams) WithVersion(version *string) *SwitchCollectionGetParams { o.SetVersion(version) return o } // SetVersion adds the version to the switch collection get params func (o *SwitchCollectionGetParams) SetVersion(version *string) { o.Version = version } // WriteToRequest writes these params to a swagger request func (o *SwitchCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Address != nil { // query param address var qrAddress string if o.Address != nil { qrAddress = *o.Address } qAddress := qrAddress if qAddress != "" { if err := r.SetQueryParam("address", qAddress); err != nil { return err } } } if o.Discovered != nil { // query param discovered var qrDiscovered bool if o.Discovered != nil { qrDiscovered = *o.Discovered } qDiscovered := swag.FormatBool(qrDiscovered) if qDiscovered != "" { if err := r.SetQueryParam("discovered", qDiscovered); 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.Model != nil { // query param model var qrModel string if o.Model != nil { qrModel = *o.Model } qModel := qrModel if qModel != "" { if err := r.SetQueryParam("model", qModel); err != nil { return err } } } if o.MonitoringEnabled != nil { // query param monitoring.enabled var qrMonitoringEnabled bool if o.MonitoringEnabled != nil { qrMonitoringEnabled = *o.MonitoringEnabled } qMonitoringEnabled := swag.FormatBool(qrMonitoringEnabled) if qMonitoringEnabled != "" { if err := r.SetQueryParam("monitoring.enabled", qMonitoringEnabled); err != nil { return err } } } if o.MonitoringMonitored != nil { // query param monitoring.monitored var qrMonitoringMonitored bool if o.MonitoringMonitored != nil { qrMonitoringMonitored = *o.MonitoringMonitored } qMonitoringMonitored := swag.FormatBool(qrMonitoringMonitored) if qMonitoringMonitored != "" { if err := r.SetQueryParam("monitoring.monitored", qMonitoringMonitored); err != nil { return err } } } if o.MonitoringReason != nil { // query param monitoring.reason var qrMonitoringReason string if o.MonitoringReason != nil { qrMonitoringReason = *o.MonitoringReason } qMonitoringReason := qrMonitoringReason if qMonitoringReason != "" { if err := r.SetQueryParam("monitoring.reason", qMonitoringReason); 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.Network != nil { // query param network var qrNetwork string if o.Network != nil { qrNetwork = *o.Network } qNetwork := qrNetwork if qNetwork != "" { if err := r.SetQueryParam("network", qNetwork); 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.SerialNumber != nil { // query param serial_number var qrSerialNumber string if o.SerialNumber != nil { qrSerialNumber = *o.SerialNumber } qSerialNumber := qrSerialNumber if qSerialNumber != "" { if err := r.SetQueryParam("serial_number", qSerialNumber); err != nil { return err } } } if o.SnmpUser != nil { // query param snmp.user var qrSnmpUser string if o.SnmpUser != nil { qrSnmpUser = *o.SnmpUser } qSnmpUser := qrSnmpUser if qSnmpUser != "" { if err := r.SetQueryParam("snmp.user", qSnmpUser); err != nil { return err } } } if o.SnmpVersion != nil { // query param snmp.version var qrSnmpVersion string if o.SnmpVersion != nil { qrSnmpVersion = *o.SnmpVersion } qSnmpVersion := qrSnmpVersion if qSnmpVersion != "" { if err := r.SetQueryParam("snmp.version", qSnmpVersion); err != nil { return err } } } if o.Version != nil { // query param version var qrVersion string if o.Version != nil { qrVersion = *o.Version } qVersion := qrVersion if qVersion != "" { if err := r.SetQueryParam("version", qVersion); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamSwitchCollectionGet binds the parameter fields func (o *SwitchCollectionGetParams) 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 } // bindParamSwitchCollectionGet binds the parameter order_by func (o *SwitchCollectionGetParams) 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/networking/network_ethernet_ports_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ethernet_ports_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewNetworkEthernetPortsGetParams creates a new NetworkEthernetPortsGetParams 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 NewNetworkEthernetPortsGetParams() *NetworkEthernetPortsGetParams { return &NetworkEthernetPortsGetParams{ timeout: cr.DefaultTimeout, } } // NewNetworkEthernetPortsGetParamsWithTimeout creates a new NetworkEthernetPortsGetParams object // with the ability to set a timeout on a request. func NewNetworkEthernetPortsGetParamsWithTimeout(timeout time.Duration) *NetworkEthernetPortsGetParams { return &NetworkEthernetPortsGetParams{ timeout: timeout, } } // NewNetworkEthernetPortsGetParamsWithContext creates a new NetworkEthernetPortsGetParams object // with the ability to set a context for a request. func NewNetworkEthernetPortsGetParamsWithContext(ctx context.Context) *NetworkEthernetPortsGetParams { return &NetworkEthernetPortsGetParams{ Context: ctx, } } // NewNetworkEthernetPortsGetParamsWithHTTPClient creates a new NetworkEthernetPortsGetParams object // with the ability to set a custom HTTPClient for a request. func NewNetworkEthernetPortsGetParamsWithHTTPClient(client *http.Client) *NetworkEthernetPortsGetParams { return &NetworkEthernetPortsGetParams{ HTTPClient: client, } } /* NetworkEthernetPortsGetParams contains all the parameters to send to the API endpoint for the network ethernet ports get operation. Typically these are written to a http.Request. */ type NetworkEthernetPortsGetParams struct { /* BroadcastDomainIpspaceName. Filter by broadcast_domain.ipspace.name */ BroadcastDomainIpspaceName *string /* BroadcastDomainName. Filter by broadcast_domain.name */ BroadcastDomainName *string /* BroadcastDomainUUID. Filter by broadcast_domain.uuid */ BroadcastDomainUUID *string /* DiscoveredDevicesCapabilities. Filter by discovered_devices.capabilities */ DiscoveredDevicesCapabilities *string /* DiscoveredDevicesChassisID. Filter by discovered_devices.chassis_id */ DiscoveredDevicesChassisID *string /* DiscoveredDevicesIPAddresses. Filter by discovered_devices.ip_addresses */ DiscoveredDevicesIPAddresses *string /* DiscoveredDevicesName. Filter by discovered_devices.name */ DiscoveredDevicesName *string /* DiscoveredDevicesPlatform. Filter by discovered_devices.platform */ DiscoveredDevicesPlatform *string /* DiscoveredDevicesProtocol. Filter by discovered_devices.protocol */ DiscoveredDevicesProtocol *string /* DiscoveredDevicesRemainingHoldTime. Filter by discovered_devices.remaining_hold_time */ DiscoveredDevicesRemainingHoldTime *int64 /* DiscoveredDevicesRemotePort. Filter by discovered_devices.remote_port */ DiscoveredDevicesRemotePort *string /* DiscoveredDevicesSystemName. Filter by discovered_devices.system_name */ DiscoveredDevicesSystemName *string /* DiscoveredDevicesVersion. Filter by discovered_devices.version */ DiscoveredDevicesVersion *string /* Enabled. Filter by enabled */ Enabled *bool /* Fields. Specify the fields to return. */ Fields []string /* InterfaceCount. Filter by interface_count */ InterfaceCount *int64 /* LagActivePortsName. Filter by lag.active_ports.name */ LagActivePortsName *string /* LagActivePortsNodeName. Filter by lag.active_ports.node.name */ LagActivePortsNodeName *string /* LagActivePortsUUID. Filter by lag.active_ports.uuid */ LagActivePortsUUID *string /* LagDistributionPolicy. Filter by lag.distribution_policy */ LagDistributionPolicy *string /* LagMemberPortsName. Filter by lag.member_ports.name */ LagMemberPortsName *string /* LagMemberPortsNodeName. Filter by lag.member_ports.node.name */ LagMemberPortsNodeName *string /* LagMemberPortsUUID. Filter by lag.member_ports.uuid */ LagMemberPortsUUID *string /* LagMode. Filter by lag.mode */ LagMode *string /* MacAddress. Filter by mac_address */ MacAddress *string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* MetricDuration. Filter by metric.duration */ MetricDuration *string /* 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 /* Mtu. Filter by mtu */ Mtu *int64 /* Name. Filter by name */ Name *string /* NodeName. Filter by node.name */ NodeName *string /* NodeUUID. Filter by node.uuid */ NodeUUID *string /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* RdmaProtocols. Filter by rdma_protocols */ RdmaProtocols *string /* Reachability. Filter by reachability */ Reachability *string /* ReachableBroadcastDomainsIpspaceName. Filter by reachable_broadcast_domains.ipspace.name */ ReachableBroadcastDomainsIpspaceName *string /* ReachableBroadcastDomainsName. Filter by reachable_broadcast_domains.name */ ReachableBroadcastDomainsName *string /* ReachableBroadcastDomainsUUID. Filter by reachable_broadcast_domains.uuid */ ReachableBroadcastDomainsUUID *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 /* Speed. Filter by speed */ Speed *int64 /* State. Filter by state */ State *string /* StatisticsDeviceLinkDownCountRaw. Filter by statistics.device.link_down_count_raw */ StatisticsDeviceLinkDownCountRaw *int64 /* StatisticsDeviceReceiveRawDiscards. Filter by statistics.device.receive_raw.discards */ StatisticsDeviceReceiveRawDiscards *int64 /* StatisticsDeviceReceiveRawErrors. Filter by statistics.device.receive_raw.errors */ StatisticsDeviceReceiveRawErrors *int64 /* StatisticsDeviceReceiveRawPackets. Filter by statistics.device.receive_raw.packets */ StatisticsDeviceReceiveRawPackets *int64 /* StatisticsDeviceTimestamp. Filter by statistics.device.timestamp */ StatisticsDeviceTimestamp *string /* StatisticsDeviceTransmitRawDiscards. Filter by statistics.device.transmit_raw.discards */ StatisticsDeviceTransmitRawDiscards *int64 /* StatisticsDeviceTransmitRawErrors. Filter by statistics.device.transmit_raw.errors */ StatisticsDeviceTransmitRawErrors *int64 /* StatisticsDeviceTransmitRawPackets. Filter by statistics.device.transmit_raw.packets */ StatisticsDeviceTransmitRawPackets *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 /* Type. Filter by type */ Type *string /* UUID. Filter by uuid */ UUID *string /* VlanBasePortName. Filter by vlan.base_port.name */ VlanBasePortName *string /* VlanBasePortNodeName. Filter by vlan.base_port.node.name */ VlanBasePortNodeName *string /* VlanBasePortUUID. Filter by vlan.base_port.uuid */ VlanBasePortUUID *string /* VlanTag. Filter by vlan.tag */ VlanTag *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the network ethernet ports get params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkEthernetPortsGetParams) WithDefaults() *NetworkEthernetPortsGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the network ethernet ports get params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkEthernetPortsGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := NetworkEthernetPortsGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithTimeout(timeout time.Duration) *NetworkEthernetPortsGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithContext(ctx context.Context) *NetworkEthernetPortsGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithHTTPClient(client *http.Client) *NetworkEthernetPortsGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithBroadcastDomainIpspaceName adds the broadcastDomainIpspaceName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithBroadcastDomainIpspaceName(broadcastDomainIpspaceName *string) *NetworkEthernetPortsGetParams { o.SetBroadcastDomainIpspaceName(broadcastDomainIpspaceName) return o } // SetBroadcastDomainIpspaceName adds the broadcastDomainIpspaceName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetBroadcastDomainIpspaceName(broadcastDomainIpspaceName *string) { o.BroadcastDomainIpspaceName = broadcastDomainIpspaceName } // WithBroadcastDomainName adds the broadcastDomainName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithBroadcastDomainName(broadcastDomainName *string) *NetworkEthernetPortsGetParams { o.SetBroadcastDomainName(broadcastDomainName) return o } // SetBroadcastDomainName adds the broadcastDomainName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetBroadcastDomainName(broadcastDomainName *string) { o.BroadcastDomainName = broadcastDomainName } // WithBroadcastDomainUUID adds the broadcastDomainUUID to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithBroadcastDomainUUID(broadcastDomainUUID *string) *NetworkEthernetPortsGetParams { o.SetBroadcastDomainUUID(broadcastDomainUUID) return o } // SetBroadcastDomainUUID adds the broadcastDomainUuid to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetBroadcastDomainUUID(broadcastDomainUUID *string) { o.BroadcastDomainUUID = broadcastDomainUUID } // WithDiscoveredDevicesCapabilities adds the discoveredDevicesCapabilities to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithDiscoveredDevicesCapabilities(discoveredDevicesCapabilities *string) *NetworkEthernetPortsGetParams { o.SetDiscoveredDevicesCapabilities(discoveredDevicesCapabilities) return o } // SetDiscoveredDevicesCapabilities adds the discoveredDevicesCapabilities to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetDiscoveredDevicesCapabilities(discoveredDevicesCapabilities *string) { o.DiscoveredDevicesCapabilities = discoveredDevicesCapabilities } // WithDiscoveredDevicesChassisID adds the discoveredDevicesChassisID to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithDiscoveredDevicesChassisID(discoveredDevicesChassisID *string) *NetworkEthernetPortsGetParams { o.SetDiscoveredDevicesChassisID(discoveredDevicesChassisID) return o } // SetDiscoveredDevicesChassisID adds the discoveredDevicesChassisId to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetDiscoveredDevicesChassisID(discoveredDevicesChassisID *string) { o.DiscoveredDevicesChassisID = discoveredDevicesChassisID } // WithDiscoveredDevicesIPAddresses adds the discoveredDevicesIPAddresses to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithDiscoveredDevicesIPAddresses(discoveredDevicesIPAddresses *string) *NetworkEthernetPortsGetParams { o.SetDiscoveredDevicesIPAddresses(discoveredDevicesIPAddresses) return o } // SetDiscoveredDevicesIPAddresses adds the discoveredDevicesIpAddresses to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetDiscoveredDevicesIPAddresses(discoveredDevicesIPAddresses *string) { o.DiscoveredDevicesIPAddresses = discoveredDevicesIPAddresses } // WithDiscoveredDevicesName adds the discoveredDevicesName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithDiscoveredDevicesName(discoveredDevicesName *string) *NetworkEthernetPortsGetParams { o.SetDiscoveredDevicesName(discoveredDevicesName) return o } // SetDiscoveredDevicesName adds the discoveredDevicesName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetDiscoveredDevicesName(discoveredDevicesName *string) { o.DiscoveredDevicesName = discoveredDevicesName } // WithDiscoveredDevicesPlatform adds the discoveredDevicesPlatform to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithDiscoveredDevicesPlatform(discoveredDevicesPlatform *string) *NetworkEthernetPortsGetParams { o.SetDiscoveredDevicesPlatform(discoveredDevicesPlatform) return o } // SetDiscoveredDevicesPlatform adds the discoveredDevicesPlatform to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetDiscoveredDevicesPlatform(discoveredDevicesPlatform *string) { o.DiscoveredDevicesPlatform = discoveredDevicesPlatform } // WithDiscoveredDevicesProtocol adds the discoveredDevicesProtocol to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithDiscoveredDevicesProtocol(discoveredDevicesProtocol *string) *NetworkEthernetPortsGetParams { o.SetDiscoveredDevicesProtocol(discoveredDevicesProtocol) return o } // SetDiscoveredDevicesProtocol adds the discoveredDevicesProtocol to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetDiscoveredDevicesProtocol(discoveredDevicesProtocol *string) { o.DiscoveredDevicesProtocol = discoveredDevicesProtocol } // WithDiscoveredDevicesRemainingHoldTime adds the discoveredDevicesRemainingHoldTime to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithDiscoveredDevicesRemainingHoldTime(discoveredDevicesRemainingHoldTime *int64) *NetworkEthernetPortsGetParams { o.SetDiscoveredDevicesRemainingHoldTime(discoveredDevicesRemainingHoldTime) return o } // SetDiscoveredDevicesRemainingHoldTime adds the discoveredDevicesRemainingHoldTime to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetDiscoveredDevicesRemainingHoldTime(discoveredDevicesRemainingHoldTime *int64) { o.DiscoveredDevicesRemainingHoldTime = discoveredDevicesRemainingHoldTime } // WithDiscoveredDevicesRemotePort adds the discoveredDevicesRemotePort to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithDiscoveredDevicesRemotePort(discoveredDevicesRemotePort *string) *NetworkEthernetPortsGetParams { o.SetDiscoveredDevicesRemotePort(discoveredDevicesRemotePort) return o } // SetDiscoveredDevicesRemotePort adds the discoveredDevicesRemotePort to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetDiscoveredDevicesRemotePort(discoveredDevicesRemotePort *string) { o.DiscoveredDevicesRemotePort = discoveredDevicesRemotePort } // WithDiscoveredDevicesSystemName adds the discoveredDevicesSystemName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithDiscoveredDevicesSystemName(discoveredDevicesSystemName *string) *NetworkEthernetPortsGetParams { o.SetDiscoveredDevicesSystemName(discoveredDevicesSystemName) return o } // SetDiscoveredDevicesSystemName adds the discoveredDevicesSystemName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetDiscoveredDevicesSystemName(discoveredDevicesSystemName *string) { o.DiscoveredDevicesSystemName = discoveredDevicesSystemName } // WithDiscoveredDevicesVersion adds the discoveredDevicesVersion to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithDiscoveredDevicesVersion(discoveredDevicesVersion *string) *NetworkEthernetPortsGetParams { o.SetDiscoveredDevicesVersion(discoveredDevicesVersion) return o } // SetDiscoveredDevicesVersion adds the discoveredDevicesVersion to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetDiscoveredDevicesVersion(discoveredDevicesVersion *string) { o.DiscoveredDevicesVersion = discoveredDevicesVersion } // WithEnabled adds the enabled to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithEnabled(enabled *bool) *NetworkEthernetPortsGetParams { o.SetEnabled(enabled) return o } // SetEnabled adds the enabled to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetEnabled(enabled *bool) { o.Enabled = enabled } // WithFields adds the fields to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithFields(fields []string) *NetworkEthernetPortsGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetFields(fields []string) { o.Fields = fields } // WithInterfaceCount adds the interfaceCount to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithInterfaceCount(interfaceCount *int64) *NetworkEthernetPortsGetParams { o.SetInterfaceCount(interfaceCount) return o } // SetInterfaceCount adds the interfaceCount to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetInterfaceCount(interfaceCount *int64) { o.InterfaceCount = interfaceCount } // WithLagActivePortsName adds the lagActivePortsName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithLagActivePortsName(lagActivePortsName *string) *NetworkEthernetPortsGetParams { o.SetLagActivePortsName(lagActivePortsName) return o } // SetLagActivePortsName adds the lagActivePortsName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetLagActivePortsName(lagActivePortsName *string) { o.LagActivePortsName = lagActivePortsName } // WithLagActivePortsNodeName adds the lagActivePortsNodeName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithLagActivePortsNodeName(lagActivePortsNodeName *string) *NetworkEthernetPortsGetParams { o.SetLagActivePortsNodeName(lagActivePortsNodeName) return o } // SetLagActivePortsNodeName adds the lagActivePortsNodeName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetLagActivePortsNodeName(lagActivePortsNodeName *string) { o.LagActivePortsNodeName = lagActivePortsNodeName } // WithLagActivePortsUUID adds the lagActivePortsUUID to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithLagActivePortsUUID(lagActivePortsUUID *string) *NetworkEthernetPortsGetParams { o.SetLagActivePortsUUID(lagActivePortsUUID) return o } // SetLagActivePortsUUID adds the lagActivePortsUuid to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetLagActivePortsUUID(lagActivePortsUUID *string) { o.LagActivePortsUUID = lagActivePortsUUID } // WithLagDistributionPolicy adds the lagDistributionPolicy to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithLagDistributionPolicy(lagDistributionPolicy *string) *NetworkEthernetPortsGetParams { o.SetLagDistributionPolicy(lagDistributionPolicy) return o } // SetLagDistributionPolicy adds the lagDistributionPolicy to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetLagDistributionPolicy(lagDistributionPolicy *string) { o.LagDistributionPolicy = lagDistributionPolicy } // WithLagMemberPortsName adds the lagMemberPortsName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithLagMemberPortsName(lagMemberPortsName *string) *NetworkEthernetPortsGetParams { o.SetLagMemberPortsName(lagMemberPortsName) return o } // SetLagMemberPortsName adds the lagMemberPortsName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetLagMemberPortsName(lagMemberPortsName *string) { o.LagMemberPortsName = lagMemberPortsName } // WithLagMemberPortsNodeName adds the lagMemberPortsNodeName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithLagMemberPortsNodeName(lagMemberPortsNodeName *string) *NetworkEthernetPortsGetParams { o.SetLagMemberPortsNodeName(lagMemberPortsNodeName) return o } // SetLagMemberPortsNodeName adds the lagMemberPortsNodeName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetLagMemberPortsNodeName(lagMemberPortsNodeName *string) { o.LagMemberPortsNodeName = lagMemberPortsNodeName } // WithLagMemberPortsUUID adds the lagMemberPortsUUID to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithLagMemberPortsUUID(lagMemberPortsUUID *string) *NetworkEthernetPortsGetParams { o.SetLagMemberPortsUUID(lagMemberPortsUUID) return o } // SetLagMemberPortsUUID adds the lagMemberPortsUuid to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetLagMemberPortsUUID(lagMemberPortsUUID *string) { o.LagMemberPortsUUID = lagMemberPortsUUID } // WithLagMode adds the lagMode to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithLagMode(lagMode *string) *NetworkEthernetPortsGetParams { o.SetLagMode(lagMode) return o } // SetLagMode adds the lagMode to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetLagMode(lagMode *string) { o.LagMode = lagMode } // WithMacAddress adds the macAddress to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithMacAddress(macAddress *string) *NetworkEthernetPortsGetParams { o.SetMacAddress(macAddress) return o } // SetMacAddress adds the macAddress to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetMacAddress(macAddress *string) { o.MacAddress = macAddress } // WithMaxRecords adds the maxRecords to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithMaxRecords(maxRecords *int64) *NetworkEthernetPortsGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithMetricDuration adds the metricDuration to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithMetricDuration(metricDuration *string) *NetworkEthernetPortsGetParams { o.SetMetricDuration(metricDuration) return o } // SetMetricDuration adds the metricDuration to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetMetricDuration(metricDuration *string) { o.MetricDuration = metricDuration } // WithMetricStatus adds the metricStatus to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithMetricStatus(metricStatus *string) *NetworkEthernetPortsGetParams { o.SetMetricStatus(metricStatus) return o } // SetMetricStatus adds the metricStatus to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetMetricStatus(metricStatus *string) { o.MetricStatus = metricStatus } // WithMetricThroughputRead adds the metricThroughputRead to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithMetricThroughputRead(metricThroughputRead *int64) *NetworkEthernetPortsGetParams { o.SetMetricThroughputRead(metricThroughputRead) return o } // SetMetricThroughputRead adds the metricThroughputRead to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetMetricThroughputRead(metricThroughputRead *int64) { o.MetricThroughputRead = metricThroughputRead } // WithMetricThroughputTotal adds the metricThroughputTotal to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithMetricThroughputTotal(metricThroughputTotal *int64) *NetworkEthernetPortsGetParams { o.SetMetricThroughputTotal(metricThroughputTotal) return o } // SetMetricThroughputTotal adds the metricThroughputTotal to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetMetricThroughputTotal(metricThroughputTotal *int64) { o.MetricThroughputTotal = metricThroughputTotal } // WithMetricThroughputWrite adds the metricThroughputWrite to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithMetricThroughputWrite(metricThroughputWrite *int64) *NetworkEthernetPortsGetParams { o.SetMetricThroughputWrite(metricThroughputWrite) return o } // SetMetricThroughputWrite adds the metricThroughputWrite to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetMetricThroughputWrite(metricThroughputWrite *int64) { o.MetricThroughputWrite = metricThroughputWrite } // WithMetricTimestamp adds the metricTimestamp to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithMetricTimestamp(metricTimestamp *string) *NetworkEthernetPortsGetParams { o.SetMetricTimestamp(metricTimestamp) return o } // SetMetricTimestamp adds the metricTimestamp to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetMetricTimestamp(metricTimestamp *string) { o.MetricTimestamp = metricTimestamp } // WithMtu adds the mtu to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithMtu(mtu *int64) *NetworkEthernetPortsGetParams { o.SetMtu(mtu) return o } // SetMtu adds the mtu to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetMtu(mtu *int64) { o.Mtu = mtu } // WithName adds the name to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithName(name *string) *NetworkEthernetPortsGetParams { o.SetName(name) return o } // SetName adds the name to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetName(name *string) { o.Name = name } // WithNodeName adds the nodeName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithNodeName(nodeName *string) *NetworkEthernetPortsGetParams { o.SetNodeName(nodeName) return o } // SetNodeName adds the nodeName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetNodeName(nodeName *string) { o.NodeName = nodeName } // WithNodeUUID adds the nodeUUID to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithNodeUUID(nodeUUID *string) *NetworkEthernetPortsGetParams { o.SetNodeUUID(nodeUUID) return o } // SetNodeUUID adds the nodeUuid to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetNodeUUID(nodeUUID *string) { o.NodeUUID = nodeUUID } // WithOrderBy adds the orderBy to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithOrderBy(orderBy []string) *NetworkEthernetPortsGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithRdmaProtocols adds the rdmaProtocols to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithRdmaProtocols(rdmaProtocols *string) *NetworkEthernetPortsGetParams { o.SetRdmaProtocols(rdmaProtocols) return o } // SetRdmaProtocols adds the rdmaProtocols to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetRdmaProtocols(rdmaProtocols *string) { o.RdmaProtocols = rdmaProtocols } // WithReachability adds the reachability to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithReachability(reachability *string) *NetworkEthernetPortsGetParams { o.SetReachability(reachability) return o } // SetReachability adds the reachability to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetReachability(reachability *string) { o.Reachability = reachability } // WithReachableBroadcastDomainsIpspaceName adds the reachableBroadcastDomainsIpspaceName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithReachableBroadcastDomainsIpspaceName(reachableBroadcastDomainsIpspaceName *string) *NetworkEthernetPortsGetParams { o.SetReachableBroadcastDomainsIpspaceName(reachableBroadcastDomainsIpspaceName) return o } // SetReachableBroadcastDomainsIpspaceName adds the reachableBroadcastDomainsIpspaceName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetReachableBroadcastDomainsIpspaceName(reachableBroadcastDomainsIpspaceName *string) { o.ReachableBroadcastDomainsIpspaceName = reachableBroadcastDomainsIpspaceName } // WithReachableBroadcastDomainsName adds the reachableBroadcastDomainsName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithReachableBroadcastDomainsName(reachableBroadcastDomainsName *string) *NetworkEthernetPortsGetParams { o.SetReachableBroadcastDomainsName(reachableBroadcastDomainsName) return o } // SetReachableBroadcastDomainsName adds the reachableBroadcastDomainsName to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetReachableBroadcastDomainsName(reachableBroadcastDomainsName *string) { o.ReachableBroadcastDomainsName = reachableBroadcastDomainsName } // WithReachableBroadcastDomainsUUID adds the reachableBroadcastDomainsUUID to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithReachableBroadcastDomainsUUID(reachableBroadcastDomainsUUID *string) *NetworkEthernetPortsGetParams { o.SetReachableBroadcastDomainsUUID(reachableBroadcastDomainsUUID) return o } // SetReachableBroadcastDomainsUUID adds the reachableBroadcastDomainsUuid to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) SetReachableBroadcastDomainsUUID(reachableBroadcastDomainsUUID *string) { o.ReachableBroadcastDomainsUUID = reachableBroadcastDomainsUUID } // WithReturnRecords adds the returnRecords to the network ethernet ports get params func (o *NetworkEthernetPortsGetParams) WithReturnRecords(returnRecords *bool) *NetworkEthernetPortsGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the network ethernet ports get params
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
true
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ip_interfaces_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ip_interfaces_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NetworkIPInterfacesGetReader is a Reader for the NetworkIPInterfacesGet structure. type NetworkIPInterfacesGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NetworkIPInterfacesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNetworkIPInterfacesGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNetworkIPInterfacesGetDefault(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 } } // NewNetworkIPInterfacesGetOK creates a NetworkIPInterfacesGetOK with default headers values func NewNetworkIPInterfacesGetOK() *NetworkIPInterfacesGetOK { return &NetworkIPInterfacesGetOK{} } /* NetworkIPInterfacesGetOK describes a response with status code 200, with default header values. OK */ type NetworkIPInterfacesGetOK struct { Payload *models.IPInterfaceResponse } // IsSuccess returns true when this network Ip interfaces get o k response has a 2xx status code func (o *NetworkIPInterfacesGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this network Ip interfaces get o k response has a 3xx status code func (o *NetworkIPInterfacesGetOK) IsRedirect() bool { return false } // IsClientError returns true when this network Ip interfaces get o k response has a 4xx status code func (o *NetworkIPInterfacesGetOK) IsClientError() bool { return false } // IsServerError returns true when this network Ip interfaces get o k response has a 5xx status code func (o *NetworkIPInterfacesGetOK) IsServerError() bool { return false } // IsCode returns true when this network Ip interfaces get o k response a status code equal to that given func (o *NetworkIPInterfacesGetOK) IsCode(code int) bool { return code == 200 } func (o *NetworkIPInterfacesGetOK) Error() string { return fmt.Sprintf("[GET /network/ip/interfaces][%d] networkIpInterfacesGetOK %+v", 200, o.Payload) } func (o *NetworkIPInterfacesGetOK) String() string { return fmt.Sprintf("[GET /network/ip/interfaces][%d] networkIpInterfacesGetOK %+v", 200, o.Payload) } func (o *NetworkIPInterfacesGetOK) GetPayload() *models.IPInterfaceResponse { return o.Payload } func (o *NetworkIPInterfacesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.IPInterfaceResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewNetworkIPInterfacesGetDefault creates a NetworkIPInterfacesGetDefault with default headers values func NewNetworkIPInterfacesGetDefault(code int) *NetworkIPInterfacesGetDefault { return &NetworkIPInterfacesGetDefault{ _statusCode: code, } } /* NetworkIPInterfacesGetDefault describes a response with status code -1, with default header values. Error */ type NetworkIPInterfacesGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the network ip interfaces get default response func (o *NetworkIPInterfacesGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this network ip interfaces get default response has a 2xx status code func (o *NetworkIPInterfacesGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this network ip interfaces get default response has a 3xx status code func (o *NetworkIPInterfacesGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this network ip interfaces get default response has a 4xx status code func (o *NetworkIPInterfacesGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this network ip interfaces get default response has a 5xx status code func (o *NetworkIPInterfacesGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this network ip interfaces get default response a status code equal to that given func (o *NetworkIPInterfacesGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NetworkIPInterfacesGetDefault) Error() string { return fmt.Sprintf("[GET /network/ip/interfaces][%d] network_ip_interfaces_get default %+v", o._statusCode, o.Payload) } func (o *NetworkIPInterfacesGetDefault) String() string { return fmt.Sprintf("[GET /network/ip/interfaces][%d] network_ip_interfaces_get default %+v", o._statusCode, o.Payload) } func (o *NetworkIPInterfacesGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NetworkIPInterfacesGetDefault) 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/networking/ip_service_policy_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/ip_service_policy_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewIPServicePolicyCreateParams creates a new IPServicePolicyCreateParams 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 NewIPServicePolicyCreateParams() *IPServicePolicyCreateParams { return &IPServicePolicyCreateParams{ timeout: cr.DefaultTimeout, } } // NewIPServicePolicyCreateParamsWithTimeout creates a new IPServicePolicyCreateParams object // with the ability to set a timeout on a request. func NewIPServicePolicyCreateParamsWithTimeout(timeout time.Duration) *IPServicePolicyCreateParams { return &IPServicePolicyCreateParams{ timeout: timeout, } } // NewIPServicePolicyCreateParamsWithContext creates a new IPServicePolicyCreateParams object // with the ability to set a context for a request. func NewIPServicePolicyCreateParamsWithContext(ctx context.Context) *IPServicePolicyCreateParams { return &IPServicePolicyCreateParams{ Context: ctx, } } // NewIPServicePolicyCreateParamsWithHTTPClient creates a new IPServicePolicyCreateParams object // with the ability to set a custom HTTPClient for a request. func NewIPServicePolicyCreateParamsWithHTTPClient(client *http.Client) *IPServicePolicyCreateParams { return &IPServicePolicyCreateParams{ HTTPClient: client, } } /* IPServicePolicyCreateParams contains all the parameters to send to the API endpoint for the ip service policy create operation. Typically these are written to a http.Request. */ type IPServicePolicyCreateParams struct { /* Info. Policy parameters */ Info *models.IPServicePolicy /* 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 ip service policy create params (not the query body). // // All values with no default are reset to their zero value. func (o *IPServicePolicyCreateParams) WithDefaults() *IPServicePolicyCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ip service policy create params (not the query body). // // All values with no default are reset to their zero value. func (o *IPServicePolicyCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) ) val := IPServicePolicyCreateParams{ ReturnRecords: &returnRecordsDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the ip service policy create params func (o *IPServicePolicyCreateParams) WithTimeout(timeout time.Duration) *IPServicePolicyCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ip service policy create params func (o *IPServicePolicyCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ip service policy create params func (o *IPServicePolicyCreateParams) WithContext(ctx context.Context) *IPServicePolicyCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the ip service policy create params func (o *IPServicePolicyCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ip service policy create params func (o *IPServicePolicyCreateParams) WithHTTPClient(client *http.Client) *IPServicePolicyCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ip service policy create params func (o *IPServicePolicyCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the ip service policy create params func (o *IPServicePolicyCreateParams) WithInfo(info *models.IPServicePolicy) *IPServicePolicyCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the ip service policy create params func (o *IPServicePolicyCreateParams) SetInfo(info *models.IPServicePolicy) { o.Info = info } // WithReturnRecords adds the returnRecords to the ip service policy create params func (o *IPServicePolicyCreateParams) WithReturnRecords(returnRecords *bool) *IPServicePolicyCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the ip service policy create params func (o *IPServicePolicyCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WriteToRequest writes these params to a swagger request func (o *IPServicePolicyCreateParams) 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/networking/ip_subnet_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/ip_subnet_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // IPSubnetCollectionGetReader is a Reader for the IPSubnetCollectionGet structure. type IPSubnetCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *IPSubnetCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewIPSubnetCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewIPSubnetCollectionGetDefault(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 } } // NewIPSubnetCollectionGetOK creates a IPSubnetCollectionGetOK with default headers values func NewIPSubnetCollectionGetOK() *IPSubnetCollectionGetOK { return &IPSubnetCollectionGetOK{} } /* IPSubnetCollectionGetOK describes a response with status code 200, with default header values. OK */ type IPSubnetCollectionGetOK struct { Payload *models.IPSubnetResponse } // IsSuccess returns true when this ip subnet collection get o k response has a 2xx status code func (o *IPSubnetCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this ip subnet collection get o k response has a 3xx status code func (o *IPSubnetCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this ip subnet collection get o k response has a 4xx status code func (o *IPSubnetCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this ip subnet collection get o k response has a 5xx status code func (o *IPSubnetCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this ip subnet collection get o k response a status code equal to that given func (o *IPSubnetCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *IPSubnetCollectionGetOK) Error() string { return fmt.Sprintf("[GET /network/ip/subnets][%d] ipSubnetCollectionGetOK %+v", 200, o.Payload) } func (o *IPSubnetCollectionGetOK) String() string { return fmt.Sprintf("[GET /network/ip/subnets][%d] ipSubnetCollectionGetOK %+v", 200, o.Payload) } func (o *IPSubnetCollectionGetOK) GetPayload() *models.IPSubnetResponse { return o.Payload } func (o *IPSubnetCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.IPSubnetResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewIPSubnetCollectionGetDefault creates a IPSubnetCollectionGetDefault with default headers values func NewIPSubnetCollectionGetDefault(code int) *IPSubnetCollectionGetDefault { return &IPSubnetCollectionGetDefault{ _statusCode: code, } } /* IPSubnetCollectionGetDefault describes a response with status code -1, with default header values. Error */ type IPSubnetCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ip subnet collection get default response func (o *IPSubnetCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ip subnet collection get default response has a 2xx status code func (o *IPSubnetCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ip subnet collection get default response has a 3xx status code func (o *IPSubnetCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ip subnet collection get default response has a 4xx status code func (o *IPSubnetCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ip subnet collection get default response has a 5xx status code func (o *IPSubnetCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ip subnet collection get default response a status code equal to that given func (o *IPSubnetCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *IPSubnetCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /network/ip/subnets][%d] ip_subnet_collection_get default %+v", o._statusCode, o.Payload) } func (o *IPSubnetCollectionGetDefault) String() string { return fmt.Sprintf("[GET /network/ip/subnets][%d] ip_subnet_collection_get default %+v", o._statusCode, o.Payload) } func (o *IPSubnetCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *IPSubnetCollectionGetDefault) 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/networking/switch_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/switch_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // SwitchModifyReader is a Reader for the SwitchModify structure. type SwitchModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SwitchModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewSwitchModifyAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSwitchModifyDefault(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 } } // NewSwitchModifyAccepted creates a SwitchModifyAccepted with default headers values func NewSwitchModifyAccepted() *SwitchModifyAccepted { return &SwitchModifyAccepted{} } /* SwitchModifyAccepted describes a response with status code 202, with default header values. Accepted */ type SwitchModifyAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this switch modify accepted response has a 2xx status code func (o *SwitchModifyAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this switch modify accepted response has a 3xx status code func (o *SwitchModifyAccepted) IsRedirect() bool { return false } // IsClientError returns true when this switch modify accepted response has a 4xx status code func (o *SwitchModifyAccepted) IsClientError() bool { return false } // IsServerError returns true when this switch modify accepted response has a 5xx status code func (o *SwitchModifyAccepted) IsServerError() bool { return false } // IsCode returns true when this switch modify accepted response a status code equal to that given func (o *SwitchModifyAccepted) IsCode(code int) bool { return code == 202 } func (o *SwitchModifyAccepted) Error() string { return fmt.Sprintf("[PATCH /network/ethernet/switches/{name}][%d] switchModifyAccepted %+v", 202, o.Payload) } func (o *SwitchModifyAccepted) String() string { return fmt.Sprintf("[PATCH /network/ethernet/switches/{name}][%d] switchModifyAccepted %+v", 202, o.Payload) } func (o *SwitchModifyAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *SwitchModifyAccepted) 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 } // NewSwitchModifyDefault creates a SwitchModifyDefault with default headers values func NewSwitchModifyDefault(code int) *SwitchModifyDefault { return &SwitchModifyDefault{ _statusCode: code, } } /* SwitchModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 12517378 | Settings updated, but the IP address \"{address}\" is not reachable. Verify that the address is valid or check the network path. | | 12517380 | Settings updated, but the SNMP validation request timed out. Verify that the \"snmp.user\" parameter is valid. | | 12517382 | Settings updated, but the SNMP validation request timed out. Verify that the \"snmp.user\" parameter is valid (i.e., the SNMPv3 user exists in ONTAP and on the remote switch). If the \"snmp.user\" parameter is valid, verify that the SNMPv3 user's credentials are the same both in ONTAP as well as in the remote switch. If a custom engine-id was provided for the SNMPv3 user, ensure it is the same as that of the remote switch. | */ type SwitchModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the switch modify default response func (o *SwitchModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this switch modify default response has a 2xx status code func (o *SwitchModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this switch modify default response has a 3xx status code func (o *SwitchModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this switch modify default response has a 4xx status code func (o *SwitchModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this switch modify default response has a 5xx status code func (o *SwitchModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this switch modify default response a status code equal to that given func (o *SwitchModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SwitchModifyDefault) Error() string { return fmt.Sprintf("[PATCH /network/ethernet/switches/{name}][%d] switch_modify default %+v", o._statusCode, o.Payload) } func (o *SwitchModifyDefault) String() string { return fmt.Sprintf("[PATCH /network/ethernet/switches/{name}][%d] switch_modify default %+v", o._statusCode, o.Payload) } func (o *SwitchModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SwitchModifyDefault) 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/networking/network_ethernet_broadcast_domains_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ethernet_broadcast_domains_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NetworkEthernetBroadcastDomainsGetReader is a Reader for the NetworkEthernetBroadcastDomainsGet structure. type NetworkEthernetBroadcastDomainsGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NetworkEthernetBroadcastDomainsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNetworkEthernetBroadcastDomainsGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNetworkEthernetBroadcastDomainsGetDefault(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 } } // NewNetworkEthernetBroadcastDomainsGetOK creates a NetworkEthernetBroadcastDomainsGetOK with default headers values func NewNetworkEthernetBroadcastDomainsGetOK() *NetworkEthernetBroadcastDomainsGetOK { return &NetworkEthernetBroadcastDomainsGetOK{} } /* NetworkEthernetBroadcastDomainsGetOK describes a response with status code 200, with default header values. OK */ type NetworkEthernetBroadcastDomainsGetOK struct { Payload *models.BroadcastDomainResponse } // IsSuccess returns true when this network ethernet broadcast domains get o k response has a 2xx status code func (o *NetworkEthernetBroadcastDomainsGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this network ethernet broadcast domains get o k response has a 3xx status code func (o *NetworkEthernetBroadcastDomainsGetOK) IsRedirect() bool { return false } // IsClientError returns true when this network ethernet broadcast domains get o k response has a 4xx status code func (o *NetworkEthernetBroadcastDomainsGetOK) IsClientError() bool { return false } // IsServerError returns true when this network ethernet broadcast domains get o k response has a 5xx status code func (o *NetworkEthernetBroadcastDomainsGetOK) IsServerError() bool { return false } // IsCode returns true when this network ethernet broadcast domains get o k response a status code equal to that given func (o *NetworkEthernetBroadcastDomainsGetOK) IsCode(code int) bool { return code == 200 } func (o *NetworkEthernetBroadcastDomainsGetOK) Error() string { return fmt.Sprintf("[GET /network/ethernet/broadcast-domains][%d] networkEthernetBroadcastDomainsGetOK %+v", 200, o.Payload) } func (o *NetworkEthernetBroadcastDomainsGetOK) String() string { return fmt.Sprintf("[GET /network/ethernet/broadcast-domains][%d] networkEthernetBroadcastDomainsGetOK %+v", 200, o.Payload) } func (o *NetworkEthernetBroadcastDomainsGetOK) GetPayload() *models.BroadcastDomainResponse { return o.Payload } func (o *NetworkEthernetBroadcastDomainsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.BroadcastDomainResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewNetworkEthernetBroadcastDomainsGetDefault creates a NetworkEthernetBroadcastDomainsGetDefault with default headers values func NewNetworkEthernetBroadcastDomainsGetDefault(code int) *NetworkEthernetBroadcastDomainsGetDefault { return &NetworkEthernetBroadcastDomainsGetDefault{ _statusCode: code, } } /* NetworkEthernetBroadcastDomainsGetDefault describes a response with status code -1, with default header values. Error */ type NetworkEthernetBroadcastDomainsGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the network ethernet broadcast domains get default response func (o *NetworkEthernetBroadcastDomainsGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this network ethernet broadcast domains get default response has a 2xx status code func (o *NetworkEthernetBroadcastDomainsGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this network ethernet broadcast domains get default response has a 3xx status code func (o *NetworkEthernetBroadcastDomainsGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this network ethernet broadcast domains get default response has a 4xx status code func (o *NetworkEthernetBroadcastDomainsGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this network ethernet broadcast domains get default response has a 5xx status code func (o *NetworkEthernetBroadcastDomainsGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this network ethernet broadcast domains get default response a status code equal to that given func (o *NetworkEthernetBroadcastDomainsGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NetworkEthernetBroadcastDomainsGetDefault) Error() string { return fmt.Sprintf("[GET /network/ethernet/broadcast-domains][%d] network_ethernet_broadcast_domains_get default %+v", o._statusCode, o.Payload) } func (o *NetworkEthernetBroadcastDomainsGetDefault) String() string { return fmt.Sprintf("[GET /network/ethernet/broadcast-domains][%d] network_ethernet_broadcast_domains_get default %+v", o._statusCode, o.Payload) } func (o *NetworkEthernetBroadcastDomainsGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NetworkEthernetBroadcastDomainsGetDefault) 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/networking/fc_port_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/fc_port_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewFcPortModifyParams creates a new FcPortModifyParams 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 NewFcPortModifyParams() *FcPortModifyParams { return &FcPortModifyParams{ timeout: cr.DefaultTimeout, } } // NewFcPortModifyParamsWithTimeout creates a new FcPortModifyParams object // with the ability to set a timeout on a request. func NewFcPortModifyParamsWithTimeout(timeout time.Duration) *FcPortModifyParams { return &FcPortModifyParams{ timeout: timeout, } } // NewFcPortModifyParamsWithContext creates a new FcPortModifyParams object // with the ability to set a context for a request. func NewFcPortModifyParamsWithContext(ctx context.Context) *FcPortModifyParams { return &FcPortModifyParams{ Context: ctx, } } // NewFcPortModifyParamsWithHTTPClient creates a new FcPortModifyParams object // with the ability to set a custom HTTPClient for a request. func NewFcPortModifyParamsWithHTTPClient(client *http.Client) *FcPortModifyParams { return &FcPortModifyParams{ HTTPClient: client, } } /* FcPortModifyParams contains all the parameters to send to the API endpoint for the fc port modify operation. Typically these are written to a http.Request. */ type FcPortModifyParams struct { /* Info. The new property values for the FC port. */ Info *models.FcPort /* UUID. The unique identifier for the FC port. */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the fc port modify params (not the query body). // // All values with no default are reset to their zero value. func (o *FcPortModifyParams) WithDefaults() *FcPortModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the fc port modify params (not the query body). // // All values with no default are reset to their zero value. func (o *FcPortModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the fc port modify params func (o *FcPortModifyParams) WithTimeout(timeout time.Duration) *FcPortModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the fc port modify params func (o *FcPortModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the fc port modify params func (o *FcPortModifyParams) WithContext(ctx context.Context) *FcPortModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the fc port modify params func (o *FcPortModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the fc port modify params func (o *FcPortModifyParams) WithHTTPClient(client *http.Client) *FcPortModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the fc port modify params func (o *FcPortModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the fc port modify params func (o *FcPortModifyParams) WithInfo(info *models.FcPort) *FcPortModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the fc port modify params func (o *FcPortModifyParams) SetInfo(info *models.FcPort) { o.Info = info } // WithUUID adds the uuid to the fc port modify params func (o *FcPortModifyParams) WithUUID(uuid string) *FcPortModifyParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the fc port modify params func (o *FcPortModifyParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *FcPortModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ip_route_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ip_route_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewNetworkIPRouteDeleteParams creates a new NetworkIPRouteDeleteParams 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 NewNetworkIPRouteDeleteParams() *NetworkIPRouteDeleteParams { return &NetworkIPRouteDeleteParams{ timeout: cr.DefaultTimeout, } } // NewNetworkIPRouteDeleteParamsWithTimeout creates a new NetworkIPRouteDeleteParams object // with the ability to set a timeout on a request. func NewNetworkIPRouteDeleteParamsWithTimeout(timeout time.Duration) *NetworkIPRouteDeleteParams { return &NetworkIPRouteDeleteParams{ timeout: timeout, } } // NewNetworkIPRouteDeleteParamsWithContext creates a new NetworkIPRouteDeleteParams object // with the ability to set a context for a request. func NewNetworkIPRouteDeleteParamsWithContext(ctx context.Context) *NetworkIPRouteDeleteParams { return &NetworkIPRouteDeleteParams{ Context: ctx, } } // NewNetworkIPRouteDeleteParamsWithHTTPClient creates a new NetworkIPRouteDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewNetworkIPRouteDeleteParamsWithHTTPClient(client *http.Client) *NetworkIPRouteDeleteParams { return &NetworkIPRouteDeleteParams{ HTTPClient: client, } } /* NetworkIPRouteDeleteParams contains all the parameters to send to the API endpoint for the network ip route delete operation. Typically these are written to a http.Request. */ type NetworkIPRouteDeleteParams struct { /* UUID. Route UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the network ip route delete params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkIPRouteDeleteParams) WithDefaults() *NetworkIPRouteDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the network ip route delete params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkIPRouteDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the network ip route delete params func (o *NetworkIPRouteDeleteParams) WithTimeout(timeout time.Duration) *NetworkIPRouteDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the network ip route delete params func (o *NetworkIPRouteDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the network ip route delete params func (o *NetworkIPRouteDeleteParams) WithContext(ctx context.Context) *NetworkIPRouteDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the network ip route delete params func (o *NetworkIPRouteDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the network ip route delete params func (o *NetworkIPRouteDeleteParams) WithHTTPClient(client *http.Client) *NetworkIPRouteDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the network ip route delete params func (o *NetworkIPRouteDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithUUID adds the uuid to the network ip route delete params func (o *NetworkIPRouteDeleteParams) WithUUID(uuid string) *NetworkIPRouteDeleteParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the network ip route delete params func (o *NetworkIPRouteDeleteParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *NetworkIPRouteDeleteParams) 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/networking/network_ip_interfaces_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ip_interfaces_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NetworkIPInterfacesCreateReader is a Reader for the NetworkIPInterfacesCreate structure. type NetworkIPInterfacesCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NetworkIPInterfacesCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewNetworkIPInterfacesCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNetworkIPInterfacesCreateDefault(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 } } // NewNetworkIPInterfacesCreateCreated creates a NetworkIPInterfacesCreateCreated with default headers values func NewNetworkIPInterfacesCreateCreated() *NetworkIPInterfacesCreateCreated { return &NetworkIPInterfacesCreateCreated{} } /* NetworkIPInterfacesCreateCreated describes a response with status code 201, with default header values. Created */ type NetworkIPInterfacesCreateCreated struct { /* Useful for tracking the resource location */ Location string } // IsSuccess returns true when this network Ip interfaces create created response has a 2xx status code func (o *NetworkIPInterfacesCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this network Ip interfaces create created response has a 3xx status code func (o *NetworkIPInterfacesCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this network Ip interfaces create created response has a 4xx status code func (o *NetworkIPInterfacesCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this network Ip interfaces create created response has a 5xx status code func (o *NetworkIPInterfacesCreateCreated) IsServerError() bool { return false } // IsCode returns true when this network Ip interfaces create created response a status code equal to that given func (o *NetworkIPInterfacesCreateCreated) IsCode(code int) bool { return code == 201 } func (o *NetworkIPInterfacesCreateCreated) Error() string { return fmt.Sprintf("[POST /network/ip/interfaces][%d] networkIpInterfacesCreateCreated ", 201) } func (o *NetworkIPInterfacesCreateCreated) String() string { return fmt.Sprintf("[POST /network/ip/interfaces][%d] networkIpInterfacesCreateCreated ", 201) } func (o *NetworkIPInterfacesCreateCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Location hdrLocation := response.GetHeader("Location") if hdrLocation != "" { o.Location = hdrLocation } return nil } // NewNetworkIPInterfacesCreateDefault creates a NetworkIPInterfacesCreateDefault with default headers values func NewNetworkIPInterfacesCreateDefault(code int) *NetworkIPInterfacesCreateDefault { return &NetworkIPInterfacesCreateDefault{ _statusCode: code, } } /* NetworkIPInterfacesCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 1376656 | Cluster interfaces must be in the same subnet. Verify the address and netmask are set to the correct values. | | 1376663 | All LIFs from a single DNS zone must be in the same SVM. | | 1376663 | Cannot add interface to DNS zone because all interfaces from a single DNS zone must be in the same SVM. | | 1376963 | Duplicate IP address. | | 1376976 | The specified port is not capable of hosting this LIF. | | 1966138 | The same IP address may not be used for both a mgmt interface and a gateway address. | | 1966140 | An interface with the same name already exists. | | 1966141 | Invalid DNS zone name. | | 1966142 | Only data LIFs can be assigned a DNS zone. | | 1966267 | IPv6 addresses must have a prefix length between 1 and 127. | | 1966269 | IPv4 addresses must have a prefix length between 1 and 32. | | 1966270 | Operation not support on SAN LIFs. | | 1966476 | DNS Update is supported only on data LIFs. | | 1966477 | DNS Update is supported only on LIFs configured with the NFS or CIFS protocol. | | 1966987 | The Vserver Broadcast-Domain Home-Node and Home-Port combination is not valid. | | 1967081 | The specified SVM must exist in the specified IPspace. | | 1967082 | The specified ipspace.name does not match the IPspace name of ipspace.uuid. | | 1967102 | POST operation might have left configuration in an inconsistent state. Check the configuration. | | 1967106 | The specified location.home_port.name does not match the specified port name of location.home_port.uuid. | | 1967107 | The location.home_port.uuid specified is not valid. | | 1967108 | The specified location.home_node.name does not match the node name of location.home_node.uuid. | | 1967109 | The specified location.home_port.node.name does not match the node name of location.home_node.uuid. | | 1967110 | The specified location.home_port.node.name does not match location.home_node.name. | | 1967111 | Home node must be specified by at least one location.home_node, location.home_port, or location.broadcast_domain field. | | 1967112 | The specified location.home_node.name does not match the node name of location.home_port.uuid. | | 1967120 | The specified service_policy.name does not match the specified service policy name of service_policy.uuid. | | 1967121 | Invalid service_policy.uuid specified. | | 1967122 | The specified location.broadcast_domain.name does not match the specified broadcast domain name of location.broadcast_domain.uuid. | | 1967123 | The specified IPspace does not match the IPspace name of location.broadcast_domain.uuid. | | 1967124 | The location.broadcast_domain.uuid specified is not valid. | | 1967127 | svm.uuid or svm.name must be provided if scope is "svm". | | 1967128 | ipspace.uuid or ipspace.name must be provided if scope is "cluster". | | 1967129 | The specified location.home_port.uuid is not valid. | | 1967130 | The specified location.home_port.name is not valid. | | 1967131 | The specified location.home_port.uuid and location.home_port.name are not valid. | | 1967135 | The specified location.broadcast_domain.uuid is not valid. | | 1967136 | The specified location.broadcast_domain.name (and ipspace name) is not valid. | | 1967137 | The specified location.broadcast_domain.uuid and location.broadcast_domain.name (and IPspace name) are not valid. | | 1967145 | The specified location.failover is not valid. | | 1967146 | The specified svm.name is not valid. | | 1967147 | The specified svm.uuid is not valid. | | 1967153 | No suitable port exists on location.home_node to host the interface. | | 1967154 | Interfaces cannot be created on ports that are down. If a broadcast domain is specified, ensure that it contains at least one port that is operationally up. | | 1967381 | Post VIP interfaces requires an effective cluster version of 9.7 or later. | | 1967382 | VIP interfaces only reside in SVM scope. | | 1967383 | Neither location.home_port.uuid or location.home_port.name should be set with vip=true. | | 1967384 | Failed to create VIP interface because the home node does not have active BGP sessions to support Virtual IP (VIP) traffic. | | 1967385 | VIP interfaces with an IPv4 address must use ip.netmask=32. VIP interfaces with an IPv6 address must use ip.netmask=128. | | 1967387 | The specified IP address is in use by a subnet in this IPspace. | | 1967391 | Setting the DNS zone requires an effective cluster version of 9.9.1 or later. | | 1967392 | Setting the DDNS enable parameter requires an effective cluster version of 9.9.1 or later. | | 1967394 | Setting the probe port parameter requires an effective cluster version of 9.10.1 or later. | | 1967396 | The specified subnet.name does not match the subnet name of subnet.uuid. | | 1967397 | The specified subnet.uuid does not match any configured subnet."; | | 1967398 | Address must be specified by either ip.address and ip.netmask, or at least one subnet field, not both."; | | 5373966 | An iSCSI interface cannot be created in an SVM configured for NVMe. | | 53281018 | Failover policy is not compatible with one or more services in service policy | | 53281036 | Setting the probe port parameter is not allowed on this platform. | | 53281065 | The service_policy does not exist in the SVM. | | 53281086 | LIF would exceed the maximum number of supported intercluster LIFs in IPspace. | | 53281087 | Cannot configure SAN LIF on SVM. | | 53281106 | Failed checking the cluster capabilities. | */ type NetworkIPInterfacesCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the network ip interfaces create default response func (o *NetworkIPInterfacesCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this network ip interfaces create default response has a 2xx status code func (o *NetworkIPInterfacesCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this network ip interfaces create default response has a 3xx status code func (o *NetworkIPInterfacesCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this network ip interfaces create default response has a 4xx status code func (o *NetworkIPInterfacesCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this network ip interfaces create default response has a 5xx status code func (o *NetworkIPInterfacesCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this network ip interfaces create default response a status code equal to that given func (o *NetworkIPInterfacesCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NetworkIPInterfacesCreateDefault) Error() string { return fmt.Sprintf("[POST /network/ip/interfaces][%d] network_ip_interfaces_create default %+v", o._statusCode, o.Payload) } func (o *NetworkIPInterfacesCreateDefault) String() string { return fmt.Sprintf("[POST /network/ip/interfaces][%d] network_ip_interfaces_create default %+v", o._statusCode, o.Payload) } func (o *NetworkIPInterfacesCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NetworkIPInterfacesCreateDefault) 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/networking/switch_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/switch_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // SwitchCreateReader is a Reader for the SwitchCreate structure. type SwitchCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SwitchCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewSwitchCreateAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSwitchCreateDefault(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 } } // NewSwitchCreateAccepted creates a SwitchCreateAccepted with default headers values func NewSwitchCreateAccepted() *SwitchCreateAccepted { return &SwitchCreateAccepted{} } /* SwitchCreateAccepted describes a response with status code 202, with default header values. Accepted */ type SwitchCreateAccepted struct { /* Useful for tracking the resource location */ Location string Payload *models.JobLinkResponse } // IsSuccess returns true when this switch create accepted response has a 2xx status code func (o *SwitchCreateAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this switch create accepted response has a 3xx status code func (o *SwitchCreateAccepted) IsRedirect() bool { return false } // IsClientError returns true when this switch create accepted response has a 4xx status code func (o *SwitchCreateAccepted) IsClientError() bool { return false } // IsServerError returns true when this switch create accepted response has a 5xx status code func (o *SwitchCreateAccepted) IsServerError() bool { return false } // IsCode returns true when this switch create accepted response a status code equal to that given func (o *SwitchCreateAccepted) IsCode(code int) bool { return code == 202 } func (o *SwitchCreateAccepted) Error() string { return fmt.Sprintf("[POST /network/ethernet/switches][%d] switchCreateAccepted %+v", 202, o.Payload) } func (o *SwitchCreateAccepted) String() string { return fmt.Sprintf("[POST /network/ethernet/switches][%d] switchCreateAccepted %+v", 202, o.Payload) } func (o *SwitchCreateAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *SwitchCreateAccepted) 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 } // NewSwitchCreateDefault creates a SwitchCreateDefault with default headers values func NewSwitchCreateDefault(code int) *SwitchCreateDefault { return &SwitchCreateDefault{ _statusCode: code, } } /* SwitchCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 12517376 | Model number validation failed. Specify correct model number and try the command again. | | 12517377 | IP address \"{address}\" is not reachable. Verify that the address is valid or check the network path. | | 12517379 | SNMP validation request timed out. Verify that the \"snmp.user\" parameter is valid. | | 12517381 | SNMP validation request timed out. Verify that the \"snmp.user\" parameter is valid (i.e., the SNMPv3 user exists in ONTAP and on the remote switch). If the \"snmp.user\" parameter is valid, verify that the SNMPv3 user's credentials are the same both in ONTAP as well as in the remote switch. If a custom engine-id was provided for the SNMPv3 user, ensure it is the same as that of the remote switch. | | 12517383 | Switch type \"{network}\" is not valid for specified switch model \"{model}\". | | 12517384 | SHM is already monitoring a switch with IP address \"{address}\". | | 12517385 | Model \"{model}\" is unknown. Use \"OTHER\" if the switch model is not one of the following: {models}. | */ type SwitchCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the switch create default response func (o *SwitchCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this switch create default response has a 2xx status code func (o *SwitchCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this switch create default response has a 3xx status code func (o *SwitchCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this switch create default response has a 4xx status code func (o *SwitchCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this switch create default response has a 5xx status code func (o *SwitchCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this switch create default response a status code equal to that given func (o *SwitchCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SwitchCreateDefault) Error() string { return fmt.Sprintf("[POST /network/ethernet/switches][%d] switch_create default %+v", o._statusCode, o.Payload) } func (o *SwitchCreateDefault) String() string { return fmt.Sprintf("[POST /network/ethernet/switches][%d] switch_create default %+v", o._statusCode, o.Payload) } func (o *SwitchCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SwitchCreateDefault) 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/networking/network_ip_routes_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ip_routes_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewNetworkIPRoutesCreateParams creates a new NetworkIPRoutesCreateParams 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 NewNetworkIPRoutesCreateParams() *NetworkIPRoutesCreateParams { return &NetworkIPRoutesCreateParams{ timeout: cr.DefaultTimeout, } } // NewNetworkIPRoutesCreateParamsWithTimeout creates a new NetworkIPRoutesCreateParams object // with the ability to set a timeout on a request. func NewNetworkIPRoutesCreateParamsWithTimeout(timeout time.Duration) *NetworkIPRoutesCreateParams { return &NetworkIPRoutesCreateParams{ timeout: timeout, } } // NewNetworkIPRoutesCreateParamsWithContext creates a new NetworkIPRoutesCreateParams object // with the ability to set a context for a request. func NewNetworkIPRoutesCreateParamsWithContext(ctx context.Context) *NetworkIPRoutesCreateParams { return &NetworkIPRoutesCreateParams{ Context: ctx, } } // NewNetworkIPRoutesCreateParamsWithHTTPClient creates a new NetworkIPRoutesCreateParams object // with the ability to set a custom HTTPClient for a request. func NewNetworkIPRoutesCreateParamsWithHTTPClient(client *http.Client) *NetworkIPRoutesCreateParams { return &NetworkIPRoutesCreateParams{ HTTPClient: client, } } /* NetworkIPRoutesCreateParams contains all the parameters to send to the API endpoint for the network ip routes create operation. Typically these are written to a http.Request. */ type NetworkIPRoutesCreateParams struct { /* Info. Route parameters */ Info *models.NetworkRoute /* 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 network ip routes create params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkIPRoutesCreateParams) WithDefaults() *NetworkIPRoutesCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the network ip routes create params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkIPRoutesCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) ) val := NetworkIPRoutesCreateParams{ ReturnRecords: &returnRecordsDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the network ip routes create params func (o *NetworkIPRoutesCreateParams) WithTimeout(timeout time.Duration) *NetworkIPRoutesCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the network ip routes create params func (o *NetworkIPRoutesCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the network ip routes create params func (o *NetworkIPRoutesCreateParams) WithContext(ctx context.Context) *NetworkIPRoutesCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the network ip routes create params func (o *NetworkIPRoutesCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the network ip routes create params func (o *NetworkIPRoutesCreateParams) WithHTTPClient(client *http.Client) *NetworkIPRoutesCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the network ip routes create params func (o *NetworkIPRoutesCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the network ip routes create params func (o *NetworkIPRoutesCreateParams) WithInfo(info *models.NetworkRoute) *NetworkIPRoutesCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the network ip routes create params func (o *NetworkIPRoutesCreateParams) SetInfo(info *models.NetworkRoute) { o.Info = info } // WithReturnRecords adds the returnRecords to the network ip routes create params func (o *NetworkIPRoutesCreateParams) WithReturnRecords(returnRecords *bool) *NetworkIPRoutesCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the network ip routes create params func (o *NetworkIPRoutesCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WriteToRequest writes these params to a swagger request func (o *NetworkIPRoutesCreateParams) 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/networking/network_ethernet_port_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ethernet_port_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NetworkEthernetPortGetReader is a Reader for the NetworkEthernetPortGet structure. type NetworkEthernetPortGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NetworkEthernetPortGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNetworkEthernetPortGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNetworkEthernetPortGetDefault(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 } } // NewNetworkEthernetPortGetOK creates a NetworkEthernetPortGetOK with default headers values func NewNetworkEthernetPortGetOK() *NetworkEthernetPortGetOK { return &NetworkEthernetPortGetOK{} } /* NetworkEthernetPortGetOK describes a response with status code 200, with default header values. OK */ type NetworkEthernetPortGetOK struct { Payload *models.Port } // IsSuccess returns true when this network ethernet port get o k response has a 2xx status code func (o *NetworkEthernetPortGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this network ethernet port get o k response has a 3xx status code func (o *NetworkEthernetPortGetOK) IsRedirect() bool { return false } // IsClientError returns true when this network ethernet port get o k response has a 4xx status code func (o *NetworkEthernetPortGetOK) IsClientError() bool { return false } // IsServerError returns true when this network ethernet port get o k response has a 5xx status code func (o *NetworkEthernetPortGetOK) IsServerError() bool { return false } // IsCode returns true when this network ethernet port get o k response a status code equal to that given func (o *NetworkEthernetPortGetOK) IsCode(code int) bool { return code == 200 } func (o *NetworkEthernetPortGetOK) Error() string { return fmt.Sprintf("[GET /network/ethernet/ports/{uuid}][%d] networkEthernetPortGetOK %+v", 200, o.Payload) } func (o *NetworkEthernetPortGetOK) String() string { return fmt.Sprintf("[GET /network/ethernet/ports/{uuid}][%d] networkEthernetPortGetOK %+v", 200, o.Payload) } func (o *NetworkEthernetPortGetOK) GetPayload() *models.Port { return o.Payload } func (o *NetworkEthernetPortGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.Port) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewNetworkEthernetPortGetDefault creates a NetworkEthernetPortGetDefault with default headers values func NewNetworkEthernetPortGetDefault(code int) *NetworkEthernetPortGetDefault { return &NetworkEthernetPortGetDefault{ _statusCode: code, } } /* NetworkEthernetPortGetDefault describes a response with status code -1, with default header values. Error */ type NetworkEthernetPortGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the network ethernet port get default response func (o *NetworkEthernetPortGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this network ethernet port get default response has a 2xx status code func (o *NetworkEthernetPortGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this network ethernet port get default response has a 3xx status code func (o *NetworkEthernetPortGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this network ethernet port get default response has a 4xx status code func (o *NetworkEthernetPortGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this network ethernet port get default response has a 5xx status code func (o *NetworkEthernetPortGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this network ethernet port get default response a status code equal to that given func (o *NetworkEthernetPortGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NetworkEthernetPortGetDefault) Error() string { return fmt.Sprintf("[GET /network/ethernet/ports/{uuid}][%d] network_ethernet_port_get default %+v", o._statusCode, o.Payload) } func (o *NetworkEthernetPortGetDefault) String() string { return fmt.Sprintf("[GET /network/ethernet/ports/{uuid}][%d] network_ethernet_port_get default %+v", o._statusCode, o.Payload) } func (o *NetworkEthernetPortGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NetworkEthernetPortGetDefault) 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/networking/network_ip_bgp_peer_groups_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ip_bgp_peer_groups_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NetworkIPBgpPeerGroupsCreateReader is a Reader for the NetworkIPBgpPeerGroupsCreate structure. type NetworkIPBgpPeerGroupsCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NetworkIPBgpPeerGroupsCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewNetworkIPBgpPeerGroupsCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNetworkIPBgpPeerGroupsCreateDefault(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 } } // NewNetworkIPBgpPeerGroupsCreateCreated creates a NetworkIPBgpPeerGroupsCreateCreated with default headers values func NewNetworkIPBgpPeerGroupsCreateCreated() *NetworkIPBgpPeerGroupsCreateCreated { return &NetworkIPBgpPeerGroupsCreateCreated{} } /* NetworkIPBgpPeerGroupsCreateCreated describes a response with status code 201, with default header values. Created */ type NetworkIPBgpPeerGroupsCreateCreated struct { /* Useful for tracking the resource location */ Location string } // IsSuccess returns true when this network Ip bgp peer groups create created response has a 2xx status code func (o *NetworkIPBgpPeerGroupsCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this network Ip bgp peer groups create created response has a 3xx status code func (o *NetworkIPBgpPeerGroupsCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this network Ip bgp peer groups create created response has a 4xx status code func (o *NetworkIPBgpPeerGroupsCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this network Ip bgp peer groups create created response has a 5xx status code func (o *NetworkIPBgpPeerGroupsCreateCreated) IsServerError() bool { return false } // IsCode returns true when this network Ip bgp peer groups create created response a status code equal to that given func (o *NetworkIPBgpPeerGroupsCreateCreated) IsCode(code int) bool { return code == 201 } func (o *NetworkIPBgpPeerGroupsCreateCreated) Error() string { return fmt.Sprintf("[POST /network/ip/bgp/peer-groups][%d] networkIpBgpPeerGroupsCreateCreated ", 201) } func (o *NetworkIPBgpPeerGroupsCreateCreated) String() string { return fmt.Sprintf("[POST /network/ip/bgp/peer-groups][%d] networkIpBgpPeerGroupsCreateCreated ", 201) } func (o *NetworkIPBgpPeerGroupsCreateCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Location hdrLocation := response.GetHeader("Location") if hdrLocation != "" { o.Location = hdrLocation } return nil } // NewNetworkIPBgpPeerGroupsCreateDefault creates a NetworkIPBgpPeerGroupsCreateDefault with default headers values func NewNetworkIPBgpPeerGroupsCreateDefault(code int) *NetworkIPBgpPeerGroupsCreateDefault { return &NetworkIPBgpPeerGroupsCreateDefault{ _statusCode: code, } } /* NetworkIPBgpPeerGroupsCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 1376963 | Duplicate IP address is specified. | | 1966133 | Since masking an address with a netmask represents an entire IP subnet, the masked and unmasked IP addresses cannot be the same. | | 1966267 | IPv6 addresses must have a prefix length of 64. | | 1966269 | IPv4 addresses must have a netmask length between 1 and 32. | | 1967082 | IPspace name and UUID must match if both are given. | | 1967155 | The specified local.port.name does not match the location.port.name for the specified local.interface. | | 1967156 | The specified local.port.node.name does not match the location.port.node.name for the specified local.interface. | | 1967157 | The specified local.port.uuid does not match the location.port.uuid for the specified local.interface. | | 1967158 | The specified local.interface.name does not exist in the associated IPspace. local.ip.address and local.ip.netmask are required to create a new LIF. | | 1967159 | local.interface does not support management-bgp service. | | 1967160 | The specified local.interface.name does not match the specified interface name of local.interface.uuid. | | 1967161 | The specified local.interface.uuid does not exist in the specified IPspace. | | 1967162 | Either local.interface or local.ip and local.port are required to specify a local LIF. | | 1967163 | The specified local.port.name does not match the specified port name of local.port.uuid. | | 1967164 | The specified local.port.node.name does not match the specified node name of local.port.uuid. | | 1967165 | The specified local.port does not exist. | | 1967166 | ipspace.uuid or ipspace.name must be provided with local.interface.name together to identify a LIF. | | 1967167 | Internal error. Failed to update BGP configuration for node. Retry the command, if necessary. | | 1967168 | Internal error. Failed to create a VIP port for IPspace on node. Retry the command, if necessary. | | 1967169 | Internal error. BGP configuration changed during the operation. Retry the command, if necessary. | | 1967170 | Internal error. VIP port configuration changed during the operation. Retry the command, if necessary. | | 1967171 | Internal error. Fail to access or update BGP peer group. Retry the command, if necessary. | | 1967172 | Peer group could not be updated because IPspace does not exist. Retry the command, if necessary. | | 1967173 | The specified local.ip.address does not match the address for the specified local.interface. | | 1967174 | The specified local.ip.netmask does not match the netmask for the specified local.interface. | | 1967176 | The specified local.interface.name does not exist in the associated IPspace. local.port.name, local.port.node.name, or local.port.uuid is required to create a new LIF. | | 1967177 | Internal error. Failed to access the local interface. Retry the command, if necessary. | | 1967178 | The IPv6 address specified with local.ip.address is not supported because it is link-local, multicast, v4-compatible, v4-mapped, loopback or "::". | | 1967179 | The IPv4 address specified with local.ip.address is not supported because it is multicast, loopback or 0.0.0.0. | | 1967187 | Configuring 4 bytes peer.asn requires an effective cluster version of 9.9.1 or later. | | 1967188 | Configuring peer address as a next hop requires an effective cluster version of 9.9.1 or later. | | 1967189 | The parameter peer.asn can't be zero. | | 53281985 | Internal error. Failed to update BGP peer group because BGP LIF moved during the operation. Wait a few minutes and try the command again. | | 53282006 | BGP peer group could not be updated to use a peer address because the value provided is not a valid peer address. If necessary, try the command again with a routable host address. | | 53282007 | BGP peer group could not be updated to use a peer address because the address represents a different address family to the address of the associated BGP LIF. If necessary, try the command again with a matching address family. | | 53282018 | Failed to create BGP peer group because an existing peer group has already established a BGP session between LIF and peer address. If necessary, try the command again with a different BGP LIF or a different peer address. | */ type NetworkIPBgpPeerGroupsCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the network ip bgp peer groups create default response func (o *NetworkIPBgpPeerGroupsCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this network ip bgp peer groups create default response has a 2xx status code func (o *NetworkIPBgpPeerGroupsCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this network ip bgp peer groups create default response has a 3xx status code func (o *NetworkIPBgpPeerGroupsCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this network ip bgp peer groups create default response has a 4xx status code func (o *NetworkIPBgpPeerGroupsCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this network ip bgp peer groups create default response has a 5xx status code func (o *NetworkIPBgpPeerGroupsCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this network ip bgp peer groups create default response a status code equal to that given func (o *NetworkIPBgpPeerGroupsCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NetworkIPBgpPeerGroupsCreateDefault) Error() string { return fmt.Sprintf("[POST /network/ip/bgp/peer-groups][%d] network_ip_bgp_peer_groups_create default %+v", o._statusCode, o.Payload) } func (o *NetworkIPBgpPeerGroupsCreateDefault) String() string { return fmt.Sprintf("[POST /network/ip/bgp/peer-groups][%d] network_ip_bgp_peer_groups_create default %+v", o._statusCode, o.Payload) } func (o *NetworkIPBgpPeerGroupsCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NetworkIPBgpPeerGroupsCreateDefault) 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/networking/http_proxy_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/http_proxy_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // HTTPProxyDeleteReader is a Reader for the HTTPProxyDelete structure. type HTTPProxyDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *HTTPProxyDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewHTTPProxyDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewHTTPProxyDeleteDefault(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 } } // NewHTTPProxyDeleteOK creates a HTTPProxyDeleteOK with default headers values func NewHTTPProxyDeleteOK() *HTTPProxyDeleteOK { return &HTTPProxyDeleteOK{} } /* HTTPProxyDeleteOK describes a response with status code 200, with default header values. OK */ type HTTPProxyDeleteOK struct { } // IsSuccess returns true when this http proxy delete o k response has a 2xx status code func (o *HTTPProxyDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this http proxy delete o k response has a 3xx status code func (o *HTTPProxyDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this http proxy delete o k response has a 4xx status code func (o *HTTPProxyDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this http proxy delete o k response has a 5xx status code func (o *HTTPProxyDeleteOK) IsServerError() bool { return false } // IsCode returns true when this http proxy delete o k response a status code equal to that given func (o *HTTPProxyDeleteOK) IsCode(code int) bool { return code == 200 } func (o *HTTPProxyDeleteOK) Error() string { return fmt.Sprintf("[DELETE /network/http-proxy/{uuid}][%d] httpProxyDeleteOK ", 200) } func (o *HTTPProxyDeleteOK) String() string { return fmt.Sprintf("[DELETE /network/http-proxy/{uuid}][%d] httpProxyDeleteOK ", 200) } func (o *HTTPProxyDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewHTTPProxyDeleteDefault creates a HTTPProxyDeleteDefault with default headers values func NewHTTPProxyDeleteDefault(code int) *HTTPProxyDeleteDefault { return &HTTPProxyDeleteDefault{ _statusCode: code, } } /* HTTPProxyDeleteDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 138281013 | The HTTP proxy cannot be deleted while in use by a cloud agent connection. | */ type HTTPProxyDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the http proxy delete default response func (o *HTTPProxyDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this http proxy delete default response has a 2xx status code func (o *HTTPProxyDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this http proxy delete default response has a 3xx status code func (o *HTTPProxyDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this http proxy delete default response has a 4xx status code func (o *HTTPProxyDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this http proxy delete default response has a 5xx status code func (o *HTTPProxyDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this http proxy delete default response a status code equal to that given func (o *HTTPProxyDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *HTTPProxyDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /network/http-proxy/{uuid}][%d] http_proxy_delete default %+v", o._statusCode, o.Payload) } func (o *HTTPProxyDeleteDefault) String() string { return fmt.Sprintf("[DELETE /network/http-proxy/{uuid}][%d] http_proxy_delete default %+v", o._statusCode, o.Payload) } func (o *HTTPProxyDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *HTTPProxyDeleteDefault) 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/networking/http_proxy_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/http_proxy_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewHTTPProxyCollectionGetParams creates a new HTTPProxyCollectionGetParams 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 NewHTTPProxyCollectionGetParams() *HTTPProxyCollectionGetParams { return &HTTPProxyCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewHTTPProxyCollectionGetParamsWithTimeout creates a new HTTPProxyCollectionGetParams object // with the ability to set a timeout on a request. func NewHTTPProxyCollectionGetParamsWithTimeout(timeout time.Duration) *HTTPProxyCollectionGetParams { return &HTTPProxyCollectionGetParams{ timeout: timeout, } } // NewHTTPProxyCollectionGetParamsWithContext creates a new HTTPProxyCollectionGetParams object // with the ability to set a context for a request. func NewHTTPProxyCollectionGetParamsWithContext(ctx context.Context) *HTTPProxyCollectionGetParams { return &HTTPProxyCollectionGetParams{ Context: ctx, } } // NewHTTPProxyCollectionGetParamsWithHTTPClient creates a new HTTPProxyCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewHTTPProxyCollectionGetParamsWithHTTPClient(client *http.Client) *HTTPProxyCollectionGetParams { return &HTTPProxyCollectionGetParams{ HTTPClient: client, } } /* HTTPProxyCollectionGetParams contains all the parameters to send to the API endpoint for the http proxy collection get operation. Typically these are written to a http.Request. */ type HTTPProxyCollectionGetParams struct { /* AuthenticationEnabled. Filter by authentication_enabled */ AuthenticationEnabled *bool /* 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 /* 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 /* Scope. Filter by scope */ Scope *string /* Server. Filter by server */ Server *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 http proxy collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *HTTPProxyCollectionGetParams) WithDefaults() *HTTPProxyCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the http proxy collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *HTTPProxyCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := HTTPProxyCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) WithTimeout(timeout time.Duration) *HTTPProxyCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) WithContext(ctx context.Context) *HTTPProxyCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) WithHTTPClient(client *http.Client) *HTTPProxyCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAuthenticationEnabled adds the authenticationEnabled to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) WithAuthenticationEnabled(authenticationEnabled *bool) *HTTPProxyCollectionGetParams { o.SetAuthenticationEnabled(authenticationEnabled) return o } // SetAuthenticationEnabled adds the authenticationEnabled to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) SetAuthenticationEnabled(authenticationEnabled *bool) { o.AuthenticationEnabled = authenticationEnabled } // WithFields adds the fields to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) WithFields(fields []string) *HTTPProxyCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithIpspaceName adds the ipspaceName to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) WithIpspaceName(ipspaceName *string) *HTTPProxyCollectionGetParams { o.SetIpspaceName(ipspaceName) return o } // SetIpspaceName adds the ipspaceName to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) SetIpspaceName(ipspaceName *string) { o.IpspaceName = ipspaceName } // WithIpspaceUUID adds the ipspaceUUID to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) WithIpspaceUUID(ipspaceUUID *string) *HTTPProxyCollectionGetParams { o.SetIpspaceUUID(ipspaceUUID) return o } // SetIpspaceUUID adds the ipspaceUuid to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) SetIpspaceUUID(ipspaceUUID *string) { o.IpspaceUUID = ipspaceUUID } // WithMaxRecords adds the maxRecords to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) WithMaxRecords(maxRecords *int64) *HTTPProxyCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) WithOrderBy(orderBy []string) *HTTPProxyCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithPort adds the port to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) WithPort(port *int64) *HTTPProxyCollectionGetParams { o.SetPort(port) return o } // SetPort adds the port to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) SetPort(port *int64) { o.Port = port } // WithReturnRecords adds the returnRecords to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) WithReturnRecords(returnRecords *bool) *HTTPProxyCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *HTTPProxyCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithScope adds the scope to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) WithScope(scope *string) *HTTPProxyCollectionGetParams { o.SetScope(scope) return o } // SetScope adds the scope to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) SetScope(scope *string) { o.Scope = scope } // WithServer adds the server to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) WithServer(server *string) *HTTPProxyCollectionGetParams { o.SetServer(server) return o } // SetServer adds the server to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) SetServer(server *string) { o.Server = server } // WithSvmName adds the svmName to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) WithSvmName(svmName *string) *HTTPProxyCollectionGetParams { o.SetSvmName(svmName) return o } // SetSvmName adds the svmName to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) SetSvmName(svmName *string) { o.SvmName = svmName } // WithSvmUUID adds the svmUUID to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) WithSvmUUID(svmUUID *string) *HTTPProxyCollectionGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) SetSvmUUID(svmUUID *string) { o.SvmUUID = svmUUID } // WithUUID adds the uuid to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) WithUUID(uuid *string) *HTTPProxyCollectionGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the http proxy collection get params func (o *HTTPProxyCollectionGetParams) SetUUID(uuid *string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *HTTPProxyCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.AuthenticationEnabled != nil { // query param authentication_enabled var qrAuthenticationEnabled bool if o.AuthenticationEnabled != nil { qrAuthenticationEnabled = *o.AuthenticationEnabled } qAuthenticationEnabled := swag.FormatBool(qrAuthenticationEnabled) if qAuthenticationEnabled != "" { if err := r.SetQueryParam("authentication_enabled", qAuthenticationEnabled); 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.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.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.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.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 } // bindParamHTTPProxyCollectionGet binds the parameter fields func (o *HTTPProxyCollectionGetParams) 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 } // bindParamHTTPProxyCollectionGet binds the parameter order_by func (o *HTTPProxyCollectionGetParams) 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/networking/switch_port_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/switch_port_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewSwitchPortCollectionGetParams creates a new SwitchPortCollectionGetParams 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 NewSwitchPortCollectionGetParams() *SwitchPortCollectionGetParams { return &SwitchPortCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewSwitchPortCollectionGetParamsWithTimeout creates a new SwitchPortCollectionGetParams object // with the ability to set a timeout on a request. func NewSwitchPortCollectionGetParamsWithTimeout(timeout time.Duration) *SwitchPortCollectionGetParams { return &SwitchPortCollectionGetParams{ timeout: timeout, } } // NewSwitchPortCollectionGetParamsWithContext creates a new SwitchPortCollectionGetParams object // with the ability to set a context for a request. func NewSwitchPortCollectionGetParamsWithContext(ctx context.Context) *SwitchPortCollectionGetParams { return &SwitchPortCollectionGetParams{ Context: ctx, } } // NewSwitchPortCollectionGetParamsWithHTTPClient creates a new SwitchPortCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewSwitchPortCollectionGetParamsWithHTTPClient(client *http.Client) *SwitchPortCollectionGetParams { return &SwitchPortCollectionGetParams{ HTTPClient: client, } } /* SwitchPortCollectionGetParams contains all the parameters to send to the API endpoint for the switch port collection get operation. Typically these are written to a http.Request. */ type SwitchPortCollectionGetParams struct { /* Configured. Filter by configured */ Configured *string /* DuplexType. Filter by duplex_type */ DuplexType *string /* Fields. Specify the fields to return. */ Fields []string /* IdentityIndex. Filter by identity.index */ IdentityIndex *int64 /* IdentityName. Filter by identity.name */ IdentityName *string /* IdentityNumber. Filter by identity.number */ IdentityNumber *int64 /* Isl. Filter by isl */ Isl *bool /* MacAddress. Filter by mac_address */ MacAddress *string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* Mtu. Filter by mtu */ Mtu *int64 /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* RemotePortDeviceNodeName. Filter by remote_port.device.node.name */ RemotePortDeviceNodeName *string /* RemotePortDeviceNodeUUID. Filter by remote_port.device.node.uuid */ RemotePortDeviceNodeUUID *string /* RemotePortDeviceShelfModule. Filter by remote_port.device.shelf.module */ RemotePortDeviceShelfModule *string /* RemotePortDeviceShelfName. Filter by remote_port.device.shelf.name */ RemotePortDeviceShelfName *string /* RemotePortDeviceShelfUID. Filter by remote_port.device.shelf.uid */ RemotePortDeviceShelfUID *string /* RemotePortMtu. Filter by remote_port.mtu */ RemotePortMtu *int64 /* RemotePortName. Filter by remote_port.name */ RemotePortName *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 /* Speed. Filter by speed */ Speed *int64 /* State. Filter by state */ State *string /* StatisticsReceiveRawDiscards. Filter by statistics.receive_raw.discards */ StatisticsReceiveRawDiscards *int64 /* StatisticsReceiveRawErrors. Filter by statistics.receive_raw.errors */ StatisticsReceiveRawErrors *int64 /* StatisticsReceiveRawPackets. Filter by statistics.receive_raw.packets */ StatisticsReceiveRawPackets *int64 /* StatisticsTransmitRawDiscards. Filter by statistics.transmit_raw.discards */ StatisticsTransmitRawDiscards *int64 /* StatisticsTransmitRawErrors. Filter by statistics.transmit_raw.errors */ StatisticsTransmitRawErrors *int64 /* StatisticsTransmitRawPackets. Filter by statistics.transmit_raw.packets */ StatisticsTransmitRawPackets *int64 /* SwitchName. Filter by switch.name */ SwitchName *string /* Type. Filter by type */ Type *string /* VlanID. Filter by vlan_id */ VlanID *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the switch port collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *SwitchPortCollectionGetParams) WithDefaults() *SwitchPortCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the switch port collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *SwitchPortCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := SwitchPortCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithTimeout(timeout time.Duration) *SwitchPortCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithContext(ctx context.Context) *SwitchPortCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithHTTPClient(client *http.Client) *SwitchPortCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithConfigured adds the configured to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithConfigured(configured *string) *SwitchPortCollectionGetParams { o.SetConfigured(configured) return o } // SetConfigured adds the configured to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetConfigured(configured *string) { o.Configured = configured } // WithDuplexType adds the duplexType to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithDuplexType(duplexType *string) *SwitchPortCollectionGetParams { o.SetDuplexType(duplexType) return o } // SetDuplexType adds the duplexType to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetDuplexType(duplexType *string) { o.DuplexType = duplexType } // WithFields adds the fields to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithFields(fields []string) *SwitchPortCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithIdentityIndex adds the identityIndex to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithIdentityIndex(identityIndex *int64) *SwitchPortCollectionGetParams { o.SetIdentityIndex(identityIndex) return o } // SetIdentityIndex adds the identityIndex to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetIdentityIndex(identityIndex *int64) { o.IdentityIndex = identityIndex } // WithIdentityName adds the identityName to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithIdentityName(identityName *string) *SwitchPortCollectionGetParams { o.SetIdentityName(identityName) return o } // SetIdentityName adds the identityName to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetIdentityName(identityName *string) { o.IdentityName = identityName } // WithIdentityNumber adds the identityNumber to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithIdentityNumber(identityNumber *int64) *SwitchPortCollectionGetParams { o.SetIdentityNumber(identityNumber) return o } // SetIdentityNumber adds the identityNumber to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetIdentityNumber(identityNumber *int64) { o.IdentityNumber = identityNumber } // WithIsl adds the isl to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithIsl(isl *bool) *SwitchPortCollectionGetParams { o.SetIsl(isl) return o } // SetIsl adds the isl to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetIsl(isl *bool) { o.Isl = isl } // WithMacAddress adds the macAddress to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithMacAddress(macAddress *string) *SwitchPortCollectionGetParams { o.SetMacAddress(macAddress) return o } // SetMacAddress adds the macAddress to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetMacAddress(macAddress *string) { o.MacAddress = macAddress } // WithMaxRecords adds the maxRecords to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithMaxRecords(maxRecords *int64) *SwitchPortCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithMtu adds the mtu to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithMtu(mtu *int64) *SwitchPortCollectionGetParams { o.SetMtu(mtu) return o } // SetMtu adds the mtu to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetMtu(mtu *int64) { o.Mtu = mtu } // WithOrderBy adds the orderBy to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithOrderBy(orderBy []string) *SwitchPortCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithRemotePortDeviceNodeName adds the remotePortDeviceNodeName to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithRemotePortDeviceNodeName(remotePortDeviceNodeName *string) *SwitchPortCollectionGetParams { o.SetRemotePortDeviceNodeName(remotePortDeviceNodeName) return o } // SetRemotePortDeviceNodeName adds the remotePortDeviceNodeName to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetRemotePortDeviceNodeName(remotePortDeviceNodeName *string) { o.RemotePortDeviceNodeName = remotePortDeviceNodeName } // WithRemotePortDeviceNodeUUID adds the remotePortDeviceNodeUUID to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithRemotePortDeviceNodeUUID(remotePortDeviceNodeUUID *string) *SwitchPortCollectionGetParams { o.SetRemotePortDeviceNodeUUID(remotePortDeviceNodeUUID) return o } // SetRemotePortDeviceNodeUUID adds the remotePortDeviceNodeUuid to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetRemotePortDeviceNodeUUID(remotePortDeviceNodeUUID *string) { o.RemotePortDeviceNodeUUID = remotePortDeviceNodeUUID } // WithRemotePortDeviceShelfModule adds the remotePortDeviceShelfModule to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithRemotePortDeviceShelfModule(remotePortDeviceShelfModule *string) *SwitchPortCollectionGetParams { o.SetRemotePortDeviceShelfModule(remotePortDeviceShelfModule) return o } // SetRemotePortDeviceShelfModule adds the remotePortDeviceShelfModule to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetRemotePortDeviceShelfModule(remotePortDeviceShelfModule *string) { o.RemotePortDeviceShelfModule = remotePortDeviceShelfModule } // WithRemotePortDeviceShelfName adds the remotePortDeviceShelfName to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithRemotePortDeviceShelfName(remotePortDeviceShelfName *string) *SwitchPortCollectionGetParams { o.SetRemotePortDeviceShelfName(remotePortDeviceShelfName) return o } // SetRemotePortDeviceShelfName adds the remotePortDeviceShelfName to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetRemotePortDeviceShelfName(remotePortDeviceShelfName *string) { o.RemotePortDeviceShelfName = remotePortDeviceShelfName } // WithRemotePortDeviceShelfUID adds the remotePortDeviceShelfUID to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithRemotePortDeviceShelfUID(remotePortDeviceShelfUID *string) *SwitchPortCollectionGetParams { o.SetRemotePortDeviceShelfUID(remotePortDeviceShelfUID) return o } // SetRemotePortDeviceShelfUID adds the remotePortDeviceShelfUid to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetRemotePortDeviceShelfUID(remotePortDeviceShelfUID *string) { o.RemotePortDeviceShelfUID = remotePortDeviceShelfUID } // WithRemotePortMtu adds the remotePortMtu to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithRemotePortMtu(remotePortMtu *int64) *SwitchPortCollectionGetParams { o.SetRemotePortMtu(remotePortMtu) return o } // SetRemotePortMtu adds the remotePortMtu to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetRemotePortMtu(remotePortMtu *int64) { o.RemotePortMtu = remotePortMtu } // WithRemotePortName adds the remotePortName to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithRemotePortName(remotePortName *string) *SwitchPortCollectionGetParams { o.SetRemotePortName(remotePortName) return o } // SetRemotePortName adds the remotePortName to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetRemotePortName(remotePortName *string) { o.RemotePortName = remotePortName } // WithReturnRecords adds the returnRecords to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithReturnRecords(returnRecords *bool) *SwitchPortCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *SwitchPortCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithSpeed adds the speed to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithSpeed(speed *int64) *SwitchPortCollectionGetParams { o.SetSpeed(speed) return o } // SetSpeed adds the speed to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetSpeed(speed *int64) { o.Speed = speed } // WithState adds the state to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithState(state *string) *SwitchPortCollectionGetParams { o.SetState(state) return o } // SetState adds the state to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetState(state *string) { o.State = state } // WithStatisticsReceiveRawDiscards adds the statisticsReceiveRawDiscards to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithStatisticsReceiveRawDiscards(statisticsReceiveRawDiscards *int64) *SwitchPortCollectionGetParams { o.SetStatisticsReceiveRawDiscards(statisticsReceiveRawDiscards) return o } // SetStatisticsReceiveRawDiscards adds the statisticsReceiveRawDiscards to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetStatisticsReceiveRawDiscards(statisticsReceiveRawDiscards *int64) { o.StatisticsReceiveRawDiscards = statisticsReceiveRawDiscards } // WithStatisticsReceiveRawErrors adds the statisticsReceiveRawErrors to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithStatisticsReceiveRawErrors(statisticsReceiveRawErrors *int64) *SwitchPortCollectionGetParams { o.SetStatisticsReceiveRawErrors(statisticsReceiveRawErrors) return o } // SetStatisticsReceiveRawErrors adds the statisticsReceiveRawErrors to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetStatisticsReceiveRawErrors(statisticsReceiveRawErrors *int64) { o.StatisticsReceiveRawErrors = statisticsReceiveRawErrors } // WithStatisticsReceiveRawPackets adds the statisticsReceiveRawPackets to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithStatisticsReceiveRawPackets(statisticsReceiveRawPackets *int64) *SwitchPortCollectionGetParams { o.SetStatisticsReceiveRawPackets(statisticsReceiveRawPackets) return o } // SetStatisticsReceiveRawPackets adds the statisticsReceiveRawPackets to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetStatisticsReceiveRawPackets(statisticsReceiveRawPackets *int64) { o.StatisticsReceiveRawPackets = statisticsReceiveRawPackets } // WithStatisticsTransmitRawDiscards adds the statisticsTransmitRawDiscards to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithStatisticsTransmitRawDiscards(statisticsTransmitRawDiscards *int64) *SwitchPortCollectionGetParams { o.SetStatisticsTransmitRawDiscards(statisticsTransmitRawDiscards) return o } // SetStatisticsTransmitRawDiscards adds the statisticsTransmitRawDiscards to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetStatisticsTransmitRawDiscards(statisticsTransmitRawDiscards *int64) { o.StatisticsTransmitRawDiscards = statisticsTransmitRawDiscards } // WithStatisticsTransmitRawErrors adds the statisticsTransmitRawErrors to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithStatisticsTransmitRawErrors(statisticsTransmitRawErrors *int64) *SwitchPortCollectionGetParams { o.SetStatisticsTransmitRawErrors(statisticsTransmitRawErrors) return o } // SetStatisticsTransmitRawErrors adds the statisticsTransmitRawErrors to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetStatisticsTransmitRawErrors(statisticsTransmitRawErrors *int64) { o.StatisticsTransmitRawErrors = statisticsTransmitRawErrors } // WithStatisticsTransmitRawPackets adds the statisticsTransmitRawPackets to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithStatisticsTransmitRawPackets(statisticsTransmitRawPackets *int64) *SwitchPortCollectionGetParams { o.SetStatisticsTransmitRawPackets(statisticsTransmitRawPackets) return o } // SetStatisticsTransmitRawPackets adds the statisticsTransmitRawPackets to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetStatisticsTransmitRawPackets(statisticsTransmitRawPackets *int64) { o.StatisticsTransmitRawPackets = statisticsTransmitRawPackets } // WithSwitchName adds the switchName to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithSwitchName(switchName *string) *SwitchPortCollectionGetParams { o.SetSwitchName(switchName) return o } // SetSwitchName adds the switchName to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetSwitchName(switchName *string) { o.SwitchName = switchName } // WithType adds the typeVar to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithType(typeVar *string) *SwitchPortCollectionGetParams { o.SetType(typeVar) return o } // SetType adds the type to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetType(typeVar *string) { o.Type = typeVar } // WithVlanID adds the vlanID to the switch port collection get params func (o *SwitchPortCollectionGetParams) WithVlanID(vlanID *int64) *SwitchPortCollectionGetParams { o.SetVlanID(vlanID) return o } // SetVlanID adds the vlanId to the switch port collection get params func (o *SwitchPortCollectionGetParams) SetVlanID(vlanID *int64) { o.VlanID = vlanID } // WriteToRequest writes these params to a swagger request func (o *SwitchPortCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Configured != nil { // query param configured var qrConfigured string if o.Configured != nil { qrConfigured = *o.Configured } qConfigured := qrConfigured if qConfigured != "" { if err := r.SetQueryParam("configured", qConfigured); err != nil { return err } } } if o.DuplexType != nil { // query param duplex_type var qrDuplexType string if o.DuplexType != nil { qrDuplexType = *o.DuplexType } qDuplexType := qrDuplexType if qDuplexType != "" { if err := r.SetQueryParam("duplex_type", qDuplexType); 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.IdentityIndex != nil { // query param identity.index var qrIdentityIndex int64 if o.IdentityIndex != nil { qrIdentityIndex = *o.IdentityIndex } qIdentityIndex := swag.FormatInt64(qrIdentityIndex) if qIdentityIndex != "" { if err := r.SetQueryParam("identity.index", qIdentityIndex); err != nil { return err } } } if o.IdentityName != nil { // query param identity.name var qrIdentityName string if o.IdentityName != nil { qrIdentityName = *o.IdentityName } qIdentityName := qrIdentityName if qIdentityName != "" { if err := r.SetQueryParam("identity.name", qIdentityName); err != nil { return err } } } if o.IdentityNumber != nil { // query param identity.number var qrIdentityNumber int64 if o.IdentityNumber != nil { qrIdentityNumber = *o.IdentityNumber } qIdentityNumber := swag.FormatInt64(qrIdentityNumber) if qIdentityNumber != "" { if err := r.SetQueryParam("identity.number", qIdentityNumber); err != nil { return err } } } if o.Isl != nil { // query param isl var qrIsl bool if o.Isl != nil { qrIsl = *o.Isl } qIsl := swag.FormatBool(qrIsl) if qIsl != "" { if err := r.SetQueryParam("isl", qIsl); err != nil { return err } } } if o.MacAddress != nil { // query param mac_address var qrMacAddress string if o.MacAddress != nil { qrMacAddress = *o.MacAddress } qMacAddress := qrMacAddress if qMacAddress != "" { if err := r.SetQueryParam("mac_address", qMacAddress); 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.Mtu != nil { // query param mtu var qrMtu int64 if o.Mtu != nil { qrMtu = *o.Mtu } qMtu := swag.FormatInt64(qrMtu) if qMtu != "" { if err := r.SetQueryParam("mtu", qMtu); 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.RemotePortDeviceNodeName != nil { // query param remote_port.device.node.name var qrRemotePortDeviceNodeName string if o.RemotePortDeviceNodeName != nil { qrRemotePortDeviceNodeName = *o.RemotePortDeviceNodeName } qRemotePortDeviceNodeName := qrRemotePortDeviceNodeName if qRemotePortDeviceNodeName != "" { if err := r.SetQueryParam("remote_port.device.node.name", qRemotePortDeviceNodeName); err != nil { return err } } } if o.RemotePortDeviceNodeUUID != nil { // query param remote_port.device.node.uuid var qrRemotePortDeviceNodeUUID string if o.RemotePortDeviceNodeUUID != nil { qrRemotePortDeviceNodeUUID = *o.RemotePortDeviceNodeUUID } qRemotePortDeviceNodeUUID := qrRemotePortDeviceNodeUUID if qRemotePortDeviceNodeUUID != "" { if err := r.SetQueryParam("remote_port.device.node.uuid", qRemotePortDeviceNodeUUID); err != nil { return err } } } if o.RemotePortDeviceShelfModule != nil { // query param remote_port.device.shelf.module var qrRemotePortDeviceShelfModule string if o.RemotePortDeviceShelfModule != nil { qrRemotePortDeviceShelfModule = *o.RemotePortDeviceShelfModule } qRemotePortDeviceShelfModule := qrRemotePortDeviceShelfModule if qRemotePortDeviceShelfModule != "" { if err := r.SetQueryParam("remote_port.device.shelf.module", qRemotePortDeviceShelfModule); err != nil { return err } } } if o.RemotePortDeviceShelfName != nil { // query param remote_port.device.shelf.name var qrRemotePortDeviceShelfName string if o.RemotePortDeviceShelfName != nil { qrRemotePortDeviceShelfName = *o.RemotePortDeviceShelfName } qRemotePortDeviceShelfName := qrRemotePortDeviceShelfName if qRemotePortDeviceShelfName != "" { if err := r.SetQueryParam("remote_port.device.shelf.name", qRemotePortDeviceShelfName); err != nil { return err } } } if o.RemotePortDeviceShelfUID != nil { // query param remote_port.device.shelf.uid var qrRemotePortDeviceShelfUID string if o.RemotePortDeviceShelfUID != nil { qrRemotePortDeviceShelfUID = *o.RemotePortDeviceShelfUID } qRemotePortDeviceShelfUID := qrRemotePortDeviceShelfUID if qRemotePortDeviceShelfUID != "" { if err := r.SetQueryParam("remote_port.device.shelf.uid", qRemotePortDeviceShelfUID); err != nil { return err } } } if o.RemotePortMtu != nil { // query param remote_port.mtu var qrRemotePortMtu int64 if o.RemotePortMtu != nil { qrRemotePortMtu = *o.RemotePortMtu } qRemotePortMtu := swag.FormatInt64(qrRemotePortMtu) if qRemotePortMtu != "" { if err := r.SetQueryParam("remote_port.mtu", qRemotePortMtu); err != nil { return err } } } if o.RemotePortName != nil { // query param remote_port.name var qrRemotePortName string if o.RemotePortName != nil { qrRemotePortName = *o.RemotePortName } qRemotePortName := qrRemotePortName if qRemotePortName != "" { if err := r.SetQueryParam("remote_port.name", qRemotePortName); 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.Speed != nil { // query param speed var qrSpeed int64 if o.Speed != nil { qrSpeed = *o.Speed } qSpeed := swag.FormatInt64(qrSpeed) if qSpeed != "" { if err := r.SetQueryParam("speed", qSpeed); err != nil { return err } } } if o.State != nil { // query param state var qrState string if o.State != nil { qrState = *o.State } qState := qrState if qState != "" { if err := r.SetQueryParam("state", qState); err != nil { return err } } } if o.StatisticsReceiveRawDiscards != nil { // query param statistics.receive_raw.discards var qrStatisticsReceiveRawDiscards int64 if o.StatisticsReceiveRawDiscards != nil { qrStatisticsReceiveRawDiscards = *o.StatisticsReceiveRawDiscards } qStatisticsReceiveRawDiscards := swag.FormatInt64(qrStatisticsReceiveRawDiscards) if qStatisticsReceiveRawDiscards != "" { if err := r.SetQueryParam("statistics.receive_raw.discards", qStatisticsReceiveRawDiscards); err != nil { return err } } } if o.StatisticsReceiveRawErrors != nil { // query param statistics.receive_raw.errors var qrStatisticsReceiveRawErrors int64 if o.StatisticsReceiveRawErrors != nil { qrStatisticsReceiveRawErrors = *o.StatisticsReceiveRawErrors } qStatisticsReceiveRawErrors := swag.FormatInt64(qrStatisticsReceiveRawErrors) if qStatisticsReceiveRawErrors != "" { if err := r.SetQueryParam("statistics.receive_raw.errors", qStatisticsReceiveRawErrors); err != nil { return err } } } if o.StatisticsReceiveRawPackets != nil { // query param statistics.receive_raw.packets var qrStatisticsReceiveRawPackets int64 if o.StatisticsReceiveRawPackets != nil { qrStatisticsReceiveRawPackets = *o.StatisticsReceiveRawPackets } qStatisticsReceiveRawPackets := swag.FormatInt64(qrStatisticsReceiveRawPackets) if qStatisticsReceiveRawPackets != "" { if err := r.SetQueryParam("statistics.receive_raw.packets", qStatisticsReceiveRawPackets); err != nil { return err } } } if o.StatisticsTransmitRawDiscards != nil { // query param statistics.transmit_raw.discards var qrStatisticsTransmitRawDiscards int64 if o.StatisticsTransmitRawDiscards != nil { qrStatisticsTransmitRawDiscards = *o.StatisticsTransmitRawDiscards } qStatisticsTransmitRawDiscards := swag.FormatInt64(qrStatisticsTransmitRawDiscards) if qStatisticsTransmitRawDiscards != "" { if err := r.SetQueryParam("statistics.transmit_raw.discards", qStatisticsTransmitRawDiscards); err != nil { return err } } } if o.StatisticsTransmitRawErrors != nil { // query param statistics.transmit_raw.errors var qrStatisticsTransmitRawErrors int64 if o.StatisticsTransmitRawErrors != nil { qrStatisticsTransmitRawErrors = *o.StatisticsTransmitRawErrors } qStatisticsTransmitRawErrors := swag.FormatInt64(qrStatisticsTransmitRawErrors) if qStatisticsTransmitRawErrors != "" { if err := r.SetQueryParam("statistics.transmit_raw.errors", qStatisticsTransmitRawErrors); err != nil { return err } } } if o.StatisticsTransmitRawPackets != nil { // query param statistics.transmit_raw.packets var qrStatisticsTransmitRawPackets int64 if o.StatisticsTransmitRawPackets != nil { qrStatisticsTransmitRawPackets = *o.StatisticsTransmitRawPackets } qStatisticsTransmitRawPackets := swag.FormatInt64(qrStatisticsTransmitRawPackets) if qStatisticsTransmitRawPackets != "" { if err := r.SetQueryParam("statistics.transmit_raw.packets", qStatisticsTransmitRawPackets); err != nil { return err } } } if o.SwitchName != nil { // query param switch.name var qrSwitchName string if o.SwitchName != 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/networking/fc_port_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/fc_port_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // FcPortModifyReader is a Reader for the FcPortModify structure. type FcPortModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *FcPortModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewFcPortModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewFcPortModifyDefault(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 } } // NewFcPortModifyOK creates a FcPortModifyOK with default headers values func NewFcPortModifyOK() *FcPortModifyOK { return &FcPortModifyOK{} } /* FcPortModifyOK describes a response with status code 200, with default header values. OK */ type FcPortModifyOK struct { } // IsSuccess returns true when this fc port modify o k response has a 2xx status code func (o *FcPortModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this fc port modify o k response has a 3xx status code func (o *FcPortModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this fc port modify o k response has a 4xx status code func (o *FcPortModifyOK) IsClientError() bool { return false } // IsServerError returns true when this fc port modify o k response has a 5xx status code func (o *FcPortModifyOK) IsServerError() bool { return false } // IsCode returns true when this fc port modify o k response a status code equal to that given func (o *FcPortModifyOK) IsCode(code int) bool { return code == 200 } func (o *FcPortModifyOK) Error() string { return fmt.Sprintf("[PATCH /network/fc/ports/{uuid}][%d] fcPortModifyOK ", 200) } func (o *FcPortModifyOK) String() string { return fmt.Sprintf("[PATCH /network/fc/ports/{uuid}][%d] fcPortModifyOK ", 200) } func (o *FcPortModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewFcPortModifyDefault creates a FcPortModifyDefault with default headers values func NewFcPortModifyDefault(code int) *FcPortModifyDefault { return &FcPortModifyDefault{ _statusCode: code, } } /* FcPortModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 5374085 | The node where the Fibre Channel port is located is offline. | | 5374087 | The Fibre Channel port has active Fibre Channel interfaces and cannot be disabled. | */ type FcPortModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the fc port modify default response func (o *FcPortModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this fc port modify default response has a 2xx status code func (o *FcPortModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this fc port modify default response has a 3xx status code func (o *FcPortModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this fc port modify default response has a 4xx status code func (o *FcPortModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this fc port modify default response has a 5xx status code func (o *FcPortModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this fc port modify default response a status code equal to that given func (o *FcPortModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *FcPortModifyDefault) Error() string { return fmt.Sprintf("[PATCH /network/fc/ports/{uuid}][%d] fc_port_modify default %+v", o._statusCode, o.Payload) } func (o *FcPortModifyDefault) String() string { return fmt.Sprintf("[PATCH /network/fc/ports/{uuid}][%d] fc_port_modify default %+v", o._statusCode, o.Payload) } func (o *FcPortModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *FcPortModifyDefault) 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/networking/network_ethernet_port_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ethernet_port_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NetworkEthernetPortDeleteReader is a Reader for the NetworkEthernetPortDelete structure. type NetworkEthernetPortDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NetworkEthernetPortDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNetworkEthernetPortDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNetworkEthernetPortDeleteDefault(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 } } // NewNetworkEthernetPortDeleteOK creates a NetworkEthernetPortDeleteOK with default headers values func NewNetworkEthernetPortDeleteOK() *NetworkEthernetPortDeleteOK { return &NetworkEthernetPortDeleteOK{} } /* NetworkEthernetPortDeleteOK describes a response with status code 200, with default header values. OK */ type NetworkEthernetPortDeleteOK struct { } // IsSuccess returns true when this network ethernet port delete o k response has a 2xx status code func (o *NetworkEthernetPortDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this network ethernet port delete o k response has a 3xx status code func (o *NetworkEthernetPortDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this network ethernet port delete o k response has a 4xx status code func (o *NetworkEthernetPortDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this network ethernet port delete o k response has a 5xx status code func (o *NetworkEthernetPortDeleteOK) IsServerError() bool { return false } // IsCode returns true when this network ethernet port delete o k response a status code equal to that given func (o *NetworkEthernetPortDeleteOK) IsCode(code int) bool { return code == 200 } func (o *NetworkEthernetPortDeleteOK) Error() string { return fmt.Sprintf("[DELETE /network/ethernet/ports/{uuid}][%d] networkEthernetPortDeleteOK ", 200) } func (o *NetworkEthernetPortDeleteOK) String() string { return fmt.Sprintf("[DELETE /network/ethernet/ports/{uuid}][%d] networkEthernetPortDeleteOK ", 200) } func (o *NetworkEthernetPortDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewNetworkEthernetPortDeleteDefault creates a NetworkEthernetPortDeleteDefault with default headers values func NewNetworkEthernetPortDeleteDefault(code int) *NetworkEthernetPortDeleteDefault { return &NetworkEthernetPortDeleteDefault{ _statusCode: code, } } /* NetworkEthernetPortDeleteDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 1376858 | Port already has an interface bound. | | 1966189 | Port is the home port or current port of an interface. | */ type NetworkEthernetPortDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the network ethernet port delete default response func (o *NetworkEthernetPortDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this network ethernet port delete default response has a 2xx status code func (o *NetworkEthernetPortDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this network ethernet port delete default response has a 3xx status code func (o *NetworkEthernetPortDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this network ethernet port delete default response has a 4xx status code func (o *NetworkEthernetPortDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this network ethernet port delete default response has a 5xx status code func (o *NetworkEthernetPortDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this network ethernet port delete default response a status code equal to that given func (o *NetworkEthernetPortDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NetworkEthernetPortDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /network/ethernet/ports/{uuid}][%d] network_ethernet_port_delete default %+v", o._statusCode, o.Payload) } func (o *NetworkEthernetPortDeleteDefault) String() string { return fmt.Sprintf("[DELETE /network/ethernet/ports/{uuid}][%d] network_ethernet_port_delete default %+v", o._statusCode, o.Payload) } func (o *NetworkEthernetPortDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NetworkEthernetPortDeleteDefault) 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/networking/ip_service_policy_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/ip_service_policy_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewIPServicePolicyDeleteParams creates a new IPServicePolicyDeleteParams 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 NewIPServicePolicyDeleteParams() *IPServicePolicyDeleteParams { return &IPServicePolicyDeleteParams{ timeout: cr.DefaultTimeout, } } // NewIPServicePolicyDeleteParamsWithTimeout creates a new IPServicePolicyDeleteParams object // with the ability to set a timeout on a request. func NewIPServicePolicyDeleteParamsWithTimeout(timeout time.Duration) *IPServicePolicyDeleteParams { return &IPServicePolicyDeleteParams{ timeout: timeout, } } // NewIPServicePolicyDeleteParamsWithContext creates a new IPServicePolicyDeleteParams object // with the ability to set a context for a request. func NewIPServicePolicyDeleteParamsWithContext(ctx context.Context) *IPServicePolicyDeleteParams { return &IPServicePolicyDeleteParams{ Context: ctx, } } // NewIPServicePolicyDeleteParamsWithHTTPClient creates a new IPServicePolicyDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewIPServicePolicyDeleteParamsWithHTTPClient(client *http.Client) *IPServicePolicyDeleteParams { return &IPServicePolicyDeleteParams{ HTTPClient: client, } } /* IPServicePolicyDeleteParams contains all the parameters to send to the API endpoint for the ip service policy delete operation. Typically these are written to a http.Request. */ type IPServicePolicyDeleteParams struct { /* UUID. UUID of the service policy */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ip service policy delete params (not the query body). // // All values with no default are reset to their zero value. func (o *IPServicePolicyDeleteParams) WithDefaults() *IPServicePolicyDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ip service policy delete params (not the query body). // // All values with no default are reset to their zero value. func (o *IPServicePolicyDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the ip service policy delete params func (o *IPServicePolicyDeleteParams) WithTimeout(timeout time.Duration) *IPServicePolicyDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ip service policy delete params func (o *IPServicePolicyDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ip service policy delete params func (o *IPServicePolicyDeleteParams) WithContext(ctx context.Context) *IPServicePolicyDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the ip service policy delete params func (o *IPServicePolicyDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ip service policy delete params func (o *IPServicePolicyDeleteParams) WithHTTPClient(client *http.Client) *IPServicePolicyDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ip service policy delete params func (o *IPServicePolicyDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithUUID adds the uuid to the ip service policy delete params func (o *IPServicePolicyDeleteParams) WithUUID(uuid string) *IPServicePolicyDeleteParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the ip service policy delete params func (o *IPServicePolicyDeleteParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *IPServicePolicyDeleteParams) 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/networking/network_ethernet_port_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ethernet_port_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewNetworkEthernetPortGetParams creates a new NetworkEthernetPortGetParams 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 NewNetworkEthernetPortGetParams() *NetworkEthernetPortGetParams { return &NetworkEthernetPortGetParams{ timeout: cr.DefaultTimeout, } } // NewNetworkEthernetPortGetParamsWithTimeout creates a new NetworkEthernetPortGetParams object // with the ability to set a timeout on a request. func NewNetworkEthernetPortGetParamsWithTimeout(timeout time.Duration) *NetworkEthernetPortGetParams { return &NetworkEthernetPortGetParams{ timeout: timeout, } } // NewNetworkEthernetPortGetParamsWithContext creates a new NetworkEthernetPortGetParams object // with the ability to set a context for a request. func NewNetworkEthernetPortGetParamsWithContext(ctx context.Context) *NetworkEthernetPortGetParams { return &NetworkEthernetPortGetParams{ Context: ctx, } } // NewNetworkEthernetPortGetParamsWithHTTPClient creates a new NetworkEthernetPortGetParams object // with the ability to set a custom HTTPClient for a request. func NewNetworkEthernetPortGetParamsWithHTTPClient(client *http.Client) *NetworkEthernetPortGetParams { return &NetworkEthernetPortGetParams{ HTTPClient: client, } } /* NetworkEthernetPortGetParams contains all the parameters to send to the API endpoint for the network ethernet port get operation. Typically these are written to a http.Request. */ type NetworkEthernetPortGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* UUID. Port UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the network ethernet port get params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkEthernetPortGetParams) WithDefaults() *NetworkEthernetPortGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the network ethernet port get params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkEthernetPortGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the network ethernet port get params func (o *NetworkEthernetPortGetParams) WithTimeout(timeout time.Duration) *NetworkEthernetPortGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the network ethernet port get params func (o *NetworkEthernetPortGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the network ethernet port get params func (o *NetworkEthernetPortGetParams) WithContext(ctx context.Context) *NetworkEthernetPortGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the network ethernet port get params func (o *NetworkEthernetPortGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the network ethernet port get params func (o *NetworkEthernetPortGetParams) WithHTTPClient(client *http.Client) *NetworkEthernetPortGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the network ethernet port get params func (o *NetworkEthernetPortGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the network ethernet port get params func (o *NetworkEthernetPortGetParams) WithFields(fields []string) *NetworkEthernetPortGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the network ethernet port get params func (o *NetworkEthernetPortGetParams) SetFields(fields []string) { o.Fields = fields } // WithUUID adds the uuid to the network ethernet port get params func (o *NetworkEthernetPortGetParams) WithUUID(uuid string) *NetworkEthernetPortGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the network ethernet port get params func (o *NetworkEthernetPortGetParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *NetworkEthernetPortGetParams) 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 } // bindParamNetworkEthernetPortGet binds the parameter fields func (o *NetworkEthernetPortGetParams) 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/networking/fc_switch_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/fc_switch_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // FcSwitchGetReader is a Reader for the FcSwitchGet structure. type FcSwitchGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *FcSwitchGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewFcSwitchGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewFcSwitchGetDefault(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 } } // NewFcSwitchGetOK creates a FcSwitchGetOK with default headers values func NewFcSwitchGetOK() *FcSwitchGetOK { return &FcSwitchGetOK{} } /* FcSwitchGetOK describes a response with status code 200, with default header values. OK */ type FcSwitchGetOK struct { Payload *models.FcSwitch } // IsSuccess returns true when this fc switch get o k response has a 2xx status code func (o *FcSwitchGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this fc switch get o k response has a 3xx status code func (o *FcSwitchGetOK) IsRedirect() bool { return false } // IsClientError returns true when this fc switch get o k response has a 4xx status code func (o *FcSwitchGetOK) IsClientError() bool { return false } // IsServerError returns true when this fc switch get o k response has a 5xx status code func (o *FcSwitchGetOK) IsServerError() bool { return false } // IsCode returns true when this fc switch get o k response a status code equal to that given func (o *FcSwitchGetOK) IsCode(code int) bool { return code == 200 } func (o *FcSwitchGetOK) Error() string { return fmt.Sprintf("[GET /network/fc/fabrics/{fabric.name}/switches/{wwn}][%d] fcSwitchGetOK %+v", 200, o.Payload) } func (o *FcSwitchGetOK) String() string { return fmt.Sprintf("[GET /network/fc/fabrics/{fabric.name}/switches/{wwn}][%d] fcSwitchGetOK %+v", 200, o.Payload) } func (o *FcSwitchGetOK) GetPayload() *models.FcSwitch { return o.Payload } func (o *FcSwitchGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.FcSwitch) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewFcSwitchGetDefault creates a FcSwitchGetDefault with default headers values func NewFcSwitchGetDefault(code int) *FcSwitchGetDefault { return &FcSwitchGetDefault{ _statusCode: code, } } /* FcSwitchGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 5375053 | The Fibre Channel fabric specified by name in the request URI was not found in the FC fabric cache. | */ type FcSwitchGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the fc switch get default response func (o *FcSwitchGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this fc switch get default response has a 2xx status code func (o *FcSwitchGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this fc switch get default response has a 3xx status code func (o *FcSwitchGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this fc switch get default response has a 4xx status code func (o *FcSwitchGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this fc switch get default response has a 5xx status code func (o *FcSwitchGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this fc switch get default response a status code equal to that given func (o *FcSwitchGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *FcSwitchGetDefault) Error() string { return fmt.Sprintf("[GET /network/fc/fabrics/{fabric.name}/switches/{wwn}][%d] fc_switch_get default %+v", o._statusCode, o.Payload) } func (o *FcSwitchGetDefault) String() string { return fmt.Sprintf("[GET /network/fc/fabrics/{fabric.name}/switches/{wwn}][%d] fc_switch_get default %+v", o._statusCode, o.Payload) } func (o *FcSwitchGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *FcSwitchGetDefault) 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/networking/network_ethernet_broadcast_domain_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ethernet_broadcast_domain_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewNetworkEthernetBroadcastDomainModifyParams creates a new NetworkEthernetBroadcastDomainModifyParams 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 NewNetworkEthernetBroadcastDomainModifyParams() *NetworkEthernetBroadcastDomainModifyParams { return &NetworkEthernetBroadcastDomainModifyParams{ timeout: cr.DefaultTimeout, } } // NewNetworkEthernetBroadcastDomainModifyParamsWithTimeout creates a new NetworkEthernetBroadcastDomainModifyParams object // with the ability to set a timeout on a request. func NewNetworkEthernetBroadcastDomainModifyParamsWithTimeout(timeout time.Duration) *NetworkEthernetBroadcastDomainModifyParams { return &NetworkEthernetBroadcastDomainModifyParams{ timeout: timeout, } } // NewNetworkEthernetBroadcastDomainModifyParamsWithContext creates a new NetworkEthernetBroadcastDomainModifyParams object // with the ability to set a context for a request. func NewNetworkEthernetBroadcastDomainModifyParamsWithContext(ctx context.Context) *NetworkEthernetBroadcastDomainModifyParams { return &NetworkEthernetBroadcastDomainModifyParams{ Context: ctx, } } // NewNetworkEthernetBroadcastDomainModifyParamsWithHTTPClient creates a new NetworkEthernetBroadcastDomainModifyParams object // with the ability to set a custom HTTPClient for a request. func NewNetworkEthernetBroadcastDomainModifyParamsWithHTTPClient(client *http.Client) *NetworkEthernetBroadcastDomainModifyParams { return &NetworkEthernetBroadcastDomainModifyParams{ HTTPClient: client, } } /* NetworkEthernetBroadcastDomainModifyParams contains all the parameters to send to the API endpoint for the network ethernet broadcast domain modify operation. Typically these are written to a http.Request. */ type NetworkEthernetBroadcastDomainModifyParams struct { // Info. Info *models.BroadcastDomain /* UUID. Broadcast domain UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the network ethernet broadcast domain modify params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkEthernetBroadcastDomainModifyParams) WithDefaults() *NetworkEthernetBroadcastDomainModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the network ethernet broadcast domain modify params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkEthernetBroadcastDomainModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the network ethernet broadcast domain modify params func (o *NetworkEthernetBroadcastDomainModifyParams) WithTimeout(timeout time.Duration) *NetworkEthernetBroadcastDomainModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the network ethernet broadcast domain modify params func (o *NetworkEthernetBroadcastDomainModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the network ethernet broadcast domain modify params func (o *NetworkEthernetBroadcastDomainModifyParams) WithContext(ctx context.Context) *NetworkEthernetBroadcastDomainModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the network ethernet broadcast domain modify params func (o *NetworkEthernetBroadcastDomainModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the network ethernet broadcast domain modify params func (o *NetworkEthernetBroadcastDomainModifyParams) WithHTTPClient(client *http.Client) *NetworkEthernetBroadcastDomainModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the network ethernet broadcast domain modify params func (o *NetworkEthernetBroadcastDomainModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the network ethernet broadcast domain modify params func (o *NetworkEthernetBroadcastDomainModifyParams) WithInfo(info *models.BroadcastDomain) *NetworkEthernetBroadcastDomainModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the network ethernet broadcast domain modify params func (o *NetworkEthernetBroadcastDomainModifyParams) SetInfo(info *models.BroadcastDomain) { o.Info = info } // WithUUID adds the uuid to the network ethernet broadcast domain modify params func (o *NetworkEthernetBroadcastDomainModifyParams) WithUUID(uuid string) *NetworkEthernetBroadcastDomainModifyParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the network ethernet broadcast domain modify params func (o *NetworkEthernetBroadcastDomainModifyParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *NetworkEthernetBroadcastDomainModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/fc_zone_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/fc_zone_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // FcZoneCollectionGetReader is a Reader for the FcZoneCollectionGet structure. type FcZoneCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *FcZoneCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewFcZoneCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewFcZoneCollectionGetDefault(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 } } // NewFcZoneCollectionGetOK creates a FcZoneCollectionGetOK with default headers values func NewFcZoneCollectionGetOK() *FcZoneCollectionGetOK { return &FcZoneCollectionGetOK{} } /* FcZoneCollectionGetOK describes a response with status code 200, with default header values. OK */ type FcZoneCollectionGetOK struct { Payload *models.FcZoneResponse } // IsSuccess returns true when this fc zone collection get o k response has a 2xx status code func (o *FcZoneCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this fc zone collection get o k response has a 3xx status code func (o *FcZoneCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this fc zone collection get o k response has a 4xx status code func (o *FcZoneCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this fc zone collection get o k response has a 5xx status code func (o *FcZoneCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this fc zone collection get o k response a status code equal to that given func (o *FcZoneCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *FcZoneCollectionGetOK) Error() string { return fmt.Sprintf("[GET /network/fc/fabrics/{fabric.name}/zones][%d] fcZoneCollectionGetOK %+v", 200, o.Payload) } func (o *FcZoneCollectionGetOK) String() string { return fmt.Sprintf("[GET /network/fc/fabrics/{fabric.name}/zones][%d] fcZoneCollectionGetOK %+v", 200, o.Payload) } func (o *FcZoneCollectionGetOK) GetPayload() *models.FcZoneResponse { return o.Payload } func (o *FcZoneCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.FcZoneResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewFcZoneCollectionGetDefault creates a FcZoneCollectionGetDefault with default headers values func NewFcZoneCollectionGetDefault(code int) *FcZoneCollectionGetDefault { return &FcZoneCollectionGetDefault{ _statusCode: code, } } /* FcZoneCollectionGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 5375053 | The Fibre Channel fabric specified by name in the request URI was not found in the FC fabric cache. | */ type FcZoneCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the fc zone collection get default response func (o *FcZoneCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this fc zone collection get default response has a 2xx status code func (o *FcZoneCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this fc zone collection get default response has a 3xx status code func (o *FcZoneCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this fc zone collection get default response has a 4xx status code func (o *FcZoneCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this fc zone collection get default response has a 5xx status code func (o *FcZoneCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this fc zone collection get default response a status code equal to that given func (o *FcZoneCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *FcZoneCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /network/fc/fabrics/{fabric.name}/zones][%d] fc_zone_collection_get default %+v", o._statusCode, o.Payload) } func (o *FcZoneCollectionGetDefault) String() string { return fmt.Sprintf("[GET /network/fc/fabrics/{fabric.name}/zones][%d] fc_zone_collection_get default %+v", o._statusCode, o.Payload) } func (o *FcZoneCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *FcZoneCollectionGetDefault) 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/networking/fabric_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/fabric_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // FabricCollectionGetReader is a Reader for the FabricCollectionGet structure. type FabricCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *FabricCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewFabricCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewFabricCollectionGetDefault(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 } } // NewFabricCollectionGetOK creates a FabricCollectionGetOK with default headers values func NewFabricCollectionGetOK() *FabricCollectionGetOK { return &FabricCollectionGetOK{} } /* FabricCollectionGetOK describes a response with status code 200, with default header values. OK */ type FabricCollectionGetOK struct { Payload *models.FabricResponse } // IsSuccess returns true when this fabric collection get o k response has a 2xx status code func (o *FabricCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this fabric collection get o k response has a 3xx status code func (o *FabricCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this fabric collection get o k response has a 4xx status code func (o *FabricCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this fabric collection get o k response has a 5xx status code func (o *FabricCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this fabric collection get o k response a status code equal to that given func (o *FabricCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *FabricCollectionGetOK) Error() string { return fmt.Sprintf("[GET /network/fc/fabrics][%d] fabricCollectionGetOK %+v", 200, o.Payload) } func (o *FabricCollectionGetOK) String() string { return fmt.Sprintf("[GET /network/fc/fabrics][%d] fabricCollectionGetOK %+v", 200, o.Payload) } func (o *FabricCollectionGetOK) GetPayload() *models.FabricResponse { return o.Payload } func (o *FabricCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.FabricResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewFabricCollectionGetDefault creates a FabricCollectionGetDefault with default headers values func NewFabricCollectionGetDefault(code int) *FabricCollectionGetDefault { return &FabricCollectionGetDefault{ _statusCode: code, } } /* FabricCollectionGetDefault describes a response with status code -1, with default header values. Error */ type FabricCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the fabric collection get default response func (o *FabricCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this fabric collection get default response has a 2xx status code func (o *FabricCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this fabric collection get default response has a 3xx status code func (o *FabricCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this fabric collection get default response has a 4xx status code func (o *FabricCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this fabric collection get default response has a 5xx status code func (o *FabricCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this fabric collection get default response a status code equal to that given func (o *FabricCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *FabricCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /network/fc/fabrics][%d] fabric_collection_get default %+v", o._statusCode, o.Payload) } func (o *FabricCollectionGetDefault) String() string { return fmt.Sprintf("[GET /network/fc/fabrics][%d] fabric_collection_get default %+v", o._statusCode, o.Payload) } func (o *FabricCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *FabricCollectionGetDefault) 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/networking/ip_subnet_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/ip_subnet_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewIPSubnetCollectionGetParams creates a new IPSubnetCollectionGetParams 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 NewIPSubnetCollectionGetParams() *IPSubnetCollectionGetParams { return &IPSubnetCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewIPSubnetCollectionGetParamsWithTimeout creates a new IPSubnetCollectionGetParams object // with the ability to set a timeout on a request. func NewIPSubnetCollectionGetParamsWithTimeout(timeout time.Duration) *IPSubnetCollectionGetParams { return &IPSubnetCollectionGetParams{ timeout: timeout, } } // NewIPSubnetCollectionGetParamsWithContext creates a new IPSubnetCollectionGetParams object // with the ability to set a context for a request. func NewIPSubnetCollectionGetParamsWithContext(ctx context.Context) *IPSubnetCollectionGetParams { return &IPSubnetCollectionGetParams{ Context: ctx, } } // NewIPSubnetCollectionGetParamsWithHTTPClient creates a new IPSubnetCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewIPSubnetCollectionGetParamsWithHTTPClient(client *http.Client) *IPSubnetCollectionGetParams { return &IPSubnetCollectionGetParams{ HTTPClient: client, } } /* IPSubnetCollectionGetParams contains all the parameters to send to the API endpoint for the ip subnet collection get operation. Typically these are written to a http.Request. */ type IPSubnetCollectionGetParams struct { /* AvailableCount. Filter by available_count */ AvailableCount *int64 /* AvailableIPRangesEnd. Filter by available_ip_ranges.end */ AvailableIPRangesEnd *string /* AvailableIPRangesFamily. Filter by available_ip_ranges.family */ AvailableIPRangesFamily *string /* AvailableIPRangesStart. Filter by available_ip_ranges.start */ AvailableIPRangesStart *string /* BroadcastDomainName. Filter by broadcast_domain.name */ BroadcastDomainName *string /* BroadcastDomainUUID. Filter by broadcast_domain.uuid */ BroadcastDomainUUID *string /* Fields. Specify the fields to return. */ Fields []string /* Gateway. Filter by gateway */ Gateway *string /* IPRangesEnd. Filter by ip_ranges.end */ IPRangesEnd *string /* IPRangesFamily. Filter by ip_ranges.family */ IPRangesFamily *string /* IPRangesStart. Filter by ip_ranges.start */ IPRangesStart *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 /* 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 /* SubnetAddress. Filter by subnet.address */ SubnetAddress *string /* SubnetFamily. Filter by subnet.family */ SubnetFamily *string /* SubnetNetmask. Filter by subnet.netmask */ SubnetNetmask *string /* TotalCount. Filter by total_count */ TotalCount *int64 /* UsedCount. Filter by used_count */ UsedCount *int64 /* UUID. Filter by uuid */ UUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ip subnet collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *IPSubnetCollectionGetParams) WithDefaults() *IPSubnetCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ip subnet collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *IPSubnetCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := IPSubnetCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithTimeout(timeout time.Duration) *IPSubnetCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithContext(ctx context.Context) *IPSubnetCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithHTTPClient(client *http.Client) *IPSubnetCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAvailableCount adds the availableCount to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithAvailableCount(availableCount *int64) *IPSubnetCollectionGetParams { o.SetAvailableCount(availableCount) return o } // SetAvailableCount adds the availableCount to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetAvailableCount(availableCount *int64) { o.AvailableCount = availableCount } // WithAvailableIPRangesEnd adds the availableIPRangesEnd to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithAvailableIPRangesEnd(availableIPRangesEnd *string) *IPSubnetCollectionGetParams { o.SetAvailableIPRangesEnd(availableIPRangesEnd) return o } // SetAvailableIPRangesEnd adds the availableIpRangesEnd to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetAvailableIPRangesEnd(availableIPRangesEnd *string) { o.AvailableIPRangesEnd = availableIPRangesEnd } // WithAvailableIPRangesFamily adds the availableIPRangesFamily to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithAvailableIPRangesFamily(availableIPRangesFamily *string) *IPSubnetCollectionGetParams { o.SetAvailableIPRangesFamily(availableIPRangesFamily) return o } // SetAvailableIPRangesFamily adds the availableIpRangesFamily to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetAvailableIPRangesFamily(availableIPRangesFamily *string) { o.AvailableIPRangesFamily = availableIPRangesFamily } // WithAvailableIPRangesStart adds the availableIPRangesStart to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithAvailableIPRangesStart(availableIPRangesStart *string) *IPSubnetCollectionGetParams { o.SetAvailableIPRangesStart(availableIPRangesStart) return o } // SetAvailableIPRangesStart adds the availableIpRangesStart to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetAvailableIPRangesStart(availableIPRangesStart *string) { o.AvailableIPRangesStart = availableIPRangesStart } // WithBroadcastDomainName adds the broadcastDomainName to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithBroadcastDomainName(broadcastDomainName *string) *IPSubnetCollectionGetParams { o.SetBroadcastDomainName(broadcastDomainName) return o } // SetBroadcastDomainName adds the broadcastDomainName to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetBroadcastDomainName(broadcastDomainName *string) { o.BroadcastDomainName = broadcastDomainName } // WithBroadcastDomainUUID adds the broadcastDomainUUID to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithBroadcastDomainUUID(broadcastDomainUUID *string) *IPSubnetCollectionGetParams { o.SetBroadcastDomainUUID(broadcastDomainUUID) return o } // SetBroadcastDomainUUID adds the broadcastDomainUuid to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetBroadcastDomainUUID(broadcastDomainUUID *string) { o.BroadcastDomainUUID = broadcastDomainUUID } // WithFields adds the fields to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithFields(fields []string) *IPSubnetCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithGateway adds the gateway to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithGateway(gateway *string) *IPSubnetCollectionGetParams { o.SetGateway(gateway) return o } // SetGateway adds the gateway to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetGateway(gateway *string) { o.Gateway = gateway } // WithIPRangesEnd adds the iPRangesEnd to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithIPRangesEnd(iPRangesEnd *string) *IPSubnetCollectionGetParams { o.SetIPRangesEnd(iPRangesEnd) return o } // SetIPRangesEnd adds the ipRangesEnd to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetIPRangesEnd(iPRangesEnd *string) { o.IPRangesEnd = iPRangesEnd } // WithIPRangesFamily adds the iPRangesFamily to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithIPRangesFamily(iPRangesFamily *string) *IPSubnetCollectionGetParams { o.SetIPRangesFamily(iPRangesFamily) return o } // SetIPRangesFamily adds the ipRangesFamily to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetIPRangesFamily(iPRangesFamily *string) { o.IPRangesFamily = iPRangesFamily } // WithIPRangesStart adds the iPRangesStart to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithIPRangesStart(iPRangesStart *string) *IPSubnetCollectionGetParams { o.SetIPRangesStart(iPRangesStart) return o } // SetIPRangesStart adds the ipRangesStart to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetIPRangesStart(iPRangesStart *string) { o.IPRangesStart = iPRangesStart } // WithIpspaceName adds the ipspaceName to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithIpspaceName(ipspaceName *string) *IPSubnetCollectionGetParams { o.SetIpspaceName(ipspaceName) return o } // SetIpspaceName adds the ipspaceName to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetIpspaceName(ipspaceName *string) { o.IpspaceName = ipspaceName } // WithIpspaceUUID adds the ipspaceUUID to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithIpspaceUUID(ipspaceUUID *string) *IPSubnetCollectionGetParams { o.SetIpspaceUUID(ipspaceUUID) return o } // SetIpspaceUUID adds the ipspaceUuid to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetIpspaceUUID(ipspaceUUID *string) { o.IpspaceUUID = ipspaceUUID } // WithMaxRecords adds the maxRecords to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithMaxRecords(maxRecords *int64) *IPSubnetCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithName adds the name to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithName(name *string) *IPSubnetCollectionGetParams { o.SetName(name) return o } // SetName adds the name to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetName(name *string) { o.Name = name } // WithOrderBy adds the orderBy to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithOrderBy(orderBy []string) *IPSubnetCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithReturnRecords(returnRecords *bool) *IPSubnetCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *IPSubnetCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithSubnetAddress adds the subnetAddress to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithSubnetAddress(subnetAddress *string) *IPSubnetCollectionGetParams { o.SetSubnetAddress(subnetAddress) return o } // SetSubnetAddress adds the subnetAddress to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetSubnetAddress(subnetAddress *string) { o.SubnetAddress = subnetAddress } // WithSubnetFamily adds the subnetFamily to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithSubnetFamily(subnetFamily *string) *IPSubnetCollectionGetParams { o.SetSubnetFamily(subnetFamily) return o } // SetSubnetFamily adds the subnetFamily to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetSubnetFamily(subnetFamily *string) { o.SubnetFamily = subnetFamily } // WithSubnetNetmask adds the subnetNetmask to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithSubnetNetmask(subnetNetmask *string) *IPSubnetCollectionGetParams { o.SetSubnetNetmask(subnetNetmask) return o } // SetSubnetNetmask adds the subnetNetmask to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetSubnetNetmask(subnetNetmask *string) { o.SubnetNetmask = subnetNetmask } // WithTotalCount adds the totalCount to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithTotalCount(totalCount *int64) *IPSubnetCollectionGetParams { o.SetTotalCount(totalCount) return o } // SetTotalCount adds the totalCount to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetTotalCount(totalCount *int64) { o.TotalCount = totalCount } // WithUsedCount adds the usedCount to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithUsedCount(usedCount *int64) *IPSubnetCollectionGetParams { o.SetUsedCount(usedCount) return o } // SetUsedCount adds the usedCount to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetUsedCount(usedCount *int64) { o.UsedCount = usedCount } // WithUUID adds the uuid to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) WithUUID(uuid *string) *IPSubnetCollectionGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the ip subnet collection get params func (o *IPSubnetCollectionGetParams) SetUUID(uuid *string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *IPSubnetCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.AvailableCount != nil { // query param available_count var qrAvailableCount int64 if o.AvailableCount != nil { qrAvailableCount = *o.AvailableCount } qAvailableCount := swag.FormatInt64(qrAvailableCount) if qAvailableCount != "" { if err := r.SetQueryParam("available_count", qAvailableCount); err != nil { return err } } } if o.AvailableIPRangesEnd != nil { // query param available_ip_ranges.end var qrAvailableIPRangesEnd string if o.AvailableIPRangesEnd != nil { qrAvailableIPRangesEnd = *o.AvailableIPRangesEnd } qAvailableIPRangesEnd := qrAvailableIPRangesEnd if qAvailableIPRangesEnd != "" { if err := r.SetQueryParam("available_ip_ranges.end", qAvailableIPRangesEnd); err != nil { return err } } } if o.AvailableIPRangesFamily != nil { // query param available_ip_ranges.family var qrAvailableIPRangesFamily string if o.AvailableIPRangesFamily != nil { qrAvailableIPRangesFamily = *o.AvailableIPRangesFamily } qAvailableIPRangesFamily := qrAvailableIPRangesFamily if qAvailableIPRangesFamily != "" { if err := r.SetQueryParam("available_ip_ranges.family", qAvailableIPRangesFamily); err != nil { return err } } } if o.AvailableIPRangesStart != nil { // query param available_ip_ranges.start var qrAvailableIPRangesStart string if o.AvailableIPRangesStart != nil { qrAvailableIPRangesStart = *o.AvailableIPRangesStart } qAvailableIPRangesStart := qrAvailableIPRangesStart if qAvailableIPRangesStart != "" { if err := r.SetQueryParam("available_ip_ranges.start", qAvailableIPRangesStart); err != nil { return err } } } if o.BroadcastDomainName != nil { // query param broadcast_domain.name var qrBroadcastDomainName string if o.BroadcastDomainName != nil { qrBroadcastDomainName = *o.BroadcastDomainName } qBroadcastDomainName := qrBroadcastDomainName if qBroadcastDomainName != "" { if err := r.SetQueryParam("broadcast_domain.name", qBroadcastDomainName); err != nil { return err } } } if o.BroadcastDomainUUID != nil { // query param broadcast_domain.uuid var qrBroadcastDomainUUID string if o.BroadcastDomainUUID != nil { qrBroadcastDomainUUID = *o.BroadcastDomainUUID } qBroadcastDomainUUID := qrBroadcastDomainUUID if qBroadcastDomainUUID != "" { if err := r.SetQueryParam("broadcast_domain.uuid", qBroadcastDomainUUID); 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.Gateway != nil { // query param gateway var qrGateway string if o.Gateway != nil { qrGateway = *o.Gateway } qGateway := qrGateway if qGateway != "" { if err := r.SetQueryParam("gateway", qGateway); err != nil { return err } } } if o.IPRangesEnd != nil { // query param ip_ranges.end var qrIPRangesEnd string if o.IPRangesEnd != nil { qrIPRangesEnd = *o.IPRangesEnd } qIPRangesEnd := qrIPRangesEnd if qIPRangesEnd != "" { if err := r.SetQueryParam("ip_ranges.end", qIPRangesEnd); err != nil { return err } } } if o.IPRangesFamily != nil { // query param ip_ranges.family var qrIPRangesFamily string if o.IPRangesFamily != nil { qrIPRangesFamily = *o.IPRangesFamily } qIPRangesFamily := qrIPRangesFamily if qIPRangesFamily != "" { if err := r.SetQueryParam("ip_ranges.family", qIPRangesFamily); err != nil { return err } } } if o.IPRangesStart != nil { // query param ip_ranges.start var qrIPRangesStart string if o.IPRangesStart != nil { qrIPRangesStart = *o.IPRangesStart } qIPRangesStart := qrIPRangesStart if qIPRangesStart != "" { if err := r.SetQueryParam("ip_ranges.start", qIPRangesStart); 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.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.SubnetAddress != nil { // query param subnet.address var qrSubnetAddress string if o.SubnetAddress != nil { qrSubnetAddress = *o.SubnetAddress } qSubnetAddress := qrSubnetAddress if qSubnetAddress != "" { if err := r.SetQueryParam("subnet.address", qSubnetAddress); err != nil { return err } } } if o.SubnetFamily != nil { // query param subnet.family var qrSubnetFamily string if o.SubnetFamily != nil { qrSubnetFamily = *o.SubnetFamily } qSubnetFamily := qrSubnetFamily if qSubnetFamily != "" { if err := r.SetQueryParam("subnet.family", qSubnetFamily); err != nil { return err } } } if o.SubnetNetmask != nil { // query param subnet.netmask var qrSubnetNetmask string if o.SubnetNetmask != nil { qrSubnetNetmask = *o.SubnetNetmask } qSubnetNetmask := qrSubnetNetmask if qSubnetNetmask != "" { if err := r.SetQueryParam("subnet.netmask", qSubnetNetmask); err != nil { return err } } } if o.TotalCount != nil { // query param total_count var qrTotalCount int64 if o.TotalCount != nil { qrTotalCount = *o.TotalCount } qTotalCount := swag.FormatInt64(qrTotalCount) if qTotalCount != "" { if err := r.SetQueryParam("total_count", qTotalCount); err != nil { return err } } } if o.UsedCount != nil { // query param used_count var qrUsedCount int64 if o.UsedCount != nil { qrUsedCount = *o.UsedCount } qUsedCount := swag.FormatInt64(qrUsedCount) if qUsedCount != "" { if err := r.SetQueryParam("used_count", qUsedCount); 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 } // bindParamIPSubnetCollectionGet binds the parameter fields func (o *IPSubnetCollectionGetParams) 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 } // bindParamIPSubnetCollectionGet binds the parameter order_by func (o *IPSubnetCollectionGetParams) 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/networking/ipspace_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/ipspace_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" ) // IpspaceDeleteReader is a Reader for the IpspaceDelete structure. type IpspaceDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *IpspaceDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewIpspaceDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) } } // NewIpspaceDeleteOK creates a IpspaceDeleteOK with default headers values func NewIpspaceDeleteOK() *IpspaceDeleteOK { return &IpspaceDeleteOK{} } /* IpspaceDeleteOK describes a response with status code 200, with default header values. OK */ type IpspaceDeleteOK struct { } // IsSuccess returns true when this ipspace delete o k response has a 2xx status code func (o *IpspaceDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this ipspace delete o k response has a 3xx status code func (o *IpspaceDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this ipspace delete o k response has a 4xx status code func (o *IpspaceDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this ipspace delete o k response has a 5xx status code func (o *IpspaceDeleteOK) IsServerError() bool { return false } // IsCode returns true when this ipspace delete o k response a status code equal to that given func (o *IpspaceDeleteOK) IsCode(code int) bool { return code == 200 } func (o *IpspaceDeleteOK) Error() string { return fmt.Sprintf("[DELETE /network/ipspaces/{uuid}][%d] ipspaceDeleteOK ", 200) } func (o *IpspaceDeleteOK) String() string { return fmt.Sprintf("[DELETE /network/ipspaces/{uuid}][%d] ipspaceDeleteOK ", 200) } func (o *IpspaceDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/ipspace_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/ipspace_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // IpspaceGetReader is a Reader for the IpspaceGet structure. type IpspaceGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *IpspaceGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewIpspaceGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewIpspaceGetDefault(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 } } // NewIpspaceGetOK creates a IpspaceGetOK with default headers values func NewIpspaceGetOK() *IpspaceGetOK { return &IpspaceGetOK{} } /* IpspaceGetOK describes a response with status code 200, with default header values. OK */ type IpspaceGetOK struct { Payload *models.Ipspace } // IsSuccess returns true when this ipspace get o k response has a 2xx status code func (o *IpspaceGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this ipspace get o k response has a 3xx status code func (o *IpspaceGetOK) IsRedirect() bool { return false } // IsClientError returns true when this ipspace get o k response has a 4xx status code func (o *IpspaceGetOK) IsClientError() bool { return false } // IsServerError returns true when this ipspace get o k response has a 5xx status code func (o *IpspaceGetOK) IsServerError() bool { return false } // IsCode returns true when this ipspace get o k response a status code equal to that given func (o *IpspaceGetOK) IsCode(code int) bool { return code == 200 } func (o *IpspaceGetOK) Error() string { return fmt.Sprintf("[GET /network/ipspaces/{uuid}][%d] ipspaceGetOK %+v", 200, o.Payload) } func (o *IpspaceGetOK) String() string { return fmt.Sprintf("[GET /network/ipspaces/{uuid}][%d] ipspaceGetOK %+v", 200, o.Payload) } func (o *IpspaceGetOK) GetPayload() *models.Ipspace { return o.Payload } func (o *IpspaceGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.Ipspace) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewIpspaceGetDefault creates a IpspaceGetDefault with default headers values func NewIpspaceGetDefault(code int) *IpspaceGetDefault { return &IpspaceGetDefault{ _statusCode: code, } } /* IpspaceGetDefault describes a response with status code -1, with default header values. Error */ type IpspaceGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ipspace get default response func (o *IpspaceGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ipspace get default response has a 2xx status code func (o *IpspaceGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ipspace get default response has a 3xx status code func (o *IpspaceGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ipspace get default response has a 4xx status code func (o *IpspaceGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ipspace get default response has a 5xx status code func (o *IpspaceGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ipspace get default response a status code equal to that given func (o *IpspaceGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *IpspaceGetDefault) Error() string { return fmt.Sprintf("[GET /network/ipspaces/{uuid}][%d] ipspace_get default %+v", o._statusCode, o.Payload) } func (o *IpspaceGetDefault) String() string { return fmt.Sprintf("[GET /network/ipspaces/{uuid}][%d] ipspace_get default %+v", o._statusCode, o.Payload) } func (o *IpspaceGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *IpspaceGetDefault) 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/networking/ip_subnet_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/ip_subnet_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewIPSubnetCreateParams creates a new IPSubnetCreateParams 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 NewIPSubnetCreateParams() *IPSubnetCreateParams { return &IPSubnetCreateParams{ timeout: cr.DefaultTimeout, } } // NewIPSubnetCreateParamsWithTimeout creates a new IPSubnetCreateParams object // with the ability to set a timeout on a request. func NewIPSubnetCreateParamsWithTimeout(timeout time.Duration) *IPSubnetCreateParams { return &IPSubnetCreateParams{ timeout: timeout, } } // NewIPSubnetCreateParamsWithContext creates a new IPSubnetCreateParams object // with the ability to set a context for a request. func NewIPSubnetCreateParamsWithContext(ctx context.Context) *IPSubnetCreateParams { return &IPSubnetCreateParams{ Context: ctx, } } // NewIPSubnetCreateParamsWithHTTPClient creates a new IPSubnetCreateParams object // with the ability to set a custom HTTPClient for a request. func NewIPSubnetCreateParamsWithHTTPClient(client *http.Client) *IPSubnetCreateParams { return &IPSubnetCreateParams{ HTTPClient: client, } } /* IPSubnetCreateParams contains all the parameters to send to the API endpoint for the ip subnet create operation. Typically these are written to a http.Request. */ type IPSubnetCreateParams struct { /* Info. IP subnet parameters */ Info *models.IPSubnet /* 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 ip subnet create params (not the query body). // // All values with no default are reset to their zero value. func (o *IPSubnetCreateParams) WithDefaults() *IPSubnetCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ip subnet create params (not the query body). // // All values with no default are reset to their zero value. func (o *IPSubnetCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) ) val := IPSubnetCreateParams{ ReturnRecords: &returnRecordsDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the ip subnet create params func (o *IPSubnetCreateParams) WithTimeout(timeout time.Duration) *IPSubnetCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ip subnet create params func (o *IPSubnetCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ip subnet create params func (o *IPSubnetCreateParams) WithContext(ctx context.Context) *IPSubnetCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the ip subnet create params func (o *IPSubnetCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ip subnet create params func (o *IPSubnetCreateParams) WithHTTPClient(client *http.Client) *IPSubnetCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ip subnet create params func (o *IPSubnetCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the ip subnet create params func (o *IPSubnetCreateParams) WithInfo(info *models.IPSubnet) *IPSubnetCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the ip subnet create params func (o *IPSubnetCreateParams) SetInfo(info *models.IPSubnet) { o.Info = info } // WithReturnRecords adds the returnRecords to the ip subnet create params func (o *IPSubnetCreateParams) WithReturnRecords(returnRecords *bool) *IPSubnetCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the ip subnet create params func (o *IPSubnetCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WriteToRequest writes these params to a swagger request func (o *IPSubnetCreateParams) 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/networking/network_ip_interface_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ip_interface_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" ) // NetworkIPInterfaceModifyReader is a Reader for the NetworkIPInterfaceModify structure. type NetworkIPInterfaceModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NetworkIPInterfaceModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNetworkIPInterfaceModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNetworkIPInterfaceModifyDefault(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 } } // NewNetworkIPInterfaceModifyOK creates a NetworkIPInterfaceModifyOK with default headers values func NewNetworkIPInterfaceModifyOK() *NetworkIPInterfaceModifyOK { return &NetworkIPInterfaceModifyOK{} } /* NetworkIPInterfaceModifyOK describes a response with status code 200, with default header values. OK */ type NetworkIPInterfaceModifyOK struct { } // IsSuccess returns true when this network Ip interface modify o k response has a 2xx status code func (o *NetworkIPInterfaceModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this network Ip interface modify o k response has a 3xx status code func (o *NetworkIPInterfaceModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this network Ip interface modify o k response has a 4xx status code func (o *NetworkIPInterfaceModifyOK) IsClientError() bool { return false } // IsServerError returns true when this network Ip interface modify o k response has a 5xx status code func (o *NetworkIPInterfaceModifyOK) IsServerError() bool { return false } // IsCode returns true when this network Ip interface modify o k response a status code equal to that given func (o *NetworkIPInterfaceModifyOK) IsCode(code int) bool { return code == 200 } func (o *NetworkIPInterfaceModifyOK) Error() string { return fmt.Sprintf("[PATCH /network/ip/interfaces/{uuid}][%d] networkIpInterfaceModifyOK ", 200) } func (o *NetworkIPInterfaceModifyOK) String() string { return fmt.Sprintf("[PATCH /network/ip/interfaces/{uuid}][%d] networkIpInterfaceModifyOK ", 200) } func (o *NetworkIPInterfaceModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewNetworkIPInterfaceModifyDefault creates a NetworkIPInterfaceModifyDefault with default headers values func NewNetworkIPInterfaceModifyDefault(code int) *NetworkIPInterfaceModifyDefault { return &NetworkIPInterfaceModifyDefault{ _statusCode: code, } } /* NetworkIPInterfaceModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 1376663 | Cannot add interface to DNS zone because all interfaces from a single DNS zone must be in the same SVM. | | 1376963 | Duplicate IP address. | | 1376976 | The specified port is not capable of hosting this LIF. | | 1376997 | Interface failed to migrate because the node hosting the port is not healthy. | | 1376998 | The specified location.node does not own any ports in the same broadcast domain as the home port of the interface. | | 1376999 | Interface failed to migrate because port is in the down admin state. | | 1377607 | The specified location.port is not in the same broadcast domain as the home port of the interface. | | 1966138 | The same IP address may not be used for both a mgmt interface and a gateway address. | | 1966141 | Invalid DNS zone name. | | 1966142 | Only data LIFs can be assigned a DNS zone. | | 1966197 | Migration of cluster interfaces must be done from the local node. | | 1966267 | IPv6 addresses must have a prefix length between 1 and 127. | | 1966269 | IPv4 addresses must have a prefix length between 1 and 32. | | 1966476 | DNS Update is supported only on data interfaces. | | 1966477 | DNS Update is supported only on interfaces configured with the NFS or CIFS protocol. | | 1967106 | The specified location.home_port.name does not match the specified port name of location.home_port.uuid. | | 1967107 | The specified location.home_port.uuid is not valid. | | 1967111 | A home node must be specified by at least one location.home_node, location.home_port, or location.broadcast_domain field. | | 1967113 | The specified location.port.name does not match the port name of location.port.uuid. | | 1967114 | The specified location.port.uuid is not valid. | | 1967115 | The specified location.node.name does not match the node name of location.node.uuid. | | 1967116 | The specified location.port.node.name does not match the node name of location.node.uuid. | | 1967117 | The specified location.port.node.name does not match location.node.name. | | 1967118 | A node must be specified by at least one location.node or location.port field. | | 1967119 | The specified location.node.name does not match the node name of location.port.uuid. | | 1967120 | The specified service_policy.name does not match the specified service policy name of service_policy.uuid. | | 1967121 | The specified service_policy.uuid is not valid. | | 1967125 | You cannot patch the "location.node" or "location.port" fields to migrate interfaces using the iSCSI data protocol. Instead perform the following PATCH operations on the interface: set the "enabled" field to "false"; change one or more "location.home_port" fields to migrate the interface; and then set the "enabled" field to "true". | | 1967129 | The specified location.home_port.uuid is not valid. | | 1967130 | The specified location.home_port.name is not valid. | | 1967131 | The specified location.home_port.uuid and location.home_port.name are not valid. | | 1967132 | The specified location.port.uuid is not valid. | | 1967133 | The specified location.port.name is not valid. | | 1967134 | The specified location.port.uuid and location.port.name are not valid. | | 1967138 | Cannot patch port for a VIP interface. The specified parameter location.port.uuid is not valid. | | 1967139 | Cannot patch port for a VIP interface. The specified parameter location.port.name is not valid. | | 1967140 | Cannot patch port for a VIP interface. The specified parameters location.port.uuid and location.port.name are not valid. | | 1967141 | Cannot patch home_port for a VIP interface. The specified parameter location.home_port.uuid is not valid. | | 1967142 | Cannot patch home_port for a VIP interface. The specified parameter location.home_port.name is not valid. | | 1967143 | Cannot patch home_port for a VIP interface. The specified parameters location.home_port.uuid and location.home_port.name are not valid. | | 1967145 | The specified location.failover is not valid. | | 1967153 | No suitable port exists on location.home_node to host the interface. | | 1967380 | Cannot patch home_port for a VIP interface. The specified parameter location.home_port.node.name is not valid. Consider using location.home_node.name instead. | | 1967386 | Cannot patch port for a VIP interface. The specified parameter location.port.node.name is not valid. Consider using location.node.name instead. | | 1967387 | The specified IP address is in use by a subnet in this IPspace. | | 1967389 | Patching location.is_home to the value "false" is not supported. The value "true" would revert a network interface to its home port if the current value is "false". | | 1967390 | Cannot patch a LIF revert as it requires an effective cluster version of 9.9.1 or later. | | 1967391 | Patching the DNS zone requires an effective cluster version of 9.9.1 or later. | | 1967392 | Patching the DDNS enable parameter requires an effective cluster version of 9.9.1 or later. | | 1967396 | The specified subnet.name does not match the subnet name of subnet.uuid. | | 1967397 | The specified subnet.uuid does not match any configured subnet."; | | 1967398 | Address must be specified by either ip.address and ip.netmask, or at least one subnet field, not both."; | | 53281018 | Failover policy is not compatible with one or more services in service policy | | 53281065 | The service_policy does not exist in the SVM. | | 53281086 | LIF would exceed the maximum number of supported intercluster LIFs in IPspace. | | 53281089 | LIF on SVM cannot be updated to use service policy because that service policy includes SAN services and the target LIF is not home. | | 53281106 | Failed checking the cluster capabilities. | */ type NetworkIPInterfaceModifyDefault struct { _statusCode int } // Code gets the status code for the network ip interface modify default response func (o *NetworkIPInterfaceModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this network ip interface modify default response has a 2xx status code func (o *NetworkIPInterfaceModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this network ip interface modify default response has a 3xx status code func (o *NetworkIPInterfaceModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this network ip interface modify default response has a 4xx status code func (o *NetworkIPInterfaceModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this network ip interface modify default response has a 5xx status code func (o *NetworkIPInterfaceModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this network ip interface modify default response a status code equal to that given func (o *NetworkIPInterfaceModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NetworkIPInterfaceModifyDefault) Error() string { return fmt.Sprintf("[PATCH /network/ip/interfaces/{uuid}][%d] network_ip_interface_modify default ", o._statusCode) } func (o *NetworkIPInterfaceModifyDefault) String() string { return fmt.Sprintf("[PATCH /network/ip/interfaces/{uuid}][%d] network_ip_interface_modify default ", o._statusCode) } func (o *NetworkIPInterfaceModifyDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/fc_port_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/fc_port_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // FcPortGetReader is a Reader for the FcPortGet structure. type FcPortGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *FcPortGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewFcPortGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewFcPortGetDefault(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 } } // NewFcPortGetOK creates a FcPortGetOK with default headers values func NewFcPortGetOK() *FcPortGetOK { return &FcPortGetOK{} } /* FcPortGetOK describes a response with status code 200, with default header values. OK */ type FcPortGetOK struct { Payload *models.FcPort } // IsSuccess returns true when this fc port get o k response has a 2xx status code func (o *FcPortGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this fc port get o k response has a 3xx status code func (o *FcPortGetOK) IsRedirect() bool { return false } // IsClientError returns true when this fc port get o k response has a 4xx status code func (o *FcPortGetOK) IsClientError() bool { return false } // IsServerError returns true when this fc port get o k response has a 5xx status code func (o *FcPortGetOK) IsServerError() bool { return false } // IsCode returns true when this fc port get o k response a status code equal to that given func (o *FcPortGetOK) IsCode(code int) bool { return code == 200 } func (o *FcPortGetOK) Error() string { return fmt.Sprintf("[GET /network/fc/ports/{uuid}][%d] fcPortGetOK %+v", 200, o.Payload) } func (o *FcPortGetOK) String() string { return fmt.Sprintf("[GET /network/fc/ports/{uuid}][%d] fcPortGetOK %+v", 200, o.Payload) } func (o *FcPortGetOK) GetPayload() *models.FcPort { return o.Payload } func (o *FcPortGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.FcPort) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewFcPortGetDefault creates a FcPortGetDefault with default headers values func NewFcPortGetDefault(code int) *FcPortGetDefault { return &FcPortGetDefault{ _statusCode: code, } } /* FcPortGetDefault describes a response with status code -1, with default header values. Error */ type FcPortGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the fc port get default response func (o *FcPortGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this fc port get default response has a 2xx status code func (o *FcPortGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this fc port get default response has a 3xx status code func (o *FcPortGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this fc port get default response has a 4xx status code func (o *FcPortGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this fc port get default response has a 5xx status code func (o *FcPortGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this fc port get default response a status code equal to that given func (o *FcPortGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *FcPortGetDefault) Error() string { return fmt.Sprintf("[GET /network/fc/ports/{uuid}][%d] fc_port_get default %+v", o._statusCode, o.Payload) } func (o *FcPortGetDefault) String() string { return fmt.Sprintf("[GET /network/fc/ports/{uuid}][%d] fc_port_get default %+v", o._statusCode, o.Payload) } func (o *FcPortGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *FcPortGetDefault) 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/networking/networking_client.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/networking_client.go
// Code generated by go-swagger; DO NOT EDIT. package networking // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" ) // New creates a new networking API client. func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { return &Client{transport: transport, formats: formats} } /* Client for networking 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 { FabricCollectionGet(params *FabricCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FabricCollectionGetOK, error) FabricGet(params *FabricGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FabricGetOK, error) FcInterfaceCollectionGet(params *FcInterfaceCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcInterfaceCollectionGetOK, error) FcInterfaceCreate(params *FcInterfaceCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcInterfaceCreateCreated, error) FcInterfaceDelete(params *FcInterfaceDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcInterfaceDeleteOK, error) FcInterfaceGet(params *FcInterfaceGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcInterfaceGetOK, error) FcInterfaceModify(params *FcInterfaceModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcInterfaceModifyOK, error) FcPortCollectionGet(params *FcPortCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcPortCollectionGetOK, error) FcPortGet(params *FcPortGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcPortGetOK, error) FcPortModify(params *FcPortModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcPortModifyOK, error) FcSwitchCollectionGet(params *FcSwitchCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcSwitchCollectionGetOK, error) FcSwitchGet(params *FcSwitchGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcSwitchGetOK, error) FcZoneCollectionGet(params *FcZoneCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcZoneCollectionGetOK, error) FcZoneGet(params *FcZoneGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcZoneGetOK, error) HTTPProxyCollectionGet(params *HTTPProxyCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*HTTPProxyCollectionGetOK, error) HTTPProxyCreate(params *HTTPProxyCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*HTTPProxyCreateCreated, error) HTTPProxyDelete(params *HTTPProxyDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*HTTPProxyDeleteOK, error) HTTPProxyGet(params *HTTPProxyGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*HTTPProxyGetOK, error) HTTPProxyModify(params *HTTPProxyModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*HTTPProxyModifyOK, error) InterfacesMetricsCollectionGet(params *InterfacesMetricsCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InterfacesMetricsCollectionGetOK, error) IPServicePolicyCreate(params *IPServicePolicyCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IPServicePolicyCreateOK, error) IPServicePolicyDelete(params *IPServicePolicyDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IPServicePolicyDeleteOK, error) IPServicePolicyModify(params *IPServicePolicyModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IPServicePolicyModifyOK, error) IPSubnetCollectionGet(params *IPSubnetCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IPSubnetCollectionGetOK, error) IPSubnetCreate(params *IPSubnetCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IPSubnetCreateCreated, error) IPSubnetDelete(params *IPSubnetDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IPSubnetDeleteOK, error) IPSubnetGet(params *IPSubnetGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IPSubnetGetOK, error) IPSubnetModify(params *IPSubnetModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IPSubnetModifyOK, error) IpspaceDelete(params *IpspaceDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpspaceDeleteOK, error) IpspaceGet(params *IpspaceGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpspaceGetOK, error) IpspaceModify(params *IpspaceModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpspaceModifyOK, error) IpspacesCreate(params *IpspacesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpspacesCreateCreated, error) IpspacesGet(params *IpspacesGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpspacesGetOK, error) NetworkEthernetBroadcastDomainDelete(params *NetworkEthernetBroadcastDomainDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkEthernetBroadcastDomainDeleteOK, error) NetworkEthernetBroadcastDomainGet(params *NetworkEthernetBroadcastDomainGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkEthernetBroadcastDomainGetOK, error) NetworkEthernetBroadcastDomainModify(params *NetworkEthernetBroadcastDomainModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkEthernetBroadcastDomainModifyOK, error) NetworkEthernetBroadcastDomainsCreate(params *NetworkEthernetBroadcastDomainsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkEthernetBroadcastDomainsCreateCreated, error) NetworkEthernetBroadcastDomainsGet(params *NetworkEthernetBroadcastDomainsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkEthernetBroadcastDomainsGetOK, error) NetworkEthernetPortDelete(params *NetworkEthernetPortDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkEthernetPortDeleteOK, error) NetworkEthernetPortGet(params *NetworkEthernetPortGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkEthernetPortGetOK, error) NetworkEthernetPortModify(params *NetworkEthernetPortModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkEthernetPortModifyOK, error) NetworkEthernetPortsCreate(params *NetworkEthernetPortsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkEthernetPortsCreateCreated, error) NetworkEthernetPortsGet(params *NetworkEthernetPortsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkEthernetPortsGetOK, error) NetworkIPBgpPeerGroupDelete(params *NetworkIPBgpPeerGroupDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkIPBgpPeerGroupDeleteOK, error) NetworkIPBgpPeerGroupGet(params *NetworkIPBgpPeerGroupGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkIPBgpPeerGroupGetOK, error) NetworkIPBgpPeerGroupModify(params *NetworkIPBgpPeerGroupModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkIPBgpPeerGroupModifyOK, error) NetworkIPBgpPeerGroupsCreate(params *NetworkIPBgpPeerGroupsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkIPBgpPeerGroupsCreateCreated, error) NetworkIPBgpPeerGroupsGet(params *NetworkIPBgpPeerGroupsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkIPBgpPeerGroupsGetOK, error) NetworkIPInterfaceDelete(params *NetworkIPInterfaceDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkIPInterfaceDeleteOK, error) NetworkIPInterfaceGet(params *NetworkIPInterfaceGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkIPInterfaceGetOK, error) NetworkIPInterfaceModify(params *NetworkIPInterfaceModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkIPInterfaceModifyOK, error) NetworkIPInterfacesCreate(params *NetworkIPInterfacesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkIPInterfacesCreateCreated, error) NetworkIPInterfacesGet(params *NetworkIPInterfacesGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkIPInterfacesGetOK, error) NetworkIPRouteDelete(params *NetworkIPRouteDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkIPRouteDeleteOK, error) NetworkIPRouteGet(params *NetworkIPRouteGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkIPRouteGetOK, error) NetworkIPRoutesCreate(params *NetworkIPRoutesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkIPRoutesCreateCreated, error) NetworkIPRoutesGet(params *NetworkIPRoutesGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkIPRoutesGetOK, error) NetworkIPServicePoliciesGet(params *NetworkIPServicePoliciesGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkIPServicePoliciesGetOK, error) NetworkIPServicePolicyGet(params *NetworkIPServicePolicyGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NetworkIPServicePolicyGetOK, error) PerformanceFcInterfaceMetricCollectionGet(params *PerformanceFcInterfaceMetricCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PerformanceFcInterfaceMetricCollectionGetOK, error) PerformanceFcPortMetricCollectionGet(params *PerformanceFcPortMetricCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PerformanceFcPortMetricCollectionGetOK, error) PortMetricsCollectionGet(params *PortMetricsCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PortMetricsCollectionGetOK, error) SwitchCollectionGet(params *SwitchCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SwitchCollectionGetOK, error) SwitchCreate(params *SwitchCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SwitchCreateAccepted, error) SwitchDelete(params *SwitchDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SwitchDeleteOK, error) SwitchGet(params *SwitchGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SwitchGetOK, error) SwitchModify(params *SwitchModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SwitchModifyAccepted, error) SwitchPortCollectionGet(params *SwitchPortCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SwitchPortCollectionGetOK, error) SwitchPortGet(params *SwitchPortGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SwitchPortGetOK, error) SetTransport(transport runtime.ClientTransport) } /* FabricCollectionGet Retrieves Fibre Channel fabrics. ### Expensive properties There is an added computational cost to retrieving values for these properties. They are not included by default in GET results and must be explicitly requested using the `fields` query parameter. See [`Requesting specific fields`](#Requesting_specific_fields) to learn more. * `connections` * `zoneset` ### Related ONTAP commands * `network fcp topology show` * `network fcp zone show` ### Learn more * [`DOC /network/fc/fabrics`](#docs-networking-network_fc_fabrics) */ func (a *Client) FabricCollectionGet(params *FabricCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FabricCollectionGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewFabricCollectionGetParams() } op := &runtime.ClientOperation{ ID: "fabric_collection_get", Method: "GET", PathPattern: "/network/fc/fabrics", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &FabricCollectionGetReader{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.(*FabricCollectionGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*FabricCollectionGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* FabricGet Retrieves a Fibre Channel fabric. ### Expensive properties There is an added computational cost to retrieving values for these properties. They are not included by default in GET results and must be explicitly requested using the `fields` query parameter. See [`Requesting specific fields`](#Requesting_specific_fields) to learn more. * `connections` * `zoneset` ### Related ONTAP commands * `network fcp topology show` * `network fcp zone show` ### Learn more * [`DOC /network/fc/fabrics`](#docs-networking-network_fc_fabrics) */ func (a *Client) FabricGet(params *FabricGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FabricGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewFabricGetParams() } op := &runtime.ClientOperation{ ID: "fabric_get", Method: "GET", PathPattern: "/network/fc/fabrics/{name}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &FabricGetReader{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.(*FabricGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*FabricGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* FcInterfaceCollectionGet Retrieves FC interfaces. ### Related ONTAP commands * `network interface show` * `vserver fcp interface show` ### Learn more * [`DOC /network/fc/interfaces`](#docs-networking-network_fc_interfaces) */ func (a *Client) FcInterfaceCollectionGet(params *FcInterfaceCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcInterfaceCollectionGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewFcInterfaceCollectionGetParams() } op := &runtime.ClientOperation{ ID: "fc_interface_collection_get", Method: "GET", PathPattern: "/network/fc/interfaces", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &FcInterfaceCollectionGetReader{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.(*FcInterfaceCollectionGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*FcInterfaceCollectionGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* FcInterfaceCreate Creates an FC interface. ### Required properties * `svm.uuid` or `svm.name` - Existing SVM in which to create the FC interface. * `name` - Name of the FC interface. * `location.port.uuid` or both `location.port.name` and `location.port.node.name` - FC port on which to create the FC interface. * `data_protocol` - Data protocol for the FC interface. ### Default property values If not specified in POST, the following default property values are assigned. * `enabled` - _true_ ### Related ONTAP commands * `network interface create` ### Learn more * [`DOC /network/fc/interfaces`](#docs-networking-network_fc_interfaces) */ func (a *Client) FcInterfaceCreate(params *FcInterfaceCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcInterfaceCreateCreated, error) { // TODO: Validate the params before sending if params == nil { params = NewFcInterfaceCreateParams() } op := &runtime.ClientOperation{ ID: "fc_interface_create", Method: "POST", PathPattern: "/network/fc/interfaces", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &FcInterfaceCreateReader{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.(*FcInterfaceCreateCreated) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*FcInterfaceCreateDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* FcInterfaceDelete Deletes an FC interface. ### Related ONTAP commands * `network interface delete` ### Learn more * [`DOC /network/fc/interfaces`](#docs-networking-network_fc_interfaces) */ func (a *Client) FcInterfaceDelete(params *FcInterfaceDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcInterfaceDeleteOK, error) { // TODO: Validate the params before sending if params == nil { params = NewFcInterfaceDeleteParams() } op := &runtime.ClientOperation{ ID: "fc_interface_delete", Method: "DELETE", PathPattern: "/network/fc/interfaces/{uuid}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &FcInterfaceDeleteReader{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.(*FcInterfaceDeleteOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*FcInterfaceDeleteDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* FcInterfaceGet Retrieves an FC interface. ### Expensive properties There is an added computational cost to retrieving values for these properties. They are not included by default in GET results and must be explicitly requested using the `fields` query parameter. See [`Requesting specific fields`](#Requesting_specific_fields) to learn more. * `statistics.*` * `metric.*` ### Related ONTAP commands * `network interface show` * `vserver fcp interface show` ### Learn more * [`DOC /network/fc/interfaces`](#docs-networking-network_fc_interfaces) */ func (a *Client) FcInterfaceGet(params *FcInterfaceGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcInterfaceGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewFcInterfaceGetParams() } op := &runtime.ClientOperation{ ID: "fc_interface_get", Method: "GET", PathPattern: "/network/fc/interfaces/{uuid}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &FcInterfaceGetReader{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.(*FcInterfaceGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*FcInterfaceGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* FcInterfaceModify Updates an FC interface. ### Related ONTAP commands * `network interface modify` ### Learn more * [`DOC /network/fc/interfaces`](#docs-networking-network_fc_interfaces) */ func (a *Client) FcInterfaceModify(params *FcInterfaceModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcInterfaceModifyOK, error) { // TODO: Validate the params before sending if params == nil { params = NewFcInterfaceModifyParams() } op := &runtime.ClientOperation{ ID: "fc_interface_modify", Method: "PATCH", PathPattern: "/network/fc/interfaces/{uuid}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &FcInterfaceModifyReader{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.(*FcInterfaceModifyOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*FcInterfaceModifyDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* FcPortCollectionGet Retrieves FC ports.<br/> ### Expensive properties There is an added computational cost to retrieving values for these properties. They are not included by default in GET results and must be explicitly requested using the `fields` query parameter. See [`Requesting specific fields`](#Requesting_specific_fields) to learn more. * `fabric.name` * `statistics.*` * `metric.*` ### Related ONTAP commands * `network fcp adapter show` ### Learn more * [`DOC /network/fc/ports`](#docs-networking-network_fc_ports) */ func (a *Client) FcPortCollectionGet(params *FcPortCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcPortCollectionGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewFcPortCollectionGetParams() } op := &runtime.ClientOperation{ ID: "fc_port_collection_get", Method: "GET", PathPattern: "/network/fc/ports", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &FcPortCollectionGetReader{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.(*FcPortCollectionGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*FcPortCollectionGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* FcPortGet Retrieves an FC port. ### Expensive properties There is an added computational cost to retrieving values for these properties. They are not included by default in GET results and must be explicitly requested using the `fields` query parameter. See [`Requesting specific fields`](#Requesting_specific_fields) to learn more. * `fabric.name` * `statistics.*` * `metric.*` ### Related ONTAP commands * `network fcp adapter show` ### Learn more * [`DOC /network/fc/ports`](#docs-networking-network_fc_ports) */ func (a *Client) FcPortGet(params *FcPortGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcPortGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewFcPortGetParams() } op := &runtime.ClientOperation{ ID: "fc_port_get", Method: "GET", PathPattern: "/network/fc/ports/{uuid}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &FcPortGetReader{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.(*FcPortGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*FcPortGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* FcPortModify Updates an FC port. ### Related ONTAP commands * `network fcp adapter modify` ### Learn more * [`DOC /network/fc/ports`](#docs-networking-network_fc_ports) */ func (a *Client) FcPortModify(params *FcPortModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcPortModifyOK, error) { // TODO: Validate the params before sending if params == nil { params = NewFcPortModifyParams() } op := &runtime.ClientOperation{ ID: "fc_port_modify", Method: "PATCH", PathPattern: "/network/fc/ports/{uuid}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &FcPortModifyReader{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.(*FcPortModifyOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*FcPortModifyDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* FcSwitchCollectionGet Retrieves the Fibre Channel switches of a Fibre Channel fabric. ### Expensive properties There is an added computational cost to retrieving values for these properties. They are not included by default in GET results and must be explicitly requested using the `fields` query parameter. See [`Requesting specific fields`](#Requesting_specific_fields) to learn more. * `ports` ### Related ONTAP commands * `network fcp topology show` ### Learn more * [`DOC /network/fc/fabrics`](#docs-networking-network_fc_fabrics) */ func (a *Client) FcSwitchCollectionGet(params *FcSwitchCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcSwitchCollectionGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewFcSwitchCollectionGetParams() } op := &runtime.ClientOperation{ ID: "fc_switch_collection_get", Method: "GET", PathPattern: "/network/fc/fabrics/{fabric.name}/switches", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &FcSwitchCollectionGetReader{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.(*FcSwitchCollectionGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*FcSwitchCollectionGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* FcSwitchGet Retrieves a Fibre Channel switch. ### Expensive properties There is an added computational cost to retrieving values for these properties. They are not included by default in GET results and must be explicitly requested using the `fields` query parameter. See [`Requesting specific fields`](#Requesting_specific_fields) to learn more. * `ports` ### Related ONTAP commands * `network fcp topology show` ### Learn more * [`DOC /network/fc/fabrics`](#docs-networking-network_fc_fabrics) */ func (a *Client) FcSwitchGet(params *FcSwitchGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcSwitchGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewFcSwitchGetParams() } op := &runtime.ClientOperation{ ID: "fc_switch_get", Method: "GET", PathPattern: "/network/fc/fabrics/{fabric.name}/switches/{wwn}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &FcSwitchGetReader{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.(*FcSwitchGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*FcSwitchGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* FcZoneCollectionGet Retrieves the zones of the active zoneset of a Fibre Channel fabric. ### Expensive properties There is an added computational cost to retrieving values for these properties. They are not included by default in GET results and must be explicitly requested using the `fields` query parameter. See [`Requesting specific fields`](#Requesting_specific_fields) to learn more. * `members` ### Related ONTAP commands * `network fcp zone show` ### Learn more * [`DOC /network/fc/fabrics`](#docs-networking-network_fc_fabrics) */ func (a *Client) FcZoneCollectionGet(params *FcZoneCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FcZoneCollectionGetOK, error) { // TODO: Validate the params before sending if params == 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/networking/ipspace_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/ipspace_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewIpspaceDeleteParams creates a new IpspaceDeleteParams 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 NewIpspaceDeleteParams() *IpspaceDeleteParams { return &IpspaceDeleteParams{ timeout: cr.DefaultTimeout, } } // NewIpspaceDeleteParamsWithTimeout creates a new IpspaceDeleteParams object // with the ability to set a timeout on a request. func NewIpspaceDeleteParamsWithTimeout(timeout time.Duration) *IpspaceDeleteParams { return &IpspaceDeleteParams{ timeout: timeout, } } // NewIpspaceDeleteParamsWithContext creates a new IpspaceDeleteParams object // with the ability to set a context for a request. func NewIpspaceDeleteParamsWithContext(ctx context.Context) *IpspaceDeleteParams { return &IpspaceDeleteParams{ Context: ctx, } } // NewIpspaceDeleteParamsWithHTTPClient creates a new IpspaceDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewIpspaceDeleteParamsWithHTTPClient(client *http.Client) *IpspaceDeleteParams { return &IpspaceDeleteParams{ HTTPClient: client, } } /* IpspaceDeleteParams contains all the parameters to send to the API endpoint for the ipspace delete operation. Typically these are written to a http.Request. */ type IpspaceDeleteParams struct { /* UUID. IPspace UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ipspace delete params (not the query body). // // All values with no default are reset to their zero value. func (o *IpspaceDeleteParams) WithDefaults() *IpspaceDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ipspace delete params (not the query body). // // All values with no default are reset to their zero value. func (o *IpspaceDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the ipspace delete params func (o *IpspaceDeleteParams) WithTimeout(timeout time.Duration) *IpspaceDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ipspace delete params func (o *IpspaceDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ipspace delete params func (o *IpspaceDeleteParams) WithContext(ctx context.Context) *IpspaceDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the ipspace delete params func (o *IpspaceDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ipspace delete params func (o *IpspaceDeleteParams) WithHTTPClient(client *http.Client) *IpspaceDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ipspace delete params func (o *IpspaceDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithUUID adds the uuid to the ipspace delete params func (o *IpspaceDeleteParams) WithUUID(uuid string) *IpspaceDeleteParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the ipspace delete params func (o *IpspaceDeleteParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *IpspaceDeleteParams) 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/networking/ipspaces_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/ipspaces_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // IpspacesCreateReader is a Reader for the IpspacesCreate structure. type IpspacesCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *IpspacesCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewIpspacesCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewIpspacesCreateDefault(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 } } // NewIpspacesCreateCreated creates a IpspacesCreateCreated with default headers values func NewIpspacesCreateCreated() *IpspacesCreateCreated { return &IpspacesCreateCreated{} } /* IpspacesCreateCreated describes a response with status code 201, with default header values. Created */ type IpspacesCreateCreated struct { /* Useful for tracking the resource location */ Location string } // IsSuccess returns true when this ipspaces create created response has a 2xx status code func (o *IpspacesCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this ipspaces create created response has a 3xx status code func (o *IpspacesCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this ipspaces create created response has a 4xx status code func (o *IpspacesCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this ipspaces create created response has a 5xx status code func (o *IpspacesCreateCreated) IsServerError() bool { return false } // IsCode returns true when this ipspaces create created response a status code equal to that given func (o *IpspacesCreateCreated) IsCode(code int) bool { return code == 201 } func (o *IpspacesCreateCreated) Error() string { return fmt.Sprintf("[POST /network/ipspaces][%d] ipspacesCreateCreated ", 201) } func (o *IpspacesCreateCreated) String() string { return fmt.Sprintf("[POST /network/ipspaces][%d] ipspacesCreateCreated ", 201) } func (o *IpspacesCreateCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Location hdrLocation := response.GetHeader("Location") if hdrLocation != "" { o.Location = hdrLocation } return nil } // NewIpspacesCreateDefault creates a IpspacesCreateDefault with default headers values func NewIpspacesCreateDefault(code int) *IpspacesCreateDefault { return &IpspacesCreateDefault{ _statusCode: code, } } /* IpspacesCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 1966586 | The specified IPspace name is invalid because it is already used by a peered SVM. | | 1967102 | A POST operation might have left the configuration in an inconsistent state. Check the configuration. | ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 9240591 | The name is not valid. The name is already in use by a cluster node, Vserver, or it is the name of the local cluster. | */ type IpspacesCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ipspaces create default response func (o *IpspacesCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ipspaces create default response has a 2xx status code func (o *IpspacesCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ipspaces create default response has a 3xx status code func (o *IpspacesCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ipspaces create default response has a 4xx status code func (o *IpspacesCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ipspaces create default response has a 5xx status code func (o *IpspacesCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ipspaces create default response a status code equal to that given func (o *IpspacesCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *IpspacesCreateDefault) Error() string { return fmt.Sprintf("[POST /network/ipspaces][%d] ipspaces_create default %+v", o._statusCode, o.Payload) } func (o *IpspacesCreateDefault) String() string { return fmt.Sprintf("[POST /network/ipspaces][%d] ipspaces_create default %+v", o._statusCode, o.Payload) } func (o *IpspacesCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *IpspacesCreateDefault) 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/networking/switch_port_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/switch_port_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewSwitchPortGetParams creates a new SwitchPortGetParams 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 NewSwitchPortGetParams() *SwitchPortGetParams { return &SwitchPortGetParams{ timeout: cr.DefaultTimeout, } } // NewSwitchPortGetParamsWithTimeout creates a new SwitchPortGetParams object // with the ability to set a timeout on a request. func NewSwitchPortGetParamsWithTimeout(timeout time.Duration) *SwitchPortGetParams { return &SwitchPortGetParams{ timeout: timeout, } } // NewSwitchPortGetParamsWithContext creates a new SwitchPortGetParams object // with the ability to set a context for a request. func NewSwitchPortGetParamsWithContext(ctx context.Context) *SwitchPortGetParams { return &SwitchPortGetParams{ Context: ctx, } } // NewSwitchPortGetParamsWithHTTPClient creates a new SwitchPortGetParams object // with the ability to set a custom HTTPClient for a request. func NewSwitchPortGetParamsWithHTTPClient(client *http.Client) *SwitchPortGetParams { return &SwitchPortGetParams{ HTTPClient: client, } } /* SwitchPortGetParams contains all the parameters to send to the API endpoint for the switch port get operation. Typically these are written to a http.Request. */ type SwitchPortGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* IdentityIndex. Interface Index */ IdentityIndex int64 /* IdentityName. Interface Name */ IdentityName string /* Switch. Switch Name */ Switch string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the switch port get params (not the query body). // // All values with no default are reset to their zero value. func (o *SwitchPortGetParams) WithDefaults() *SwitchPortGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the switch port get params (not the query body). // // All values with no default are reset to their zero value. func (o *SwitchPortGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the switch port get params func (o *SwitchPortGetParams) WithTimeout(timeout time.Duration) *SwitchPortGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the switch port get params func (o *SwitchPortGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the switch port get params func (o *SwitchPortGetParams) WithContext(ctx context.Context) *SwitchPortGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the switch port get params func (o *SwitchPortGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the switch port get params func (o *SwitchPortGetParams) WithHTTPClient(client *http.Client) *SwitchPortGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the switch port get params func (o *SwitchPortGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the switch port get params func (o *SwitchPortGetParams) WithFields(fields []string) *SwitchPortGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the switch port get params func (o *SwitchPortGetParams) SetFields(fields []string) { o.Fields = fields } // WithIdentityIndex adds the identityIndex to the switch port get params func (o *SwitchPortGetParams) WithIdentityIndex(identityIndex int64) *SwitchPortGetParams { o.SetIdentityIndex(identityIndex) return o } // SetIdentityIndex adds the identityIndex to the switch port get params func (o *SwitchPortGetParams) SetIdentityIndex(identityIndex int64) { o.IdentityIndex = identityIndex } // WithIdentityName adds the identityName to the switch port get params func (o *SwitchPortGetParams) WithIdentityName(identityName string) *SwitchPortGetParams { o.SetIdentityName(identityName) return o } // SetIdentityName adds the identityName to the switch port get params func (o *SwitchPortGetParams) SetIdentityName(identityName string) { o.IdentityName = identityName } // WithSwitch adds the switchVar to the switch port get params func (o *SwitchPortGetParams) WithSwitch(switchVar string) *SwitchPortGetParams { o.SetSwitch(switchVar) return o } // SetSwitch adds the switch to the switch port get params func (o *SwitchPortGetParams) SetSwitch(switchVar string) { o.Switch = switchVar } // WriteToRequest writes these params to a swagger request func (o *SwitchPortGetParams) 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 identity.index if err := r.SetPathParam("identity.index", swag.FormatInt64(o.IdentityIndex)); err != nil { return err } // path param identity.name if err := r.SetPathParam("identity.name", o.IdentityName); err != nil { return err } // path param switch if err := r.SetPathParam("switch", o.Switch); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamSwitchPortGet binds the parameter fields func (o *SwitchPortGetParams) 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/networking/fc_interface_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/fc_interface_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewFcInterfaceDeleteParams creates a new FcInterfaceDeleteParams 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 NewFcInterfaceDeleteParams() *FcInterfaceDeleteParams { return &FcInterfaceDeleteParams{ timeout: cr.DefaultTimeout, } } // NewFcInterfaceDeleteParamsWithTimeout creates a new FcInterfaceDeleteParams object // with the ability to set a timeout on a request. func NewFcInterfaceDeleteParamsWithTimeout(timeout time.Duration) *FcInterfaceDeleteParams { return &FcInterfaceDeleteParams{ timeout: timeout, } } // NewFcInterfaceDeleteParamsWithContext creates a new FcInterfaceDeleteParams object // with the ability to set a context for a request. func NewFcInterfaceDeleteParamsWithContext(ctx context.Context) *FcInterfaceDeleteParams { return &FcInterfaceDeleteParams{ Context: ctx, } } // NewFcInterfaceDeleteParamsWithHTTPClient creates a new FcInterfaceDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewFcInterfaceDeleteParamsWithHTTPClient(client *http.Client) *FcInterfaceDeleteParams { return &FcInterfaceDeleteParams{ HTTPClient: client, } } /* FcInterfaceDeleteParams contains all the parameters to send to the API endpoint for the fc interface delete operation. Typically these are written to a http.Request. */ type FcInterfaceDeleteParams struct { /* UUID. The unique identifier for the FC interface. */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the fc interface delete params (not the query body). // // All values with no default are reset to their zero value. func (o *FcInterfaceDeleteParams) WithDefaults() *FcInterfaceDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the fc interface delete params (not the query body). // // All values with no default are reset to their zero value. func (o *FcInterfaceDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the fc interface delete params func (o *FcInterfaceDeleteParams) WithTimeout(timeout time.Duration) *FcInterfaceDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the fc interface delete params func (o *FcInterfaceDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the fc interface delete params func (o *FcInterfaceDeleteParams) WithContext(ctx context.Context) *FcInterfaceDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the fc interface delete params func (o *FcInterfaceDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the fc interface delete params func (o *FcInterfaceDeleteParams) WithHTTPClient(client *http.Client) *FcInterfaceDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the fc interface delete params func (o *FcInterfaceDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithUUID adds the uuid to the fc interface delete params func (o *FcInterfaceDeleteParams) WithUUID(uuid string) *FcInterfaceDeleteParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the fc interface delete params func (o *FcInterfaceDeleteParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *FcInterfaceDeleteParams) 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/networking/network_ethernet_broadcast_domain_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ethernet_broadcast_domain_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NetworkEthernetBroadcastDomainModifyReader is a Reader for the NetworkEthernetBroadcastDomainModify structure. type NetworkEthernetBroadcastDomainModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NetworkEthernetBroadcastDomainModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNetworkEthernetBroadcastDomainModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNetworkEthernetBroadcastDomainModifyDefault(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 } } // NewNetworkEthernetBroadcastDomainModifyOK creates a NetworkEthernetBroadcastDomainModifyOK with default headers values func NewNetworkEthernetBroadcastDomainModifyOK() *NetworkEthernetBroadcastDomainModifyOK { return &NetworkEthernetBroadcastDomainModifyOK{} } /* NetworkEthernetBroadcastDomainModifyOK describes a response with status code 200, with default header values. OK */ type NetworkEthernetBroadcastDomainModifyOK struct { } // IsSuccess returns true when this network ethernet broadcast domain modify o k response has a 2xx status code func (o *NetworkEthernetBroadcastDomainModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this network ethernet broadcast domain modify o k response has a 3xx status code func (o *NetworkEthernetBroadcastDomainModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this network ethernet broadcast domain modify o k response has a 4xx status code func (o *NetworkEthernetBroadcastDomainModifyOK) IsClientError() bool { return false } // IsServerError returns true when this network ethernet broadcast domain modify o k response has a 5xx status code func (o *NetworkEthernetBroadcastDomainModifyOK) IsServerError() bool { return false } // IsCode returns true when this network ethernet broadcast domain modify o k response a status code equal to that given func (o *NetworkEthernetBroadcastDomainModifyOK) IsCode(code int) bool { return code == 200 } func (o *NetworkEthernetBroadcastDomainModifyOK) Error() string { return fmt.Sprintf("[PATCH /network/ethernet/broadcast-domains/{uuid}][%d] networkEthernetBroadcastDomainModifyOK ", 200) } func (o *NetworkEthernetBroadcastDomainModifyOK) String() string { return fmt.Sprintf("[PATCH /network/ethernet/broadcast-domains/{uuid}][%d] networkEthernetBroadcastDomainModifyOK ", 200) } func (o *NetworkEthernetBroadcastDomainModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewNetworkEthernetBroadcastDomainModifyDefault creates a NetworkEthernetBroadcastDomainModifyDefault with default headers values func NewNetworkEthernetBroadcastDomainModifyDefault(code int) *NetworkEthernetBroadcastDomainModifyDefault { return &NetworkEthernetBroadcastDomainModifyDefault{ _statusCode: code, } } /* NetworkEthernetBroadcastDomainModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 1377267 | The specified IPspace does not exist. | | 1377269 | Failed to lookup the specified IPspace. | | 1377560 | Broadcast domain already exists in specified IPspace. | | 1377605 | Moving the system-generated broadcast domain to another IPspace is not supported. | | 1967082 | The specified ipspace.name does not match the IPspace name of ipspace.uuid. | | 1967150 | The specified ipspace.uuid is not valid. | | 1967151 | The specified ipspace.uuid and ipspace.name do not match. | | 1967152 | Patching IPspace for a broadcast domain requires an effective cluster version of 9.7 or later. | | 53280884 | The MTU of the broadcast domain cannot be modified on this platform. | */ type NetworkEthernetBroadcastDomainModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the network ethernet broadcast domain modify default response func (o *NetworkEthernetBroadcastDomainModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this network ethernet broadcast domain modify default response has a 2xx status code func (o *NetworkEthernetBroadcastDomainModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this network ethernet broadcast domain modify default response has a 3xx status code func (o *NetworkEthernetBroadcastDomainModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this network ethernet broadcast domain modify default response has a 4xx status code func (o *NetworkEthernetBroadcastDomainModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this network ethernet broadcast domain modify default response has a 5xx status code func (o *NetworkEthernetBroadcastDomainModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this network ethernet broadcast domain modify default response a status code equal to that given func (o *NetworkEthernetBroadcastDomainModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NetworkEthernetBroadcastDomainModifyDefault) Error() string { return fmt.Sprintf("[PATCH /network/ethernet/broadcast-domains/{uuid}][%d] network_ethernet_broadcast_domain_modify default %+v", o._statusCode, o.Payload) } func (o *NetworkEthernetBroadcastDomainModifyDefault) String() string { return fmt.Sprintf("[PATCH /network/ethernet/broadcast-domains/{uuid}][%d] network_ethernet_broadcast_domain_modify default %+v", o._statusCode, o.Payload) } func (o *NetworkEthernetBroadcastDomainModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NetworkEthernetBroadcastDomainModifyDefault) 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/networking/network_ip_interfaces_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ip_interfaces_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewNetworkIPInterfacesCreateParams creates a new NetworkIPInterfacesCreateParams 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 NewNetworkIPInterfacesCreateParams() *NetworkIPInterfacesCreateParams { return &NetworkIPInterfacesCreateParams{ timeout: cr.DefaultTimeout, } } // NewNetworkIPInterfacesCreateParamsWithTimeout creates a new NetworkIPInterfacesCreateParams object // with the ability to set a timeout on a request. func NewNetworkIPInterfacesCreateParamsWithTimeout(timeout time.Duration) *NetworkIPInterfacesCreateParams { return &NetworkIPInterfacesCreateParams{ timeout: timeout, } } // NewNetworkIPInterfacesCreateParamsWithContext creates a new NetworkIPInterfacesCreateParams object // with the ability to set a context for a request. func NewNetworkIPInterfacesCreateParamsWithContext(ctx context.Context) *NetworkIPInterfacesCreateParams { return &NetworkIPInterfacesCreateParams{ Context: ctx, } } // NewNetworkIPInterfacesCreateParamsWithHTTPClient creates a new NetworkIPInterfacesCreateParams object // with the ability to set a custom HTTPClient for a request. func NewNetworkIPInterfacesCreateParamsWithHTTPClient(client *http.Client) *NetworkIPInterfacesCreateParams { return &NetworkIPInterfacesCreateParams{ HTTPClient: client, } } /* NetworkIPInterfacesCreateParams contains all the parameters to send to the API endpoint for the network ip interfaces create operation. Typically these are written to a http.Request. */ type NetworkIPInterfacesCreateParams struct { /* Info. IP interface parameters */ Info *models.IPInterface /* 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 network ip interfaces create params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkIPInterfacesCreateParams) WithDefaults() *NetworkIPInterfacesCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the network ip interfaces create params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkIPInterfacesCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) ) val := NetworkIPInterfacesCreateParams{ ReturnRecords: &returnRecordsDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the network ip interfaces create params func (o *NetworkIPInterfacesCreateParams) WithTimeout(timeout time.Duration) *NetworkIPInterfacesCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the network ip interfaces create params func (o *NetworkIPInterfacesCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the network ip interfaces create params func (o *NetworkIPInterfacesCreateParams) WithContext(ctx context.Context) *NetworkIPInterfacesCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the network ip interfaces create params func (o *NetworkIPInterfacesCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the network ip interfaces create params func (o *NetworkIPInterfacesCreateParams) WithHTTPClient(client *http.Client) *NetworkIPInterfacesCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the network ip interfaces create params func (o *NetworkIPInterfacesCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the network ip interfaces create params func (o *NetworkIPInterfacesCreateParams) WithInfo(info *models.IPInterface) *NetworkIPInterfacesCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the network ip interfaces create params func (o *NetworkIPInterfacesCreateParams) SetInfo(info *models.IPInterface) { o.Info = info } // WithReturnRecords adds the returnRecords to the network ip interfaces create params func (o *NetworkIPInterfacesCreateParams) WithReturnRecords(returnRecords *bool) *NetworkIPInterfacesCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the network ip interfaces create params func (o *NetworkIPInterfacesCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WriteToRequest writes these params to a swagger request func (o *NetworkIPInterfacesCreateParams) 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/networking/ip_service_policy_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/ip_service_policy_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // IPServicePolicyCreateReader is a Reader for the IPServicePolicyCreate structure. type IPServicePolicyCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *IPServicePolicyCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewIPServicePolicyCreateOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewIPServicePolicyCreateDefault(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 } } // NewIPServicePolicyCreateOK creates a IPServicePolicyCreateOK with default headers values func NewIPServicePolicyCreateOK() *IPServicePolicyCreateOK { return &IPServicePolicyCreateOK{} } /* IPServicePolicyCreateOK describes a response with status code 200, with default header values. OK */ type IPServicePolicyCreateOK struct { } // IsSuccess returns true when this ip service policy create o k response has a 2xx status code func (o *IPServicePolicyCreateOK) IsSuccess() bool { return true } // IsRedirect returns true when this ip service policy create o k response has a 3xx status code func (o *IPServicePolicyCreateOK) IsRedirect() bool { return false } // IsClientError returns true when this ip service policy create o k response has a 4xx status code func (o *IPServicePolicyCreateOK) IsClientError() bool { return false } // IsServerError returns true when this ip service policy create o k response has a 5xx status code func (o *IPServicePolicyCreateOK) IsServerError() bool { return false } // IsCode returns true when this ip service policy create o k response a status code equal to that given func (o *IPServicePolicyCreateOK) IsCode(code int) bool { return code == 200 } func (o *IPServicePolicyCreateOK) Error() string { return fmt.Sprintf("[POST /network/ip/service-policies][%d] ipServicePolicyCreateOK ", 200) } func (o *IPServicePolicyCreateOK) String() string { return fmt.Sprintf("[POST /network/ip/service-policies][%d] ipServicePolicyCreateOK ", 200) } func (o *IPServicePolicyCreateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewIPServicePolicyCreateDefault creates a IPServicePolicyCreateDefault with default headers values func NewIPServicePolicyCreateDefault(code int) *IPServicePolicyCreateDefault { return &IPServicePolicyCreateDefault{ _statusCode: code, } } /* IPServicePolicyCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 1966373 | Port must reside in the same IPspace as the interface's SVM. | | 1967146 | Svm.name does not exist. | | 1967147 | Svm.uuid does not exist. | | 53281929 | Service policies cannot combine block and file services. | | 53281931 | Service policy names cannot start with "default-". | | 53281932 | Service cannot be added because the service does not exist for the specified SVM or IPspace. | | 53281933 | A Cluster-scoped service cannot be added to a SVM-scoped service policy. | | 53281934 | An SVM-scoped service cannot be added to a Cluster-scoped service policy. | | 53281935 | Scope is set to "svm" and svm.uuid or svm.name have not been specified. | | 53281936 | The SVM is not in the specified IPspace. | | 53281937 | Svm.uuid and svm.name are not valid parameters when scope is cluster. | | 53281938 | Svm.uuid or svm.name specify a vserver that does not exist. | | 53281939 | One or more of the svm.uuid, svm.name, ipspace.uuid, and ipspace.name have invalid values. | | 53281940 | SVM or IPspace has not been specified. | | 53281941 | SVM does not exist. | | 53281944 | Ipspace.name does not exist. | | 53281945 | Ipspace.uuid is not an IPspace. | | 53281946 | Service policy already exists. | | 53281958 | Service policies cannot contain multiple block-oriented services. | */ type IPServicePolicyCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ip service policy create default response func (o *IPServicePolicyCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ip service policy create default response has a 2xx status code func (o *IPServicePolicyCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ip service policy create default response has a 3xx status code func (o *IPServicePolicyCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ip service policy create default response has a 4xx status code func (o *IPServicePolicyCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ip service policy create default response has a 5xx status code func (o *IPServicePolicyCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ip service policy create default response a status code equal to that given func (o *IPServicePolicyCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *IPServicePolicyCreateDefault) Error() string { return fmt.Sprintf("[POST /network/ip/service-policies][%d] ip_service_policy_create default %+v", o._statusCode, o.Payload) } func (o *IPServicePolicyCreateDefault) String() string { return fmt.Sprintf("[POST /network/ip/service-policies][%d] ip_service_policy_create default %+v", o._statusCode, o.Payload) } func (o *IPServicePolicyCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *IPServicePolicyCreateDefault) 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/networking/ipspaces_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/ipspaces_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewIpspacesGetParams creates a new IpspacesGetParams 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 NewIpspacesGetParams() *IpspacesGetParams { return &IpspacesGetParams{ timeout: cr.DefaultTimeout, } } // NewIpspacesGetParamsWithTimeout creates a new IpspacesGetParams object // with the ability to set a timeout on a request. func NewIpspacesGetParamsWithTimeout(timeout time.Duration) *IpspacesGetParams { return &IpspacesGetParams{ timeout: timeout, } } // NewIpspacesGetParamsWithContext creates a new IpspacesGetParams object // with the ability to set a context for a request. func NewIpspacesGetParamsWithContext(ctx context.Context) *IpspacesGetParams { return &IpspacesGetParams{ Context: ctx, } } // NewIpspacesGetParamsWithHTTPClient creates a new IpspacesGetParams object // with the ability to set a custom HTTPClient for a request. func NewIpspacesGetParamsWithHTTPClient(client *http.Client) *IpspacesGetParams { return &IpspacesGetParams{ HTTPClient: client, } } /* IpspacesGetParams contains all the parameters to send to the API endpoint for the ipspaces get operation. Typically these are written to a http.Request. */ type IpspacesGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* Name. Filter by name */ Name *string /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* UUID. Filter by uuid */ UUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ipspaces get params (not the query body). // // All values with no default are reset to their zero value. func (o *IpspacesGetParams) WithDefaults() *IpspacesGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ipspaces get params (not the query body). // // All values with no default are reset to their zero value. func (o *IpspacesGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := IpspacesGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the ipspaces get params func (o *IpspacesGetParams) WithTimeout(timeout time.Duration) *IpspacesGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ipspaces get params func (o *IpspacesGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ipspaces get params func (o *IpspacesGetParams) WithContext(ctx context.Context) *IpspacesGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the ipspaces get params func (o *IpspacesGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ipspaces get params func (o *IpspacesGetParams) WithHTTPClient(client *http.Client) *IpspacesGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ipspaces get params func (o *IpspacesGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the ipspaces get params func (o *IpspacesGetParams) WithFields(fields []string) *IpspacesGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the ipspaces get params func (o *IpspacesGetParams) SetFields(fields []string) { o.Fields = fields } // WithMaxRecords adds the maxRecords to the ipspaces get params func (o *IpspacesGetParams) WithMaxRecords(maxRecords *int64) *IpspacesGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the ipspaces get params func (o *IpspacesGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithName adds the name to the ipspaces get params func (o *IpspacesGetParams) WithName(name *string) *IpspacesGetParams { o.SetName(name) return o } // SetName adds the name to the ipspaces get params func (o *IpspacesGetParams) SetName(name *string) { o.Name = name } // WithOrderBy adds the orderBy to the ipspaces get params func (o *IpspacesGetParams) WithOrderBy(orderBy []string) *IpspacesGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the ipspaces get params func (o *IpspacesGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the ipspaces get params func (o *IpspacesGetParams) WithReturnRecords(returnRecords *bool) *IpspacesGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the ipspaces get params func (o *IpspacesGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the ipspaces get params func (o *IpspacesGetParams) WithReturnTimeout(returnTimeout *int64) *IpspacesGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the ipspaces get params func (o *IpspacesGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithUUID adds the uuid to the ipspaces get params func (o *IpspacesGetParams) WithUUID(uuid *string) *IpspacesGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the ipspaces get params func (o *IpspacesGetParams) SetUUID(uuid *string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *IpspacesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.Name != nil { // query param name var qrName string if o.Name != nil { qrName = *o.Name } qName := qrName if qName != "" { if err := r.SetQueryParam("name", qName); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.UUID != nil { // query param uuid var qrUUID string if o.UUID != nil { qrUUID = *o.UUID } qUUID := qrUUID if qUUID != "" { if err := r.SetQueryParam("uuid", qUUID); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamIpspacesGet binds the parameter fields func (o *IpspacesGetParams) 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 } // bindParamIpspacesGet binds the parameter order_by func (o *IpspacesGetParams) 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/networking/network_ip_bgp_peer_group_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ip_bgp_peer_group_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NetworkIPBgpPeerGroupModifyReader is a Reader for the NetworkIPBgpPeerGroupModify structure. type NetworkIPBgpPeerGroupModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NetworkIPBgpPeerGroupModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNetworkIPBgpPeerGroupModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNetworkIPBgpPeerGroupModifyDefault(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 } } // NewNetworkIPBgpPeerGroupModifyOK creates a NetworkIPBgpPeerGroupModifyOK with default headers values func NewNetworkIPBgpPeerGroupModifyOK() *NetworkIPBgpPeerGroupModifyOK { return &NetworkIPBgpPeerGroupModifyOK{} } /* NetworkIPBgpPeerGroupModifyOK describes a response with status code 200, with default header values. OK */ type NetworkIPBgpPeerGroupModifyOK struct { } // IsSuccess returns true when this network Ip bgp peer group modify o k response has a 2xx status code func (o *NetworkIPBgpPeerGroupModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this network Ip bgp peer group modify o k response has a 3xx status code func (o *NetworkIPBgpPeerGroupModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this network Ip bgp peer group modify o k response has a 4xx status code func (o *NetworkIPBgpPeerGroupModifyOK) IsClientError() bool { return false } // IsServerError returns true when this network Ip bgp peer group modify o k response has a 5xx status code func (o *NetworkIPBgpPeerGroupModifyOK) IsServerError() bool { return false } // IsCode returns true when this network Ip bgp peer group modify o k response a status code equal to that given func (o *NetworkIPBgpPeerGroupModifyOK) IsCode(code int) bool { return code == 200 } func (o *NetworkIPBgpPeerGroupModifyOK) Error() string { return fmt.Sprintf("[PATCH /network/ip/bgp/peer-groups/{uuid}][%d] networkIpBgpPeerGroupModifyOK ", 200) } func (o *NetworkIPBgpPeerGroupModifyOK) String() string { return fmt.Sprintf("[PATCH /network/ip/bgp/peer-groups/{uuid}][%d] networkIpBgpPeerGroupModifyOK ", 200) } func (o *NetworkIPBgpPeerGroupModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewNetworkIPBgpPeerGroupModifyDefault creates a NetworkIPBgpPeerGroupModifyDefault with default headers values func NewNetworkIPBgpPeerGroupModifyDefault(code int) *NetworkIPBgpPeerGroupModifyDefault { return &NetworkIPBgpPeerGroupModifyDefault{ _statusCode: code, } } /* NetworkIPBgpPeerGroupModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 1967171 | Internal error. Fail to access or update BGP peer group. Retry the command, if necessary. | | 1967188 | Configuring peer address as a next hop requires an effective cluster version of 9.9.1 or later. | | 53281998 | Failed to rename the BGP peer group because that name is already assigned to a different peer group in the IPspace. | | 53282006 | BGP peer group could not be updated to use a peer address because the value provided is not a valid peer address. If necessary, try the command again with a routable host address. | | 53282007 | BGP peer group could not be updated to use a peer address because the address represents a different address family to the address of the associated BGP LIF. If necessary, try the command again with a matching address family. | | 53282018 | Failed to create BGP peer group because an existing peer group has already established a BGP session between LIF and peer address. If necessary, try the command again with a different BGP LIF or a different peer address. | */ type NetworkIPBgpPeerGroupModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the network ip bgp peer group modify default response func (o *NetworkIPBgpPeerGroupModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this network ip bgp peer group modify default response has a 2xx status code func (o *NetworkIPBgpPeerGroupModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this network ip bgp peer group modify default response has a 3xx status code func (o *NetworkIPBgpPeerGroupModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this network ip bgp peer group modify default response has a 4xx status code func (o *NetworkIPBgpPeerGroupModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this network ip bgp peer group modify default response has a 5xx status code func (o *NetworkIPBgpPeerGroupModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this network ip bgp peer group modify default response a status code equal to that given func (o *NetworkIPBgpPeerGroupModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NetworkIPBgpPeerGroupModifyDefault) Error() string { return fmt.Sprintf("[PATCH /network/ip/bgp/peer-groups/{uuid}][%d] network_ip_bgp_peer_group_modify default %+v", o._statusCode, o.Payload) } func (o *NetworkIPBgpPeerGroupModifyDefault) String() string { return fmt.Sprintf("[PATCH /network/ip/bgp/peer-groups/{uuid}][%d] network_ip_bgp_peer_group_modify default %+v", o._statusCode, o.Payload) } func (o *NetworkIPBgpPeerGroupModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NetworkIPBgpPeerGroupModifyDefault) 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/networking/network_ip_interface_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ip_interface_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" ) // NetworkIPInterfaceDeleteReader is a Reader for the NetworkIPInterfaceDelete structure. type NetworkIPInterfaceDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NetworkIPInterfaceDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNetworkIPInterfaceDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) } } // NewNetworkIPInterfaceDeleteOK creates a NetworkIPInterfaceDeleteOK with default headers values func NewNetworkIPInterfaceDeleteOK() *NetworkIPInterfaceDeleteOK { return &NetworkIPInterfaceDeleteOK{} } /* NetworkIPInterfaceDeleteOK describes a response with status code 200, with default header values. OK */ type NetworkIPInterfaceDeleteOK struct { } // IsSuccess returns true when this network Ip interface delete o k response has a 2xx status code func (o *NetworkIPInterfaceDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this network Ip interface delete o k response has a 3xx status code func (o *NetworkIPInterfaceDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this network Ip interface delete o k response has a 4xx status code func (o *NetworkIPInterfaceDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this network Ip interface delete o k response has a 5xx status code func (o *NetworkIPInterfaceDeleteOK) IsServerError() bool { return false } // IsCode returns true when this network Ip interface delete o k response a status code equal to that given func (o *NetworkIPInterfaceDeleteOK) IsCode(code int) bool { return code == 200 } func (o *NetworkIPInterfaceDeleteOK) Error() string { return fmt.Sprintf("[DELETE /network/ip/interfaces/{uuid}][%d] networkIpInterfaceDeleteOK ", 200) } func (o *NetworkIPInterfaceDeleteOK) String() string { return fmt.Sprintf("[DELETE /network/ip/interfaces/{uuid}][%d] networkIpInterfaceDeleteOK ", 200) } func (o *NetworkIPInterfaceDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ethernet_port_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ethernet_port_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NetworkEthernetPortModifyReader is a Reader for the NetworkEthernetPortModify structure. type NetworkEthernetPortModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NetworkEthernetPortModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNetworkEthernetPortModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNetworkEthernetPortModifyDefault(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 } } // NewNetworkEthernetPortModifyOK creates a NetworkEthernetPortModifyOK with default headers values func NewNetworkEthernetPortModifyOK() *NetworkEthernetPortModifyOK { return &NetworkEthernetPortModifyOK{} } /* NetworkEthernetPortModifyOK describes a response with status code 200, with default header values. OK */ type NetworkEthernetPortModifyOK struct { } // IsSuccess returns true when this network ethernet port modify o k response has a 2xx status code func (o *NetworkEthernetPortModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this network ethernet port modify o k response has a 3xx status code func (o *NetworkEthernetPortModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this network ethernet port modify o k response has a 4xx status code func (o *NetworkEthernetPortModifyOK) IsClientError() bool { return false } // IsServerError returns true when this network ethernet port modify o k response has a 5xx status code func (o *NetworkEthernetPortModifyOK) IsServerError() bool { return false } // IsCode returns true when this network ethernet port modify o k response a status code equal to that given func (o *NetworkEthernetPortModifyOK) IsCode(code int) bool { return code == 200 } func (o *NetworkEthernetPortModifyOK) Error() string { return fmt.Sprintf("[PATCH /network/ethernet/ports/{uuid}][%d] networkEthernetPortModifyOK ", 200) } func (o *NetworkEthernetPortModifyOK) String() string { return fmt.Sprintf("[PATCH /network/ethernet/ports/{uuid}][%d] networkEthernetPortModifyOK ", 200) } func (o *NetworkEthernetPortModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewNetworkEthernetPortModifyDefault creates a NetworkEthernetPortModifyDefault with default headers values func NewNetworkEthernetPortModifyDefault(code int) *NetworkEthernetPortModifyDefault { return &NetworkEthernetPortModifyDefault{ _statusCode: code, } } /* NetworkEthernetPortModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 1376361 | Port is already a member of a LAG. | | 1376488 | Disabling the last operational cluster port on a node is not allowed. | | 1377562 | Port cannot be used because it is currently the home port or current port of an interface. | | 1377563 | Port is already a member of a LAG. | | 1966288 | Disabling the cluster ports can only be done on the local node. | | 1967087 | The specified broadcast domain UUID is not valid. | | 1967088 | The specified broadcast domain name does not exist in the specified IPspace. | | 1967089 | The specified broadcast domain UUID, name and IPspace name do not match. | | 1967094 | The specified LAG member port UUID is not valid. | | 1967095 | The specified LAG member port name and node name combination is not valid. | | 1967096 | The specified node does not match the specified LAG member port node. | | 1967097 | The specified LAG member ports UUID, name, and node name do not match. | | 1967148 | Failure to remove port from broadcast domain. | | 1967149 | Failure to add port to broadcast domain. | | 1967184 | The reachability parameter cannot be patched in the same request as other parameters that might affect the target port's reachability status. | | 1967185 | The port cannot be repaired because the port is deemed as non-repairable. | | 1967186 | Invalid value for the reachability parameter. | | 1967580 | This command is not supported as the effective cluster version is earlier than 9.8. | | 1967582 | The reachability parameter is not supported on this cluster. | */ type NetworkEthernetPortModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the network ethernet port modify default response func (o *NetworkEthernetPortModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this network ethernet port modify default response has a 2xx status code func (o *NetworkEthernetPortModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this network ethernet port modify default response has a 3xx status code func (o *NetworkEthernetPortModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this network ethernet port modify default response has a 4xx status code func (o *NetworkEthernetPortModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this network ethernet port modify default response has a 5xx status code func (o *NetworkEthernetPortModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this network ethernet port modify default response a status code equal to that given func (o *NetworkEthernetPortModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NetworkEthernetPortModifyDefault) Error() string { return fmt.Sprintf("[PATCH /network/ethernet/ports/{uuid}][%d] network_ethernet_port_modify default %+v", o._statusCode, o.Payload) } func (o *NetworkEthernetPortModifyDefault) String() string { return fmt.Sprintf("[PATCH /network/ethernet/ports/{uuid}][%d] network_ethernet_port_modify default %+v", o._statusCode, o.Payload) } func (o *NetworkEthernetPortModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NetworkEthernetPortModifyDefault) 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/networking/network_ip_bgp_peer_group_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/network_ip_bgp_peer_group_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewNetworkIPBgpPeerGroupModifyParams creates a new NetworkIPBgpPeerGroupModifyParams 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 NewNetworkIPBgpPeerGroupModifyParams() *NetworkIPBgpPeerGroupModifyParams { return &NetworkIPBgpPeerGroupModifyParams{ timeout: cr.DefaultTimeout, } } // NewNetworkIPBgpPeerGroupModifyParamsWithTimeout creates a new NetworkIPBgpPeerGroupModifyParams object // with the ability to set a timeout on a request. func NewNetworkIPBgpPeerGroupModifyParamsWithTimeout(timeout time.Duration) *NetworkIPBgpPeerGroupModifyParams { return &NetworkIPBgpPeerGroupModifyParams{ timeout: timeout, } } // NewNetworkIPBgpPeerGroupModifyParamsWithContext creates a new NetworkIPBgpPeerGroupModifyParams object // with the ability to set a context for a request. func NewNetworkIPBgpPeerGroupModifyParamsWithContext(ctx context.Context) *NetworkIPBgpPeerGroupModifyParams { return &NetworkIPBgpPeerGroupModifyParams{ Context: ctx, } } // NewNetworkIPBgpPeerGroupModifyParamsWithHTTPClient creates a new NetworkIPBgpPeerGroupModifyParams object // with the ability to set a custom HTTPClient for a request. func NewNetworkIPBgpPeerGroupModifyParamsWithHTTPClient(client *http.Client) *NetworkIPBgpPeerGroupModifyParams { return &NetworkIPBgpPeerGroupModifyParams{ HTTPClient: client, } } /* NetworkIPBgpPeerGroupModifyParams contains all the parameters to send to the API endpoint for the network ip bgp peer group modify operation. Typically these are written to a http.Request. */ type NetworkIPBgpPeerGroupModifyParams struct { // Info. Info *models.BgpPeerGroup /* UUID. UUID of the peer group */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the network ip bgp peer group modify params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkIPBgpPeerGroupModifyParams) WithDefaults() *NetworkIPBgpPeerGroupModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the network ip bgp peer group modify params (not the query body). // // All values with no default are reset to their zero value. func (o *NetworkIPBgpPeerGroupModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the network ip bgp peer group modify params func (o *NetworkIPBgpPeerGroupModifyParams) WithTimeout(timeout time.Duration) *NetworkIPBgpPeerGroupModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the network ip bgp peer group modify params func (o *NetworkIPBgpPeerGroupModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the network ip bgp peer group modify params func (o *NetworkIPBgpPeerGroupModifyParams) WithContext(ctx context.Context) *NetworkIPBgpPeerGroupModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the network ip bgp peer group modify params func (o *NetworkIPBgpPeerGroupModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the network ip bgp peer group modify params func (o *NetworkIPBgpPeerGroupModifyParams) WithHTTPClient(client *http.Client) *NetworkIPBgpPeerGroupModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the network ip bgp peer group modify params func (o *NetworkIPBgpPeerGroupModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the network ip bgp peer group modify params func (o *NetworkIPBgpPeerGroupModifyParams) WithInfo(info *models.BgpPeerGroup) *NetworkIPBgpPeerGroupModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the network ip bgp peer group modify params func (o *NetworkIPBgpPeerGroupModifyParams) SetInfo(info *models.BgpPeerGroup) { o.Info = info } // WithUUID adds the uuid to the network ip bgp peer group modify params func (o *NetworkIPBgpPeerGroupModifyParams) WithUUID(uuid string) *NetworkIPBgpPeerGroupModifyParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the network ip bgp peer group modify params func (o *NetworkIPBgpPeerGroupModifyParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *NetworkIPBgpPeerGroupModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/fc_port_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/fc_port_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // FcPortCollectionGetReader is a Reader for the FcPortCollectionGet structure. type FcPortCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *FcPortCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewFcPortCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewFcPortCollectionGetDefault(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 } } // NewFcPortCollectionGetOK creates a FcPortCollectionGetOK with default headers values func NewFcPortCollectionGetOK() *FcPortCollectionGetOK { return &FcPortCollectionGetOK{} } /* FcPortCollectionGetOK describes a response with status code 200, with default header values. OK */ type FcPortCollectionGetOK struct { Payload *models.FcPortResponse } // IsSuccess returns true when this fc port collection get o k response has a 2xx status code func (o *FcPortCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this fc port collection get o k response has a 3xx status code func (o *FcPortCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this fc port collection get o k response has a 4xx status code func (o *FcPortCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this fc port collection get o k response has a 5xx status code func (o *FcPortCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this fc port collection get o k response a status code equal to that given func (o *FcPortCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *FcPortCollectionGetOK) Error() string { return fmt.Sprintf("[GET /network/fc/ports][%d] fcPortCollectionGetOK %+v", 200, o.Payload) } func (o *FcPortCollectionGetOK) String() string { return fmt.Sprintf("[GET /network/fc/ports][%d] fcPortCollectionGetOK %+v", 200, o.Payload) } func (o *FcPortCollectionGetOK) GetPayload() *models.FcPortResponse { return o.Payload } func (o *FcPortCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.FcPortResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewFcPortCollectionGetDefault creates a FcPortCollectionGetDefault with default headers values func NewFcPortCollectionGetDefault(code int) *FcPortCollectionGetDefault { return &FcPortCollectionGetDefault{ _statusCode: code, } } /* FcPortCollectionGetDefault describes a response with status code -1, with default header values. Error */ type FcPortCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the fc port collection get default response func (o *FcPortCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this fc port collection get default response has a 2xx status code func (o *FcPortCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this fc port collection get default response has a 3xx status code func (o *FcPortCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this fc port collection get default response has a 4xx status code func (o *FcPortCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this fc port collection get default response has a 5xx status code func (o *FcPortCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this fc port collection get default response a status code equal to that given func (o *FcPortCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *FcPortCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /network/fc/ports][%d] fc_port_collection_get default %+v", o._statusCode, o.Payload) } func (o *FcPortCollectionGetDefault) String() string { return fmt.Sprintf("[GET /network/fc/ports][%d] fc_port_collection_get default %+v", o._statusCode, o.Payload) } func (o *FcPortCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *FcPortCollectionGetDefault) 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/networking/fabric_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/fabric_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // FabricGetReader is a Reader for the FabricGet structure. type FabricGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *FabricGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewFabricGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewFabricGetDefault(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 } } // NewFabricGetOK creates a FabricGetOK with default headers values func NewFabricGetOK() *FabricGetOK { return &FabricGetOK{} } /* FabricGetOK describes a response with status code 200, with default header values. OK */ type FabricGetOK struct { Payload *models.Fabric } // IsSuccess returns true when this fabric get o k response has a 2xx status code func (o *FabricGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this fabric get o k response has a 3xx status code func (o *FabricGetOK) IsRedirect() bool { return false } // IsClientError returns true when this fabric get o k response has a 4xx status code func (o *FabricGetOK) IsClientError() bool { return false } // IsServerError returns true when this fabric get o k response has a 5xx status code func (o *FabricGetOK) IsServerError() bool { return false } // IsCode returns true when this fabric get o k response a status code equal to that given func (o *FabricGetOK) IsCode(code int) bool { return code == 200 } func (o *FabricGetOK) Error() string { return fmt.Sprintf("[GET /network/fc/fabrics/{name}][%d] fabricGetOK %+v", 200, o.Payload) } func (o *FabricGetOK) String() string { return fmt.Sprintf("[GET /network/fc/fabrics/{name}][%d] fabricGetOK %+v", 200, o.Payload) } func (o *FabricGetOK) GetPayload() *models.Fabric { return o.Payload } func (o *FabricGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.Fabric) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewFabricGetDefault creates a FabricGetDefault with default headers values func NewFabricGetDefault(code int) *FabricGetDefault { return &FabricGetDefault{ _statusCode: code, } } /* FabricGetDefault describes a response with status code -1, with default header values. Error */ type FabricGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the fabric get default response func (o *FabricGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this fabric get default response has a 2xx status code func (o *FabricGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this fabric get default response has a 3xx status code func (o *FabricGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this fabric get default response has a 4xx status code func (o *FabricGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this fabric get default response has a 5xx status code func (o *FabricGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this fabric get default response a status code equal to that given func (o *FabricGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *FabricGetDefault) Error() string { return fmt.Sprintf("[GET /network/fc/fabrics/{name}][%d] fabric_get default %+v", o._statusCode, o.Payload) } func (o *FabricGetDefault) String() string { return fmt.Sprintf("[GET /network/fc/fabrics/{name}][%d] fabric_get default %+v", o._statusCode, o.Payload) } func (o *FabricGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *FabricGetDefault) 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/networking/interfaces_metrics_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/interfaces_metrics_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewInterfacesMetricsCollectionGetParams creates a new InterfacesMetricsCollectionGetParams 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 NewInterfacesMetricsCollectionGetParams() *InterfacesMetricsCollectionGetParams { return &InterfacesMetricsCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewInterfacesMetricsCollectionGetParamsWithTimeout creates a new InterfacesMetricsCollectionGetParams object // with the ability to set a timeout on a request. func NewInterfacesMetricsCollectionGetParamsWithTimeout(timeout time.Duration) *InterfacesMetricsCollectionGetParams { return &InterfacesMetricsCollectionGetParams{ timeout: timeout, } } // NewInterfacesMetricsCollectionGetParamsWithContext creates a new InterfacesMetricsCollectionGetParams object // with the ability to set a context for a request. func NewInterfacesMetricsCollectionGetParamsWithContext(ctx context.Context) *InterfacesMetricsCollectionGetParams { return &InterfacesMetricsCollectionGetParams{ Context: ctx, } } // NewInterfacesMetricsCollectionGetParamsWithHTTPClient creates a new InterfacesMetricsCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewInterfacesMetricsCollectionGetParamsWithHTTPClient(client *http.Client) *InterfacesMetricsCollectionGetParams { return &InterfacesMetricsCollectionGetParams{ HTTPClient: client, } } /* InterfacesMetricsCollectionGetParams contains all the parameters to send to the API endpoint for the interfaces metrics collection get operation. Typically these are written to a http.Request. */ type InterfacesMetricsCollectionGetParams 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 /* 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 /* 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 /* UUID. Unique identifier of the interface. */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the interfaces metrics collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *InterfacesMetricsCollectionGetParams) WithDefaults() *InterfacesMetricsCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the interfaces metrics collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *InterfacesMetricsCollectionGetParams) SetDefaults() { var ( intervalDefault = string("1h") returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := InterfacesMetricsCollectionGetParams{ 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 interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) WithTimeout(timeout time.Duration) *InterfacesMetricsCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) WithContext(ctx context.Context) *InterfacesMetricsCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) WithHTTPClient(client *http.Client) *InterfacesMetricsCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithDuration adds the duration to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) WithDuration(duration *string) *InterfacesMetricsCollectionGetParams { o.SetDuration(duration) return o } // SetDuration adds the duration to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) SetDuration(duration *string) { o.Duration = duration } // WithFields adds the fields to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) WithFields(fields []string) *InterfacesMetricsCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithInterval adds the interval to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) WithInterval(interval *string) *InterfacesMetricsCollectionGetParams { o.SetInterval(interval) return o } // SetInterval adds the interval to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) SetInterval(interval *string) { o.Interval = interval } // WithMaxRecords adds the maxRecords to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) WithMaxRecords(maxRecords *int64) *InterfacesMetricsCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) WithOrderBy(orderBy []string) *InterfacesMetricsCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) WithReturnRecords(returnRecords *bool) *InterfacesMetricsCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *InterfacesMetricsCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithStatus adds the status to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) WithStatus(status *string) *InterfacesMetricsCollectionGetParams { o.SetStatus(status) return o } // SetStatus adds the status to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) SetStatus(status *string) { o.Status = status } // WithThroughputRead adds the throughputRead to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) WithThroughputRead(throughputRead *int64) *InterfacesMetricsCollectionGetParams { o.SetThroughputRead(throughputRead) return o } // SetThroughputRead adds the throughputRead to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) SetThroughputRead(throughputRead *int64) { o.ThroughputRead = throughputRead } // WithThroughputTotal adds the throughputTotal to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) WithThroughputTotal(throughputTotal *int64) *InterfacesMetricsCollectionGetParams { o.SetThroughputTotal(throughputTotal) return o } // SetThroughputTotal adds the throughputTotal to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) SetThroughputTotal(throughputTotal *int64) { o.ThroughputTotal = throughputTotal } // WithThroughputWrite adds the throughputWrite to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) WithThroughputWrite(throughputWrite *int64) *InterfacesMetricsCollectionGetParams { o.SetThroughputWrite(throughputWrite) return o } // SetThroughputWrite adds the throughputWrite to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) SetThroughputWrite(throughputWrite *int64) { o.ThroughputWrite = throughputWrite } // WithTimestamp adds the timestamp to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) WithTimestamp(timestamp *string) *InterfacesMetricsCollectionGetParams { o.SetTimestamp(timestamp) return o } // SetTimestamp adds the timestamp to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) SetTimestamp(timestamp *string) { o.Timestamp = timestamp } // WithUUID adds the uuid to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) WithUUID(uuid string) *InterfacesMetricsCollectionGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the interfaces metrics collection get params func (o *InterfacesMetricsCollectionGetParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *InterfacesMetricsCollectionGetParams) 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.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 } } } 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 } } } // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamInterfacesMetricsCollectionGet binds the parameter fields func (o *InterfacesMetricsCollectionGetParams) 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 } // bindParamInterfacesMetricsCollectionGet binds the parameter order_by func (o *InterfacesMetricsCollectionGetParams) 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/networking/fc_interface_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/fc_interface_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewFcInterfaceCollectionGetParams creates a new FcInterfaceCollectionGetParams 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 NewFcInterfaceCollectionGetParams() *FcInterfaceCollectionGetParams { return &FcInterfaceCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewFcInterfaceCollectionGetParamsWithTimeout creates a new FcInterfaceCollectionGetParams object // with the ability to set a timeout on a request. func NewFcInterfaceCollectionGetParamsWithTimeout(timeout time.Duration) *FcInterfaceCollectionGetParams { return &FcInterfaceCollectionGetParams{ timeout: timeout, } } // NewFcInterfaceCollectionGetParamsWithContext creates a new FcInterfaceCollectionGetParams object // with the ability to set a context for a request. func NewFcInterfaceCollectionGetParamsWithContext(ctx context.Context) *FcInterfaceCollectionGetParams { return &FcInterfaceCollectionGetParams{ Context: ctx, } } // NewFcInterfaceCollectionGetParamsWithHTTPClient creates a new FcInterfaceCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewFcInterfaceCollectionGetParamsWithHTTPClient(client *http.Client) *FcInterfaceCollectionGetParams { return &FcInterfaceCollectionGetParams{ HTTPClient: client, } } /* FcInterfaceCollectionGetParams contains all the parameters to send to the API endpoint for the fc interface collection get operation. Typically these are written to a http.Request. */ type FcInterfaceCollectionGetParams struct { /* Comment. Filter by comment */ Comment *string /* DataProtocol. Filter by data_protocol */ DataProtocol *string /* Enabled. Filter by enabled */ Enabled *bool /* Fields. Specify the fields to return. */ Fields []string /* LocationHomeNodeName. Filter by location.home_node.name */ LocationHomeNodeName *string /* LocationHomeNodeUUID. Filter by location.home_node.uuid */ LocationHomeNodeUUID *string /* LocationHomePortName. Filter by location.home_port.name */ LocationHomePortName *string /* LocationHomePortNodeName. Filter by location.home_port.node.name */ LocationHomePortNodeName *string /* LocationHomePortUUID. Filter by location.home_port.uuid */ LocationHomePortUUID *string /* LocationIsHome. Filter by location.is_home */ LocationIsHome *bool /* LocationNodeName. Filter by location.node.name */ LocationNodeName *string /* LocationNodeUUID. Filter by location.node.uuid */ LocationNodeUUID *string /* LocationPortName. Filter by location.port.name */ LocationPortName *string /* LocationPortNodeName. Filter by location.port.node.name */ LocationPortNodeName *string /* LocationPortUUID. Filter by location.port.uuid */ LocationPortUUID *string /* 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 /* PortAddress. Filter by port_address */ PortAddress *string /* RecommendDataProtocol. The target data protocol for which to recommend FC interfaces. This query parameter is required when recommending FC interfaces. */ RecommendDataProtocol *string /* RecommendFabricsName. The names of the FC fabrics to target when recommending FC interfaces. If this query parameter is not provided, FC interfaces will be recommended for each FC fabric discovered. */ RecommendFabricsName []string /* RecommendInterfacesPerNode. The target number of interfaces per FC fabric per cluster node when recommending FC interfaces. If this query parameter is not provided, the default value is one (1). Default: 1 */ RecommendInterfacesPerNode *int64 /* RecommendNodesName. The names of the cluster nodes to target when recommending FC interfaces. If this query parameter is not provided, FC interfaces will be recommended for all nodes that have FC network ports supporting target data protocol. Query parameters `recommend.nodes.name` and `recommend.nodes.uuid` are mutually exclusive; use either names or UUIDs to identify cluster nodes. */ RecommendNodesName []string /* RecommendNodesUUID. The UUIDs of the cluster nodes to target when recommending FC interfaces. If this query parameter is not provided, FC interfaces will be recommended for all nodes that have FC network ports supporting target data protocol. Query parameters `recommend.nodes.name` and `recommend.nodes.uuid` are mutually exclusive; use either names or UUIDs to identify cluster nodes. */ RecommendNodesUUID []string /* RecommendProposedLocationsPortUUID. The UUIDs of the FC ports on which FC interfaces are proposed. A UUID may be supplied multiple times to proposed multiple FC interfaces. FC ports must be enabled, support the target data protocol and be reporting an FC fabric. */ RecommendProposedLocationsPortUUID []string /* RecommendSvmName. The name of an existing SVM for which to recommend FC interfaces. If neither query parameter `recommend.svm.name` nor `recommend.svm.uuid` are provided when recommending FC interfaces, recommendations are made for a new, non-existent SVM. */ RecommendSvmName *string /* RecommendSvmUUID. The UUID of an existing SVM for which to recommend FC interfaces. If neither query parameter `recommend.svm.name` nor `recommend.svm.uuid` are provided when recommending FC interfaces, recommendations are made for a new, non-existent SVM. */ RecommendSvmUUID *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 /* State. Filter by state */ State *string /* 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 /* UUID. Filter by uuid */ UUID *string /* Wwnn. Filter by wwnn */ Wwnn *string /* Wwpn. Filter by wwpn */ Wwpn *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the fc interface collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *FcInterfaceCollectionGetParams) WithDefaults() *FcInterfaceCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the fc interface collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *FcInterfaceCollectionGetParams) SetDefaults() { var ( recommendInterfacesPerNodeDefault = int64(1) returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := FcInterfaceCollectionGetParams{ RecommendInterfacesPerNode: &recommendInterfacesPerNodeDefault, ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithTimeout(timeout time.Duration) *FcInterfaceCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithContext(ctx context.Context) *FcInterfaceCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithHTTPClient(client *http.Client) *FcInterfaceCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithComment adds the comment to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithComment(comment *string) *FcInterfaceCollectionGetParams { o.SetComment(comment) return o } // SetComment adds the comment to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetComment(comment *string) { o.Comment = comment } // WithDataProtocol adds the dataProtocol to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithDataProtocol(dataProtocol *string) *FcInterfaceCollectionGetParams { o.SetDataProtocol(dataProtocol) return o } // SetDataProtocol adds the dataProtocol to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetDataProtocol(dataProtocol *string) { o.DataProtocol = dataProtocol } // WithEnabled adds the enabled to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithEnabled(enabled *bool) *FcInterfaceCollectionGetParams { o.SetEnabled(enabled) return o } // SetEnabled adds the enabled to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetEnabled(enabled *bool) { o.Enabled = enabled } // WithFields adds the fields to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithFields(fields []string) *FcInterfaceCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithLocationHomeNodeName adds the locationHomeNodeName to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithLocationHomeNodeName(locationHomeNodeName *string) *FcInterfaceCollectionGetParams { o.SetLocationHomeNodeName(locationHomeNodeName) return o } // SetLocationHomeNodeName adds the locationHomeNodeName to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetLocationHomeNodeName(locationHomeNodeName *string) { o.LocationHomeNodeName = locationHomeNodeName } // WithLocationHomeNodeUUID adds the locationHomeNodeUUID to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithLocationHomeNodeUUID(locationHomeNodeUUID *string) *FcInterfaceCollectionGetParams { o.SetLocationHomeNodeUUID(locationHomeNodeUUID) return o } // SetLocationHomeNodeUUID adds the locationHomeNodeUuid to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetLocationHomeNodeUUID(locationHomeNodeUUID *string) { o.LocationHomeNodeUUID = locationHomeNodeUUID } // WithLocationHomePortName adds the locationHomePortName to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithLocationHomePortName(locationHomePortName *string) *FcInterfaceCollectionGetParams { o.SetLocationHomePortName(locationHomePortName) return o } // SetLocationHomePortName adds the locationHomePortName to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetLocationHomePortName(locationHomePortName *string) { o.LocationHomePortName = locationHomePortName } // WithLocationHomePortNodeName adds the locationHomePortNodeName to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithLocationHomePortNodeName(locationHomePortNodeName *string) *FcInterfaceCollectionGetParams { o.SetLocationHomePortNodeName(locationHomePortNodeName) return o } // SetLocationHomePortNodeName adds the locationHomePortNodeName to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetLocationHomePortNodeName(locationHomePortNodeName *string) { o.LocationHomePortNodeName = locationHomePortNodeName } // WithLocationHomePortUUID adds the locationHomePortUUID to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithLocationHomePortUUID(locationHomePortUUID *string) *FcInterfaceCollectionGetParams { o.SetLocationHomePortUUID(locationHomePortUUID) return o } // SetLocationHomePortUUID adds the locationHomePortUuid to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetLocationHomePortUUID(locationHomePortUUID *string) { o.LocationHomePortUUID = locationHomePortUUID } // WithLocationIsHome adds the locationIsHome to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithLocationIsHome(locationIsHome *bool) *FcInterfaceCollectionGetParams { o.SetLocationIsHome(locationIsHome) return o } // SetLocationIsHome adds the locationIsHome to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetLocationIsHome(locationIsHome *bool) { o.LocationIsHome = locationIsHome } // WithLocationNodeName adds the locationNodeName to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithLocationNodeName(locationNodeName *string) *FcInterfaceCollectionGetParams { o.SetLocationNodeName(locationNodeName) return o } // SetLocationNodeName adds the locationNodeName to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetLocationNodeName(locationNodeName *string) { o.LocationNodeName = locationNodeName } // WithLocationNodeUUID adds the locationNodeUUID to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithLocationNodeUUID(locationNodeUUID *string) *FcInterfaceCollectionGetParams { o.SetLocationNodeUUID(locationNodeUUID) return o } // SetLocationNodeUUID adds the locationNodeUuid to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetLocationNodeUUID(locationNodeUUID *string) { o.LocationNodeUUID = locationNodeUUID } // WithLocationPortName adds the locationPortName to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithLocationPortName(locationPortName *string) *FcInterfaceCollectionGetParams { o.SetLocationPortName(locationPortName) return o } // SetLocationPortName adds the locationPortName to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetLocationPortName(locationPortName *string) { o.LocationPortName = locationPortName } // WithLocationPortNodeName adds the locationPortNodeName to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithLocationPortNodeName(locationPortNodeName *string) *FcInterfaceCollectionGetParams { o.SetLocationPortNodeName(locationPortNodeName) return o } // SetLocationPortNodeName adds the locationPortNodeName to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetLocationPortNodeName(locationPortNodeName *string) { o.LocationPortNodeName = locationPortNodeName } // WithLocationPortUUID adds the locationPortUUID to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithLocationPortUUID(locationPortUUID *string) *FcInterfaceCollectionGetParams { o.SetLocationPortUUID(locationPortUUID) return o } // SetLocationPortUUID adds the locationPortUuid to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetLocationPortUUID(locationPortUUID *string) { o.LocationPortUUID = locationPortUUID } // WithMaxRecords adds the maxRecords to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithMaxRecords(maxRecords *int64) *FcInterfaceCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithMetricDuration adds the metricDuration to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithMetricDuration(metricDuration *string) *FcInterfaceCollectionGetParams { o.SetMetricDuration(metricDuration) return o } // SetMetricDuration adds the metricDuration to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetMetricDuration(metricDuration *string) { o.MetricDuration = metricDuration } // WithMetricIopsOther adds the metricIopsOther to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithMetricIopsOther(metricIopsOther *int64) *FcInterfaceCollectionGetParams { o.SetMetricIopsOther(metricIopsOther) return o } // SetMetricIopsOther adds the metricIopsOther to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetMetricIopsOther(metricIopsOther *int64) { o.MetricIopsOther = metricIopsOther } // WithMetricIopsRead adds the metricIopsRead to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithMetricIopsRead(metricIopsRead *int64) *FcInterfaceCollectionGetParams { o.SetMetricIopsRead(metricIopsRead) return o } // SetMetricIopsRead adds the metricIopsRead to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetMetricIopsRead(metricIopsRead *int64) { o.MetricIopsRead = metricIopsRead } // WithMetricIopsTotal adds the metricIopsTotal to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithMetricIopsTotal(metricIopsTotal *int64) *FcInterfaceCollectionGetParams { o.SetMetricIopsTotal(metricIopsTotal) return o } // SetMetricIopsTotal adds the metricIopsTotal to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetMetricIopsTotal(metricIopsTotal *int64) { o.MetricIopsTotal = metricIopsTotal } // WithMetricIopsWrite adds the metricIopsWrite to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithMetricIopsWrite(metricIopsWrite *int64) *FcInterfaceCollectionGetParams { o.SetMetricIopsWrite(metricIopsWrite) return o } // SetMetricIopsWrite adds the metricIopsWrite to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetMetricIopsWrite(metricIopsWrite *int64) { o.MetricIopsWrite = metricIopsWrite } // WithMetricLatencyOther adds the metricLatencyOther to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithMetricLatencyOther(metricLatencyOther *int64) *FcInterfaceCollectionGetParams { o.SetMetricLatencyOther(metricLatencyOther) return o } // SetMetricLatencyOther adds the metricLatencyOther to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetMetricLatencyOther(metricLatencyOther *int64) { o.MetricLatencyOther = metricLatencyOther } // WithMetricLatencyRead adds the metricLatencyRead to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithMetricLatencyRead(metricLatencyRead *int64) *FcInterfaceCollectionGetParams { o.SetMetricLatencyRead(metricLatencyRead) return o } // SetMetricLatencyRead adds the metricLatencyRead to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetMetricLatencyRead(metricLatencyRead *int64) { o.MetricLatencyRead = metricLatencyRead } // WithMetricLatencyTotal adds the metricLatencyTotal to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithMetricLatencyTotal(metricLatencyTotal *int64) *FcInterfaceCollectionGetParams { o.SetMetricLatencyTotal(metricLatencyTotal) return o } // SetMetricLatencyTotal adds the metricLatencyTotal to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetMetricLatencyTotal(metricLatencyTotal *int64) { o.MetricLatencyTotal = metricLatencyTotal } // WithMetricLatencyWrite adds the metricLatencyWrite to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithMetricLatencyWrite(metricLatencyWrite *int64) *FcInterfaceCollectionGetParams { o.SetMetricLatencyWrite(metricLatencyWrite) return o } // SetMetricLatencyWrite adds the metricLatencyWrite to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetMetricLatencyWrite(metricLatencyWrite *int64) { o.MetricLatencyWrite = metricLatencyWrite } // WithMetricStatus adds the metricStatus to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithMetricStatus(metricStatus *string) *FcInterfaceCollectionGetParams { o.SetMetricStatus(metricStatus) return o } // SetMetricStatus adds the metricStatus to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetMetricStatus(metricStatus *string) { o.MetricStatus = metricStatus } // WithMetricThroughputRead adds the metricThroughputRead to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithMetricThroughputRead(metricThroughputRead *int64) *FcInterfaceCollectionGetParams { o.SetMetricThroughputRead(metricThroughputRead) return o } // SetMetricThroughputRead adds the metricThroughputRead to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetMetricThroughputRead(metricThroughputRead *int64) { o.MetricThroughputRead = metricThroughputRead } // WithMetricThroughputTotal adds the metricThroughputTotal to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithMetricThroughputTotal(metricThroughputTotal *int64) *FcInterfaceCollectionGetParams { o.SetMetricThroughputTotal(metricThroughputTotal) return o } // SetMetricThroughputTotal adds the metricThroughputTotal to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetMetricThroughputTotal(metricThroughputTotal *int64) { o.MetricThroughputTotal = metricThroughputTotal } // WithMetricThroughputWrite adds the metricThroughputWrite to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithMetricThroughputWrite(metricThroughputWrite *int64) *FcInterfaceCollectionGetParams { o.SetMetricThroughputWrite(metricThroughputWrite) return o } // SetMetricThroughputWrite adds the metricThroughputWrite to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetMetricThroughputWrite(metricThroughputWrite *int64) { o.MetricThroughputWrite = metricThroughputWrite } // WithMetricTimestamp adds the metricTimestamp to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithMetricTimestamp(metricTimestamp *string) *FcInterfaceCollectionGetParams { o.SetMetricTimestamp(metricTimestamp) return o } // SetMetricTimestamp adds the metricTimestamp to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetMetricTimestamp(metricTimestamp *string) { o.MetricTimestamp = metricTimestamp } // WithName adds the name to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithName(name *string) *FcInterfaceCollectionGetParams { o.SetName(name) return o } // SetName adds the name to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetName(name *string) { o.Name = name } // WithOrderBy adds the orderBy to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithOrderBy(orderBy []string) *FcInterfaceCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithPortAddress adds the portAddress to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithPortAddress(portAddress *string) *FcInterfaceCollectionGetParams { o.SetPortAddress(portAddress) return o } // SetPortAddress adds the portAddress to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetPortAddress(portAddress *string) { o.PortAddress = portAddress } // WithRecommendDataProtocol adds the recommendDataProtocol to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithRecommendDataProtocol(recommendDataProtocol *string) *FcInterfaceCollectionGetParams { o.SetRecommendDataProtocol(recommendDataProtocol) return o } // SetRecommendDataProtocol adds the recommendDataProtocol to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetRecommendDataProtocol(recommendDataProtocol *string) { o.RecommendDataProtocol = recommendDataProtocol } // WithRecommendFabricsName adds the recommendFabricsName to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithRecommendFabricsName(recommendFabricsName []string) *FcInterfaceCollectionGetParams { o.SetRecommendFabricsName(recommendFabricsName) return o } // SetRecommendFabricsName adds the recommendFabricsName to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetRecommendFabricsName(recommendFabricsName []string) { o.RecommendFabricsName = recommendFabricsName } // WithRecommendInterfacesPerNode adds the recommendInterfacesPerNode to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithRecommendInterfacesPerNode(recommendInterfacesPerNode *int64) *FcInterfaceCollectionGetParams { o.SetRecommendInterfacesPerNode(recommendInterfacesPerNode) return o } // SetRecommendInterfacesPerNode adds the recommendInterfacesPerNode to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetRecommendInterfacesPerNode(recommendInterfacesPerNode *int64) { o.RecommendInterfacesPerNode = recommendInterfacesPerNode } // WithRecommendNodesName adds the recommendNodesName to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithRecommendNodesName(recommendNodesName []string) *FcInterfaceCollectionGetParams { o.SetRecommendNodesName(recommendNodesName) return o } // SetRecommendNodesName adds the recommendNodesName to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetRecommendNodesName(recommendNodesName []string) { o.RecommendNodesName = recommendNodesName } // WithRecommendNodesUUID adds the recommendNodesUUID to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithRecommendNodesUUID(recommendNodesUUID []string) *FcInterfaceCollectionGetParams { o.SetRecommendNodesUUID(recommendNodesUUID) return o } // SetRecommendNodesUUID adds the recommendNodesUuid to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetRecommendNodesUUID(recommendNodesUUID []string) { o.RecommendNodesUUID = recommendNodesUUID } // WithRecommendProposedLocationsPortUUID adds the recommendProposedLocationsPortUUID to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithRecommendProposedLocationsPortUUID(recommendProposedLocationsPortUUID []string) *FcInterfaceCollectionGetParams { o.SetRecommendProposedLocationsPortUUID(recommendProposedLocationsPortUUID) return o } // SetRecommendProposedLocationsPortUUID adds the recommendProposedLocationsPortUuid to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetRecommendProposedLocationsPortUUID(recommendProposedLocationsPortUUID []string) { o.RecommendProposedLocationsPortUUID = recommendProposedLocationsPortUUID } // WithRecommendSvmName adds the recommendSvmName to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithRecommendSvmName(recommendSvmName *string) *FcInterfaceCollectionGetParams { o.SetRecommendSvmName(recommendSvmName) return o } // SetRecommendSvmName adds the recommendSvmName to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetRecommendSvmName(recommendSvmName *string) { o.RecommendSvmName = recommendSvmName } // WithRecommendSvmUUID adds the recommendSvmUUID to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithRecommendSvmUUID(recommendSvmUUID *string) *FcInterfaceCollectionGetParams { o.SetRecommendSvmUUID(recommendSvmUUID) return o } // SetRecommendSvmUUID adds the recommendSvmUuid to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetRecommendSvmUUID(recommendSvmUUID *string) { o.RecommendSvmUUID = recommendSvmUUID } // WithReturnRecords adds the returnRecords to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithReturnRecords(returnRecords *bool) *FcInterfaceCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the fc interface collection get params func (o *FcInterfaceCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *FcInterfaceCollectionGetParams {
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/networking/fabric_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/networking/fabric_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package networking // 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" ) // NewFabricGetParams creates a new FabricGetParams 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 NewFabricGetParams() *FabricGetParams { return &FabricGetParams{ timeout: cr.DefaultTimeout, } } // NewFabricGetParamsWithTimeout creates a new FabricGetParams object // with the ability to set a timeout on a request. func NewFabricGetParamsWithTimeout(timeout time.Duration) *FabricGetParams { return &FabricGetParams{ timeout: timeout, } } // NewFabricGetParamsWithContext creates a new FabricGetParams object // with the ability to set a context for a request. func NewFabricGetParamsWithContext(ctx context.Context) *FabricGetParams { return &FabricGetParams{ Context: ctx, } } // NewFabricGetParamsWithHTTPClient creates a new FabricGetParams object // with the ability to set a custom HTTPClient for a request. func NewFabricGetParamsWithHTTPClient(client *http.Client) *FabricGetParams { return &FabricGetParams{ HTTPClient: client, } } /* FabricGetParams contains all the parameters to send to the API endpoint for the fabric get operation. Typically these are written to a http.Request. */ type FabricGetParams struct { /* CacheMaximumAge. The maximum age of data in the Fibre Channel fabric cache before it should be refreshed from the fabric. The default is 15 minutes. Format: iso8601 Default: "15 minutes" */ CacheMaximumAge *string /* Fields. Specify the fields to return. */ Fields []string /* Name. The world wide name (WWN) of the primary switch of the Fibre Channel fabric. */ Name string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the fabric get params (not the query body). // // All values with no default are reset to their zero value. func (o *FabricGetParams) WithDefaults() *FabricGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the fabric get params (not the query body). // // All values with no default are reset to their zero value. func (o *FabricGetParams) SetDefaults() { var ( cacheMaximumAgeDefault = string("15 minutes") ) val := FabricGetParams{ CacheMaximumAge: &cacheMaximumAgeDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the fabric get params func (o *FabricGetParams) WithTimeout(timeout time.Duration) *FabricGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the fabric get params func (o *FabricGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the fabric get params func (o *FabricGetParams) WithContext(ctx context.Context) *FabricGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the fabric get params func (o *FabricGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the fabric get params func (o *FabricGetParams) WithHTTPClient(client *http.Client) *FabricGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the fabric get params func (o *FabricGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithCacheMaximumAge adds the cacheMaximumAge to the fabric get params func (o *FabricGetParams) WithCacheMaximumAge(cacheMaximumAge *string) *FabricGetParams { o.SetCacheMaximumAge(cacheMaximumAge) return o } // SetCacheMaximumAge adds the cacheMaximumAge to the fabric get params func (o *FabricGetParams) SetCacheMaximumAge(cacheMaximumAge *string) { o.CacheMaximumAge = cacheMaximumAge } // WithFields adds the fields to the fabric get params func (o *FabricGetParams) WithFields(fields []string) *FabricGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the fabric get params func (o *FabricGetParams) SetFields(fields []string) { o.Fields = fields } // WithName adds the name to the fabric get params func (o *FabricGetParams) WithName(name string) *FabricGetParams { o.SetName(name) return o } // SetName adds the name to the fabric get params func (o *FabricGetParams) SetName(name string) { o.Name = name } // WriteToRequest writes these params to a swagger request func (o *FabricGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.CacheMaximumAge != nil { // query param cache.maximum_age var qrCacheMaximumAge string if o.CacheMaximumAge != nil { qrCacheMaximumAge = *o.CacheMaximumAge } qCacheMaximumAge := qrCacheMaximumAge if qCacheMaximumAge != "" { if err := r.SetQueryParam("cache.maximum_age", qCacheMaximumAge); err != nil { return err } } } if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } // path param name if err := r.SetPathParam("name", o.Name); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamFabricGet binds the parameter fields func (o *FabricGetParams) 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/ndmp/ndmp_svm_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_svm_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NdmpSvmCollectionGetReader is a Reader for the NdmpSvmCollectionGet structure. type NdmpSvmCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NdmpSvmCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNdmpSvmCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNdmpSvmCollectionGetDefault(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 } } // NewNdmpSvmCollectionGetOK creates a NdmpSvmCollectionGetOK with default headers values func NewNdmpSvmCollectionGetOK() *NdmpSvmCollectionGetOK { return &NdmpSvmCollectionGetOK{} } /* NdmpSvmCollectionGetOK describes a response with status code 200, with default header values. OK */ type NdmpSvmCollectionGetOK struct { Payload *models.NdmpSvmResponse } // IsSuccess returns true when this ndmp svm collection get o k response has a 2xx status code func (o *NdmpSvmCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this ndmp svm collection get o k response has a 3xx status code func (o *NdmpSvmCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this ndmp svm collection get o k response has a 4xx status code func (o *NdmpSvmCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this ndmp svm collection get o k response has a 5xx status code func (o *NdmpSvmCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this ndmp svm collection get o k response a status code equal to that given func (o *NdmpSvmCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *NdmpSvmCollectionGetOK) Error() string { return fmt.Sprintf("[GET /protocols/ndmp/svms][%d] ndmpSvmCollectionGetOK %+v", 200, o.Payload) } func (o *NdmpSvmCollectionGetOK) String() string { return fmt.Sprintf("[GET /protocols/ndmp/svms][%d] ndmpSvmCollectionGetOK %+v", 200, o.Payload) } func (o *NdmpSvmCollectionGetOK) GetPayload() *models.NdmpSvmResponse { return o.Payload } func (o *NdmpSvmCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.NdmpSvmResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewNdmpSvmCollectionGetDefault creates a NdmpSvmCollectionGetDefault with default headers values func NewNdmpSvmCollectionGetDefault(code int) *NdmpSvmCollectionGetDefault { return &NdmpSvmCollectionGetDefault{ _statusCode: code, } } /* NdmpSvmCollectionGetDefault describes a response with status code -1, with default header values. Error */ type NdmpSvmCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ndmp svm collection get default response func (o *NdmpSvmCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ndmp svm collection get default response has a 2xx status code func (o *NdmpSvmCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ndmp svm collection get default response has a 3xx status code func (o *NdmpSvmCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ndmp svm collection get default response has a 4xx status code func (o *NdmpSvmCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ndmp svm collection get default response has a 5xx status code func (o *NdmpSvmCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ndmp svm collection get default response a status code equal to that given func (o *NdmpSvmCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NdmpSvmCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/ndmp/svms][%d] ndmp_svm_collection_get default %+v", o._statusCode, o.Payload) } func (o *NdmpSvmCollectionGetDefault) String() string { return fmt.Sprintf("[GET /protocols/ndmp/svms][%d] ndmp_svm_collection_get default %+v", o._statusCode, o.Payload) } func (o *NdmpSvmCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NdmpSvmCollectionGetDefault) 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/ndmp/ndmp_svm_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_svm_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NewNdmpSvmGetParams creates a new NdmpSvmGetParams 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 NewNdmpSvmGetParams() *NdmpSvmGetParams { return &NdmpSvmGetParams{ timeout: cr.DefaultTimeout, } } // NewNdmpSvmGetParamsWithTimeout creates a new NdmpSvmGetParams object // with the ability to set a timeout on a request. func NewNdmpSvmGetParamsWithTimeout(timeout time.Duration) *NdmpSvmGetParams { return &NdmpSvmGetParams{ timeout: timeout, } } // NewNdmpSvmGetParamsWithContext creates a new NdmpSvmGetParams object // with the ability to set a context for a request. func NewNdmpSvmGetParamsWithContext(ctx context.Context) *NdmpSvmGetParams { return &NdmpSvmGetParams{ Context: ctx, } } // NewNdmpSvmGetParamsWithHTTPClient creates a new NdmpSvmGetParams object // with the ability to set a custom HTTPClient for a request. func NewNdmpSvmGetParamsWithHTTPClient(client *http.Client) *NdmpSvmGetParams { return &NdmpSvmGetParams{ HTTPClient: client, } } /* NdmpSvmGetParams contains all the parameters to send to the API endpoint for the ndmp svm get operation. Typically these are written to a http.Request. */ type NdmpSvmGetParams 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 ndmp svm get params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpSvmGetParams) WithDefaults() *NdmpSvmGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ndmp svm get params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpSvmGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the ndmp svm get params func (o *NdmpSvmGetParams) WithTimeout(timeout time.Duration) *NdmpSvmGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ndmp svm get params func (o *NdmpSvmGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ndmp svm get params func (o *NdmpSvmGetParams) WithContext(ctx context.Context) *NdmpSvmGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the ndmp svm get params func (o *NdmpSvmGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ndmp svm get params func (o *NdmpSvmGetParams) WithHTTPClient(client *http.Client) *NdmpSvmGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ndmp svm get params func (o *NdmpSvmGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the ndmp svm get params func (o *NdmpSvmGetParams) WithFields(fields []string) *NdmpSvmGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the ndmp svm get params func (o *NdmpSvmGetParams) SetFields(fields []string) { o.Fields = fields } // WithSvmUUID adds the svmUUID to the ndmp svm get params func (o *NdmpSvmGetParams) WithSvmUUID(svmUUID string) *NdmpSvmGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the ndmp svm get params func (o *NdmpSvmGetParams) SetSvmUUID(svmUUID string) { o.SvmUUID = svmUUID } // WriteToRequest writes these params to a swagger request func (o *NdmpSvmGetParams) 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 } // bindParamNdmpSvmGet binds the parameter fields func (o *NdmpSvmGetParams) 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/ndmp/ndmp_node_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_node_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NewNdmpNodeGetParams creates a new NdmpNodeGetParams 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 NewNdmpNodeGetParams() *NdmpNodeGetParams { return &NdmpNodeGetParams{ timeout: cr.DefaultTimeout, } } // NewNdmpNodeGetParamsWithTimeout creates a new NdmpNodeGetParams object // with the ability to set a timeout on a request. func NewNdmpNodeGetParamsWithTimeout(timeout time.Duration) *NdmpNodeGetParams { return &NdmpNodeGetParams{ timeout: timeout, } } // NewNdmpNodeGetParamsWithContext creates a new NdmpNodeGetParams object // with the ability to set a context for a request. func NewNdmpNodeGetParamsWithContext(ctx context.Context) *NdmpNodeGetParams { return &NdmpNodeGetParams{ Context: ctx, } } // NewNdmpNodeGetParamsWithHTTPClient creates a new NdmpNodeGetParams object // with the ability to set a custom HTTPClient for a request. func NewNdmpNodeGetParamsWithHTTPClient(client *http.Client) *NdmpNodeGetParams { return &NdmpNodeGetParams{ HTTPClient: client, } } /* NdmpNodeGetParams contains all the parameters to send to the API endpoint for the ndmp node get operation. Typically these are written to a http.Request. */ type NdmpNodeGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* NodeUUID. Node UUID */ NodeUUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ndmp node get params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpNodeGetParams) WithDefaults() *NdmpNodeGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ndmp node get params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpNodeGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the ndmp node get params func (o *NdmpNodeGetParams) WithTimeout(timeout time.Duration) *NdmpNodeGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ndmp node get params func (o *NdmpNodeGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ndmp node get params func (o *NdmpNodeGetParams) WithContext(ctx context.Context) *NdmpNodeGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the ndmp node get params func (o *NdmpNodeGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ndmp node get params func (o *NdmpNodeGetParams) WithHTTPClient(client *http.Client) *NdmpNodeGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ndmp node get params func (o *NdmpNodeGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the ndmp node get params func (o *NdmpNodeGetParams) WithFields(fields []string) *NdmpNodeGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the ndmp node get params func (o *NdmpNodeGetParams) SetFields(fields []string) { o.Fields = fields } // WithNodeUUID adds the nodeUUID to the ndmp node get params func (o *NdmpNodeGetParams) WithNodeUUID(nodeUUID string) *NdmpNodeGetParams { o.SetNodeUUID(nodeUUID) return o } // SetNodeUUID adds the nodeUuid to the ndmp node get params func (o *NdmpNodeGetParams) SetNodeUUID(nodeUUID string) { o.NodeUUID = nodeUUID } // WriteToRequest writes these params to a swagger request func (o *NdmpNodeGetParams) 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 node.uuid if err := r.SetPathParam("node.uuid", o.NodeUUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamNdmpNodeGet binds the parameter fields func (o *NdmpNodeGetParams) 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/ndmp/ndmp_node_session_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_node_session_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NewNdmpNodeSessionDeleteParams creates a new NdmpNodeSessionDeleteParams 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 NewNdmpNodeSessionDeleteParams() *NdmpNodeSessionDeleteParams { return &NdmpNodeSessionDeleteParams{ timeout: cr.DefaultTimeout, } } // NewNdmpNodeSessionDeleteParamsWithTimeout creates a new NdmpNodeSessionDeleteParams object // with the ability to set a timeout on a request. func NewNdmpNodeSessionDeleteParamsWithTimeout(timeout time.Duration) *NdmpNodeSessionDeleteParams { return &NdmpNodeSessionDeleteParams{ timeout: timeout, } } // NewNdmpNodeSessionDeleteParamsWithContext creates a new NdmpNodeSessionDeleteParams object // with the ability to set a context for a request. func NewNdmpNodeSessionDeleteParamsWithContext(ctx context.Context) *NdmpNodeSessionDeleteParams { return &NdmpNodeSessionDeleteParams{ Context: ctx, } } // NewNdmpNodeSessionDeleteParamsWithHTTPClient creates a new NdmpNodeSessionDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewNdmpNodeSessionDeleteParamsWithHTTPClient(client *http.Client) *NdmpNodeSessionDeleteParams { return &NdmpNodeSessionDeleteParams{ HTTPClient: client, } } /* NdmpNodeSessionDeleteParams contains all the parameters to send to the API endpoint for the ndmp node session delete operation. Typically these are written to a http.Request. */ type NdmpNodeSessionDeleteParams struct { /* OwnerUUID. NDMP node UUID */ OwnerUUID string /* SessionID. Session identifier */ SessionID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ndmp node session delete params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpNodeSessionDeleteParams) WithDefaults() *NdmpNodeSessionDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ndmp node session delete params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpNodeSessionDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the ndmp node session delete params func (o *NdmpNodeSessionDeleteParams) WithTimeout(timeout time.Duration) *NdmpNodeSessionDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ndmp node session delete params func (o *NdmpNodeSessionDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ndmp node session delete params func (o *NdmpNodeSessionDeleteParams) WithContext(ctx context.Context) *NdmpNodeSessionDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the ndmp node session delete params func (o *NdmpNodeSessionDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ndmp node session delete params func (o *NdmpNodeSessionDeleteParams) WithHTTPClient(client *http.Client) *NdmpNodeSessionDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ndmp node session delete params func (o *NdmpNodeSessionDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithOwnerUUID adds the ownerUUID to the ndmp node session delete params func (o *NdmpNodeSessionDeleteParams) WithOwnerUUID(ownerUUID string) *NdmpNodeSessionDeleteParams { o.SetOwnerUUID(ownerUUID) return o } // SetOwnerUUID adds the ownerUuid to the ndmp node session delete params func (o *NdmpNodeSessionDeleteParams) SetOwnerUUID(ownerUUID string) { o.OwnerUUID = ownerUUID } // WithSessionID adds the sessionID to the ndmp node session delete params func (o *NdmpNodeSessionDeleteParams) WithSessionID(sessionID string) *NdmpNodeSessionDeleteParams { o.SetSessionID(sessionID) return o } // SetSessionID adds the sessionId to the ndmp node session delete params func (o *NdmpNodeSessionDeleteParams) SetSessionID(sessionID string) { o.SessionID = sessionID } // WriteToRequest writes these params to a swagger request func (o *NdmpNodeSessionDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param owner.uuid if err := r.SetPathParam("owner.uuid", o.OwnerUUID); err != nil { return err } // path param session.id if err := r.SetPathParam("session.id", o.SessionID); 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/ndmp/ndmp_password_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_password_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NewNdmpPasswordGetParams creates a new NdmpPasswordGetParams 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 NewNdmpPasswordGetParams() *NdmpPasswordGetParams { return &NdmpPasswordGetParams{ timeout: cr.DefaultTimeout, } } // NewNdmpPasswordGetParamsWithTimeout creates a new NdmpPasswordGetParams object // with the ability to set a timeout on a request. func NewNdmpPasswordGetParamsWithTimeout(timeout time.Duration) *NdmpPasswordGetParams { return &NdmpPasswordGetParams{ timeout: timeout, } } // NewNdmpPasswordGetParamsWithContext creates a new NdmpPasswordGetParams object // with the ability to set a context for a request. func NewNdmpPasswordGetParamsWithContext(ctx context.Context) *NdmpPasswordGetParams { return &NdmpPasswordGetParams{ Context: ctx, } } // NewNdmpPasswordGetParamsWithHTTPClient creates a new NdmpPasswordGetParams object // with the ability to set a custom HTTPClient for a request. func NewNdmpPasswordGetParamsWithHTTPClient(client *http.Client) *NdmpPasswordGetParams { return &NdmpPasswordGetParams{ HTTPClient: client, } } /* NdmpPasswordGetParams contains all the parameters to send to the API endpoint for the ndmp password get operation. Typically these are written to a http.Request. */ type NdmpPasswordGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* SvmUUID. SVM UUID */ SvmUUID string /* User. User name */ User string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ndmp password get params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpPasswordGetParams) WithDefaults() *NdmpPasswordGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ndmp password get params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpPasswordGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the ndmp password get params func (o *NdmpPasswordGetParams) WithTimeout(timeout time.Duration) *NdmpPasswordGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ndmp password get params func (o *NdmpPasswordGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ndmp password get params func (o *NdmpPasswordGetParams) WithContext(ctx context.Context) *NdmpPasswordGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the ndmp password get params func (o *NdmpPasswordGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ndmp password get params func (o *NdmpPasswordGetParams) WithHTTPClient(client *http.Client) *NdmpPasswordGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ndmp password get params func (o *NdmpPasswordGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the ndmp password get params func (o *NdmpPasswordGetParams) WithFields(fields []string) *NdmpPasswordGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the ndmp password get params func (o *NdmpPasswordGetParams) SetFields(fields []string) { o.Fields = fields } // WithSvmUUID adds the svmUUID to the ndmp password get params func (o *NdmpPasswordGetParams) WithSvmUUID(svmUUID string) *NdmpPasswordGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the ndmp password get params func (o *NdmpPasswordGetParams) SetSvmUUID(svmUUID string) { o.SvmUUID = svmUUID } // WithUser adds the user to the ndmp password get params func (o *NdmpPasswordGetParams) WithUser(user string) *NdmpPasswordGetParams { o.SetUser(user) return o } // SetUser adds the user to the ndmp password get params func (o *NdmpPasswordGetParams) SetUser(user string) { o.User = user } // WriteToRequest writes these params to a swagger request func (o *NdmpPasswordGetParams) 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 user if err := r.SetPathParam("user", o.User); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamNdmpPasswordGet binds the parameter fields func (o *NdmpPasswordGetParams) 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/ndmp/ndmp_node_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_node_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NdmpNodeModifyReader is a Reader for the NdmpNodeModify structure. type NdmpNodeModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NdmpNodeModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNdmpNodeModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNdmpNodeModifyDefault(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 } } // NewNdmpNodeModifyOK creates a NdmpNodeModifyOK with default headers values func NewNdmpNodeModifyOK() *NdmpNodeModifyOK { return &NdmpNodeModifyOK{} } /* NdmpNodeModifyOK describes a response with status code 200, with default header values. OK */ type NdmpNodeModifyOK struct { Payload *models.NdmpNode } // IsSuccess returns true when this ndmp node modify o k response has a 2xx status code func (o *NdmpNodeModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this ndmp node modify o k response has a 3xx status code func (o *NdmpNodeModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this ndmp node modify o k response has a 4xx status code func (o *NdmpNodeModifyOK) IsClientError() bool { return false } // IsServerError returns true when this ndmp node modify o k response has a 5xx status code func (o *NdmpNodeModifyOK) IsServerError() bool { return false } // IsCode returns true when this ndmp node modify o k response a status code equal to that given func (o *NdmpNodeModifyOK) IsCode(code int) bool { return code == 200 } func (o *NdmpNodeModifyOK) Error() string { return fmt.Sprintf("[PATCH /protocols/ndmp/nodes/{node.uuid}][%d] ndmpNodeModifyOK %+v", 200, o.Payload) } func (o *NdmpNodeModifyOK) String() string { return fmt.Sprintf("[PATCH /protocols/ndmp/nodes/{node.uuid}][%d] ndmpNodeModifyOK %+v", 200, o.Payload) } func (o *NdmpNodeModifyOK) GetPayload() *models.NdmpNode { return o.Payload } func (o *NdmpNodeModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.NdmpNode) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewNdmpNodeModifyDefault creates a NdmpNodeModifyDefault with default headers values func NewNdmpNodeModifyDefault(code int) *NdmpNodeModifyDefault { return &NdmpNodeModifyDefault{ _statusCode: code, } } /* NdmpNodeModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response codes | Error code | Description | |-------------|--------------| | 68812800 | The user is required to enable NDMP on a node.| | 68812801 | Node-scoped operations are not allowed in an SVM-scope.| | 68812802 | The UUID is not valid.| */ type NdmpNodeModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ndmp node modify default response func (o *NdmpNodeModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ndmp node modify default response has a 2xx status code func (o *NdmpNodeModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ndmp node modify default response has a 3xx status code func (o *NdmpNodeModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ndmp node modify default response has a 4xx status code func (o *NdmpNodeModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ndmp node modify default response has a 5xx status code func (o *NdmpNodeModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ndmp node modify default response a status code equal to that given func (o *NdmpNodeModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NdmpNodeModifyDefault) Error() string { return fmt.Sprintf("[PATCH /protocols/ndmp/nodes/{node.uuid}][%d] ndmp_node_modify default %+v", o._statusCode, o.Payload) } func (o *NdmpNodeModifyDefault) String() string { return fmt.Sprintf("[PATCH /protocols/ndmp/nodes/{node.uuid}][%d] ndmp_node_modify default %+v", o._statusCode, o.Payload) } func (o *NdmpNodeModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NdmpNodeModifyDefault) 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/ndmp/ndmp_node_sessions_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_node_sessions_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NdmpNodeSessionsCollectionGetReader is a Reader for the NdmpNodeSessionsCollectionGet structure. type NdmpNodeSessionsCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NdmpNodeSessionsCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNdmpNodeSessionsCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNdmpNodeSessionsCollectionGetDefault(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 } } // NewNdmpNodeSessionsCollectionGetOK creates a NdmpNodeSessionsCollectionGetOK with default headers values func NewNdmpNodeSessionsCollectionGetOK() *NdmpNodeSessionsCollectionGetOK { return &NdmpNodeSessionsCollectionGetOK{} } /* NdmpNodeSessionsCollectionGetOK describes a response with status code 200, with default header values. OK */ type NdmpNodeSessionsCollectionGetOK struct { Payload *models.NdmpSessionResponse } // IsSuccess returns true when this ndmp node sessions collection get o k response has a 2xx status code func (o *NdmpNodeSessionsCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this ndmp node sessions collection get o k response has a 3xx status code func (o *NdmpNodeSessionsCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this ndmp node sessions collection get o k response has a 4xx status code func (o *NdmpNodeSessionsCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this ndmp node sessions collection get o k response has a 5xx status code func (o *NdmpNodeSessionsCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this ndmp node sessions collection get o k response a status code equal to that given func (o *NdmpNodeSessionsCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *NdmpNodeSessionsCollectionGetOK) Error() string { return fmt.Sprintf("[GET /protocols/ndmp/sessions][%d] ndmpNodeSessionsCollectionGetOK %+v", 200, o.Payload) } func (o *NdmpNodeSessionsCollectionGetOK) String() string { return fmt.Sprintf("[GET /protocols/ndmp/sessions][%d] ndmpNodeSessionsCollectionGetOK %+v", 200, o.Payload) } func (o *NdmpNodeSessionsCollectionGetOK) GetPayload() *models.NdmpSessionResponse { return o.Payload } func (o *NdmpNodeSessionsCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.NdmpSessionResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewNdmpNodeSessionsCollectionGetDefault creates a NdmpNodeSessionsCollectionGetDefault with default headers values func NewNdmpNodeSessionsCollectionGetDefault(code int) *NdmpNodeSessionsCollectionGetDefault { return &NdmpNodeSessionsCollectionGetDefault{ _statusCode: code, } } /* NdmpNodeSessionsCollectionGetDefault describes a response with status code -1, with default header values. ONTAP Error Response codes | Error code | Description | |-------------|--------------| | 68812805 | Failed to obtain the NDMP mode of the operation.| */ type NdmpNodeSessionsCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ndmp node sessions collection get default response func (o *NdmpNodeSessionsCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ndmp node sessions collection get default response has a 2xx status code func (o *NdmpNodeSessionsCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ndmp node sessions collection get default response has a 3xx status code func (o *NdmpNodeSessionsCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ndmp node sessions collection get default response has a 4xx status code func (o *NdmpNodeSessionsCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ndmp node sessions collection get default response has a 5xx status code func (o *NdmpNodeSessionsCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ndmp node sessions collection get default response a status code equal to that given func (o *NdmpNodeSessionsCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NdmpNodeSessionsCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/ndmp/sessions][%d] ndmp_node_sessions_collection_get default %+v", o._statusCode, o.Payload) } func (o *NdmpNodeSessionsCollectionGetDefault) String() string { return fmt.Sprintf("[GET /protocols/ndmp/sessions][%d] ndmp_node_sessions_collection_get default %+v", o._statusCode, o.Payload) } func (o *NdmpNodeSessionsCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NdmpNodeSessionsCollectionGetDefault) 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/ndmp/ndmp_svm_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_svm_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NdmpSvmModifyReader is a Reader for the NdmpSvmModify structure. type NdmpSvmModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NdmpSvmModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNdmpSvmModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNdmpSvmModifyDefault(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 } } // NewNdmpSvmModifyOK creates a NdmpSvmModifyOK with default headers values func NewNdmpSvmModifyOK() *NdmpSvmModifyOK { return &NdmpSvmModifyOK{} } /* NdmpSvmModifyOK describes a response with status code 200, with default header values. OK */ type NdmpSvmModifyOK struct { Payload *models.NdmpSvm } // IsSuccess returns true when this ndmp svm modify o k response has a 2xx status code func (o *NdmpSvmModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this ndmp svm modify o k response has a 3xx status code func (o *NdmpSvmModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this ndmp svm modify o k response has a 4xx status code func (o *NdmpSvmModifyOK) IsClientError() bool { return false } // IsServerError returns true when this ndmp svm modify o k response has a 5xx status code func (o *NdmpSvmModifyOK) IsServerError() bool { return false } // IsCode returns true when this ndmp svm modify o k response a status code equal to that given func (o *NdmpSvmModifyOK) IsCode(code int) bool { return code == 200 } func (o *NdmpSvmModifyOK) Error() string { return fmt.Sprintf("[PATCH /protocols/ndmp/svms/{svm.uuid}][%d] ndmpSvmModifyOK %+v", 200, o.Payload) } func (o *NdmpSvmModifyOK) String() string { return fmt.Sprintf("[PATCH /protocols/ndmp/svms/{svm.uuid}][%d] ndmpSvmModifyOK %+v", 200, o.Payload) } func (o *NdmpSvmModifyOK) GetPayload() *models.NdmpSvm { return o.Payload } func (o *NdmpSvmModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.NdmpSvm) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewNdmpSvmModifyDefault creates a NdmpSvmModifyDefault with default headers values func NewNdmpSvmModifyDefault(code int) *NdmpSvmModifyDefault { return &NdmpSvmModifyDefault{ _statusCode: code, } } /* NdmpSvmModifyDefault describes a response with status code -1, with default header values. Error */ type NdmpSvmModifyDefault struct { _statusCode int } // Code gets the status code for the ndmp svm modify default response func (o *NdmpSvmModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ndmp svm modify default response has a 2xx status code func (o *NdmpSvmModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ndmp svm modify default response has a 3xx status code func (o *NdmpSvmModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ndmp svm modify default response has a 4xx status code func (o *NdmpSvmModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ndmp svm modify default response has a 5xx status code func (o *NdmpSvmModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ndmp svm modify default response a status code equal to that given func (o *NdmpSvmModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NdmpSvmModifyDefault) Error() string { return fmt.Sprintf("[PATCH /protocols/ndmp/svms/{svm.uuid}][%d] ndmp_svm_modify default ", o._statusCode) } func (o *NdmpSvmModifyDefault) String() string { return fmt.Sprintf("[PATCH /protocols/ndmp/svms/{svm.uuid}][%d] ndmp_svm_modify default ", o._statusCode) } func (o *NdmpSvmModifyDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_client.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_client.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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 ndmp API client. func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { return &Client{transport: transport, formats: formats} } /* Client for ndmp 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 { ClusterNdmpGet(params *ClusterNdmpGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNdmpGetOK, error) ClusterNdmpModify(params *ClusterNdmpModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNdmpModifyOK, error) NdmpNodeCollectionGet(params *NdmpNodeCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpNodeCollectionGetOK, error) NdmpNodeGet(params *NdmpNodeGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpNodeGetOK, error) NdmpNodeModify(params *NdmpNodeModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpNodeModifyOK, error) NdmpNodeSessionDelete(params *NdmpNodeSessionDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpNodeSessionDeleteOK, error) NdmpNodeSessionGet(params *NdmpNodeSessionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpNodeSessionGetOK, error) NdmpNodeSessionsCollectionGet(params *NdmpNodeSessionsCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpNodeSessionsCollectionGetOK, error) NdmpPasswordGet(params *NdmpPasswordGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpPasswordGetOK, error) NdmpSvmCollectionGet(params *NdmpSvmCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpSvmCollectionGetOK, error) NdmpSvmGet(params *NdmpSvmGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpSvmGetOK, error) NdmpSvmModify(params *NdmpSvmModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpSvmModifyOK, error) SetTransport(transport runtime.ClientTransport) } /* ClusterNdmpGet Retrieves the current NDMP mode. ### Related ONTAP commands * `system services ndmp node-scope-mode status` ### Learn more * [`DOC /protocols/ndmp`](#docs-ndmp-protocols_ndmp) */ func (a *Client) ClusterNdmpGet(params *ClusterNdmpGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNdmpGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewClusterNdmpGetParams() } op := &runtime.ClientOperation{ ID: "cluster_ndmp_get", Method: "GET", PathPattern: "/protocols/ndmp", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ClusterNdmpGetReader{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.(*ClusterNdmpGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ClusterNdmpGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ClusterNdmpModify Updates the NDMP mode. ### Related ONTAP commands * `system services ndmp node-scope-mode` ### Learn more * [`DOC /protocols/ndmp`](#docs-ndmp-protocols_ndmp) */ func (a *Client) ClusterNdmpModify(params *ClusterNdmpModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNdmpModifyOK, error) { // TODO: Validate the params before sending if params == nil { params = NewClusterNdmpModifyParams() } op := &runtime.ClientOperation{ ID: "cluster_ndmp_modify", Method: "PATCH", PathPattern: "/protocols/ndmp", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ClusterNdmpModifyReader{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.(*ClusterNdmpModifyOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ClusterNdmpModifyDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* NdmpNodeCollectionGet Retrieves NDMP node configurations for all of the nodes. ### Related ONTAP commands * `system services ndmp show` ### Learn more * [`DOC /protocols/ndmp/nodes`](#docs-ndmp-protocols_ndmp_nodes) */ func (a *Client) NdmpNodeCollectionGet(params *NdmpNodeCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpNodeCollectionGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewNdmpNodeCollectionGetParams() } op := &runtime.ClientOperation{ ID: "ndmp_node_collection_get", Method: "GET", PathPattern: "/protocols/ndmp/nodes", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &NdmpNodeCollectionGetReader{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.(*NdmpNodeCollectionGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*NdmpNodeCollectionGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* NdmpNodeGet Retrieves an NDMP node configuration for a specific node. ### Related ONTAP commands * `system services ndmp show` ### Learn more * [`DOC /protocols/ndmp/nodes`](#docs-ndmp-protocols_ndmp_nodes) */ func (a *Client) NdmpNodeGet(params *NdmpNodeGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpNodeGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewNdmpNodeGetParams() } op := &runtime.ClientOperation{ ID: "ndmp_node_get", Method: "GET", PathPattern: "/protocols/ndmp/nodes/{node.uuid}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &NdmpNodeGetReader{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.(*NdmpNodeGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*NdmpNodeGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* NdmpNodeModify Updates the NDMP node configuration for a specific node. ### Related ONTAP commands * `system services ndmp modify` ### Learn more * [`DOC /protocols/ndmp/nodes`](#docs-ndmp-protocols_ndmp_nodes) */ func (a *Client) NdmpNodeModify(params *NdmpNodeModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpNodeModifyOK, error) { // TODO: Validate the params before sending if params == nil { params = NewNdmpNodeModifyParams() } op := &runtime.ClientOperation{ ID: "ndmp_node_modify", Method: "PATCH", PathPattern: "/protocols/ndmp/nodes/{node.uuid}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &NdmpNodeModifyReader{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.(*NdmpNodeModifyOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*NdmpNodeModifyDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* NdmpNodeSessionDelete Deletes a specific NDMP session. ### Related ONTAP commands * `vserver services ndmp kill` * `system services ndmp kill` ### Learn more * [`DOC /protocols/ndmp/sessions`](#docs-ndmp-protocols_ndmp_sessions) */ func (a *Client) NdmpNodeSessionDelete(params *NdmpNodeSessionDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpNodeSessionDeleteOK, error) { // TODO: Validate the params before sending if params == nil { params = NewNdmpNodeSessionDeleteParams() } op := &runtime.ClientOperation{ ID: "ndmp_node_session_delete", Method: "DELETE", PathPattern: "/protocols/ndmp/sessions/{owner.uuid}/{session.id}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &NdmpNodeSessionDeleteReader{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.(*NdmpNodeSessionDeleteOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*NdmpNodeSessionDeleteDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* NdmpNodeSessionGet Retrieves the details of a specific NDMP session. ### Related ONTAP commands * `vserver services ndmp probe` * `system services ndmp probe` ### Learn more * [`DOC /protocols/ndmp/sessions`](#docs-ndmp-protocols_ndmp_sessions) */ func (a *Client) NdmpNodeSessionGet(params *NdmpNodeSessionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpNodeSessionGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewNdmpNodeSessionGetParams() } op := &runtime.ClientOperation{ ID: "ndmp_node_session_get", Method: "GET", PathPattern: "/protocols/ndmp/sessions/{owner.uuid}/{session.id}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &NdmpNodeSessionGetReader{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.(*NdmpNodeSessionGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*NdmpNodeSessionGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* NdmpNodeSessionsCollectionGet Retrieves a collection of NDMP sessions. In the case of SVM-scope, if this API is executed on a data IP, it displays the list of NDMP sessions under the specified SVM; otherwise it displays the list of NDMP sessions for all the SVMs under the cluster. In the case of node-scope, it displays the list of NDMP sessions for all nodes. ### Related ONTAP commands * `vserver services ndmp probe` * `system services ndmp probe` ### Learn more * [`DOC /protocols/ndmp/sessions`](#docs-ndmp-protocols_ndmp_sessions) */ func (a *Client) NdmpNodeSessionsCollectionGet(params *NdmpNodeSessionsCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpNodeSessionsCollectionGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewNdmpNodeSessionsCollectionGetParams() } op := &runtime.ClientOperation{ ID: "ndmp_node_sessions_collection_get", Method: "GET", PathPattern: "/protocols/ndmp/sessions", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &NdmpNodeSessionsCollectionGetReader{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.(*NdmpNodeSessionsCollectionGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*NdmpNodeSessionsCollectionGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* NdmpPasswordGet Generates and retrieves the password for the specified NDMP user. ### Related ONTAP commands * `vserver services ndmp generate-password` ### Learn more * [`DOC /protocols/ndmp/svms/{svm.uuid}/passwords/{user}`](#docs-ndmp-protocols_ndmp_svms_{svm.uuid}_passwords_{user}) */ func (a *Client) NdmpPasswordGet(params *NdmpPasswordGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpPasswordGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewNdmpPasswordGetParams() } op := &runtime.ClientOperation{ ID: "ndmp_password_get", Method: "GET", PathPattern: "/protocols/ndmp/svms/{svm.uuid}/passwords/{user}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &NdmpPasswordGetReader{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.(*NdmpPasswordGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*NdmpPasswordGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* NdmpSvmCollectionGet Retrieves NDMP configurations for all SVMs. ### Related ONTAP commands * `vserver services ndmp show` ### Learn more * [`DOC /protocols/ndmp/svms`](#docs-ndmp-protocols_ndmp_svms) */ func (a *Client) NdmpSvmCollectionGet(params *NdmpSvmCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpSvmCollectionGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewNdmpSvmCollectionGetParams() } op := &runtime.ClientOperation{ ID: "ndmp_svm_collection_get", Method: "GET", PathPattern: "/protocols/ndmp/svms", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &NdmpSvmCollectionGetReader{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.(*NdmpSvmCollectionGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*NdmpSvmCollectionGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* NdmpSvmGet Retrieves an NDMP configuration for a specific SVM. ### Related ONTAP commands * `vserver services ndmp show` ### Learn more * [`DOC /protocols/ndmp/svms`](#docs-ndmp-protocols_ndmp_svms) */ func (a *Client) NdmpSvmGet(params *NdmpSvmGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpSvmGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewNdmpSvmGetParams() } op := &runtime.ClientOperation{ ID: "ndmp_svm_get", Method: "GET", PathPattern: "/protocols/ndmp/svms/{svm.uuid}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &NdmpSvmGetReader{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.(*NdmpSvmGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*NdmpSvmGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* NdmpSvmModify Updates the NDMP configuration for a specific SVM. ### Related ONTAP commands * `vserver services ndmp modify` ### Learn more * [`DOC /protocols/ndmp/svms`](#docs-ndmp-protocols_ndmp_svms) */ func (a *Client) NdmpSvmModify(params *NdmpSvmModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NdmpSvmModifyOK, error) { // TODO: Validate the params before sending if params == nil { params = NewNdmpSvmModifyParams() } op := &runtime.ClientOperation{ ID: "ndmp_svm_modify", Method: "PATCH", PathPattern: "/protocols/ndmp/svms/{svm.uuid}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &NdmpSvmModifyReader{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.(*NdmpSvmModifyOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*NdmpSvmModifyDefault) 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/ndmp/ndmp_node_session_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_node_session_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NewNdmpNodeSessionGetParams creates a new NdmpNodeSessionGetParams 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 NewNdmpNodeSessionGetParams() *NdmpNodeSessionGetParams { return &NdmpNodeSessionGetParams{ timeout: cr.DefaultTimeout, } } // NewNdmpNodeSessionGetParamsWithTimeout creates a new NdmpNodeSessionGetParams object // with the ability to set a timeout on a request. func NewNdmpNodeSessionGetParamsWithTimeout(timeout time.Duration) *NdmpNodeSessionGetParams { return &NdmpNodeSessionGetParams{ timeout: timeout, } } // NewNdmpNodeSessionGetParamsWithContext creates a new NdmpNodeSessionGetParams object // with the ability to set a context for a request. func NewNdmpNodeSessionGetParamsWithContext(ctx context.Context) *NdmpNodeSessionGetParams { return &NdmpNodeSessionGetParams{ Context: ctx, } } // NewNdmpNodeSessionGetParamsWithHTTPClient creates a new NdmpNodeSessionGetParams object // with the ability to set a custom HTTPClient for a request. func NewNdmpNodeSessionGetParamsWithHTTPClient(client *http.Client) *NdmpNodeSessionGetParams { return &NdmpNodeSessionGetParams{ HTTPClient: client, } } /* NdmpNodeSessionGetParams contains all the parameters to send to the API endpoint for the ndmp node session get operation. Typically these are written to a http.Request. */ type NdmpNodeSessionGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* OwnerUUID. The NDMP node or SVM UUID based on whether NDMP is operating in node-scope or SVM-scope mode. */ OwnerUUID string /* SessionID. NDMP session identifier */ SessionID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ndmp node session get params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpNodeSessionGetParams) WithDefaults() *NdmpNodeSessionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ndmp node session get params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpNodeSessionGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the ndmp node session get params func (o *NdmpNodeSessionGetParams) WithTimeout(timeout time.Duration) *NdmpNodeSessionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ndmp node session get params func (o *NdmpNodeSessionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ndmp node session get params func (o *NdmpNodeSessionGetParams) WithContext(ctx context.Context) *NdmpNodeSessionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the ndmp node session get params func (o *NdmpNodeSessionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ndmp node session get params func (o *NdmpNodeSessionGetParams) WithHTTPClient(client *http.Client) *NdmpNodeSessionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ndmp node session get params func (o *NdmpNodeSessionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the ndmp node session get params func (o *NdmpNodeSessionGetParams) WithFields(fields []string) *NdmpNodeSessionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the ndmp node session get params func (o *NdmpNodeSessionGetParams) SetFields(fields []string) { o.Fields = fields } // WithOwnerUUID adds the ownerUUID to the ndmp node session get params func (o *NdmpNodeSessionGetParams) WithOwnerUUID(ownerUUID string) *NdmpNodeSessionGetParams { o.SetOwnerUUID(ownerUUID) return o } // SetOwnerUUID adds the ownerUuid to the ndmp node session get params func (o *NdmpNodeSessionGetParams) SetOwnerUUID(ownerUUID string) { o.OwnerUUID = ownerUUID } // WithSessionID adds the sessionID to the ndmp node session get params func (o *NdmpNodeSessionGetParams) WithSessionID(sessionID string) *NdmpNodeSessionGetParams { o.SetSessionID(sessionID) return o } // SetSessionID adds the sessionId to the ndmp node session get params func (o *NdmpNodeSessionGetParams) SetSessionID(sessionID string) { o.SessionID = sessionID } // WriteToRequest writes these params to a swagger request func (o *NdmpNodeSessionGetParams) 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 owner.uuid if err := r.SetPathParam("owner.uuid", o.OwnerUUID); err != nil { return err } // path param session.id if err := r.SetPathParam("session.id", o.SessionID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamNdmpNodeSessionGet binds the parameter fields func (o *NdmpNodeSessionGetParams) 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/ndmp/ndmp_password_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_password_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NdmpPasswordGetReader is a Reader for the NdmpPasswordGet structure. type NdmpPasswordGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NdmpPasswordGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNdmpPasswordGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNdmpPasswordGetDefault(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 } } // NewNdmpPasswordGetOK creates a NdmpPasswordGetOK with default headers values func NewNdmpPasswordGetOK() *NdmpPasswordGetOK { return &NdmpPasswordGetOK{} } /* NdmpPasswordGetOK describes a response with status code 200, with default header values. OK */ type NdmpPasswordGetOK struct { Payload *models.NdmpPassword } // IsSuccess returns true when this ndmp password get o k response has a 2xx status code func (o *NdmpPasswordGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this ndmp password get o k response has a 3xx status code func (o *NdmpPasswordGetOK) IsRedirect() bool { return false } // IsClientError returns true when this ndmp password get o k response has a 4xx status code func (o *NdmpPasswordGetOK) IsClientError() bool { return false } // IsServerError returns true when this ndmp password get o k response has a 5xx status code func (o *NdmpPasswordGetOK) IsServerError() bool { return false } // IsCode returns true when this ndmp password get o k response a status code equal to that given func (o *NdmpPasswordGetOK) IsCode(code int) bool { return code == 200 } func (o *NdmpPasswordGetOK) Error() string { return fmt.Sprintf("[GET /protocols/ndmp/svms/{svm.uuid}/passwords/{user}][%d] ndmpPasswordGetOK %+v", 200, o.Payload) } func (o *NdmpPasswordGetOK) String() string { return fmt.Sprintf("[GET /protocols/ndmp/svms/{svm.uuid}/passwords/{user}][%d] ndmpPasswordGetOK %+v", 200, o.Payload) } func (o *NdmpPasswordGetOK) GetPayload() *models.NdmpPassword { return o.Payload } func (o *NdmpPasswordGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.NdmpPassword) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewNdmpPasswordGetDefault creates a NdmpPasswordGetDefault with default headers values func NewNdmpPasswordGetDefault(code int) *NdmpPasswordGetDefault { return &NdmpPasswordGetDefault{ _statusCode: code, } } /* NdmpPasswordGetDefault describes a response with status code -1, with default header values. Error */ type NdmpPasswordGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ndmp password get default response func (o *NdmpPasswordGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ndmp password get default response has a 2xx status code func (o *NdmpPasswordGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ndmp password get default response has a 3xx status code func (o *NdmpPasswordGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ndmp password get default response has a 4xx status code func (o *NdmpPasswordGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ndmp password get default response has a 5xx status code func (o *NdmpPasswordGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ndmp password get default response a status code equal to that given func (o *NdmpPasswordGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NdmpPasswordGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/ndmp/svms/{svm.uuid}/passwords/{user}][%d] ndmp_password_get default %+v", o._statusCode, o.Payload) } func (o *NdmpPasswordGetDefault) String() string { return fmt.Sprintf("[GET /protocols/ndmp/svms/{svm.uuid}/passwords/{user}][%d] ndmp_password_get default %+v", o._statusCode, o.Payload) } func (o *NdmpPasswordGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NdmpPasswordGetDefault) 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/ndmp/ndmp_node_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_node_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NewNdmpNodeModifyParams creates a new NdmpNodeModifyParams 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 NewNdmpNodeModifyParams() *NdmpNodeModifyParams { return &NdmpNodeModifyParams{ timeout: cr.DefaultTimeout, } } // NewNdmpNodeModifyParamsWithTimeout creates a new NdmpNodeModifyParams object // with the ability to set a timeout on a request. func NewNdmpNodeModifyParamsWithTimeout(timeout time.Duration) *NdmpNodeModifyParams { return &NdmpNodeModifyParams{ timeout: timeout, } } // NewNdmpNodeModifyParamsWithContext creates a new NdmpNodeModifyParams object // with the ability to set a context for a request. func NewNdmpNodeModifyParamsWithContext(ctx context.Context) *NdmpNodeModifyParams { return &NdmpNodeModifyParams{ Context: ctx, } } // NewNdmpNodeModifyParamsWithHTTPClient creates a new NdmpNodeModifyParams object // with the ability to set a custom HTTPClient for a request. func NewNdmpNodeModifyParamsWithHTTPClient(client *http.Client) *NdmpNodeModifyParams { return &NdmpNodeModifyParams{ HTTPClient: client, } } /* NdmpNodeModifyParams contains all the parameters to send to the API endpoint for the ndmp node modify operation. Typically these are written to a http.Request. */ type NdmpNodeModifyParams struct { /* Info. Information specification */ Info *models.NdmpNode /* NodeUUID. Node UUID */ NodeUUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ndmp node modify params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpNodeModifyParams) WithDefaults() *NdmpNodeModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ndmp node modify params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpNodeModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the ndmp node modify params func (o *NdmpNodeModifyParams) WithTimeout(timeout time.Duration) *NdmpNodeModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ndmp node modify params func (o *NdmpNodeModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ndmp node modify params func (o *NdmpNodeModifyParams) WithContext(ctx context.Context) *NdmpNodeModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the ndmp node modify params func (o *NdmpNodeModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ndmp node modify params func (o *NdmpNodeModifyParams) WithHTTPClient(client *http.Client) *NdmpNodeModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ndmp node modify params func (o *NdmpNodeModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the ndmp node modify params func (o *NdmpNodeModifyParams) WithInfo(info *models.NdmpNode) *NdmpNodeModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the ndmp node modify params func (o *NdmpNodeModifyParams) SetInfo(info *models.NdmpNode) { o.Info = info } // WithNodeUUID adds the nodeUUID to the ndmp node modify params func (o *NdmpNodeModifyParams) WithNodeUUID(nodeUUID string) *NdmpNodeModifyParams { o.SetNodeUUID(nodeUUID) return o } // SetNodeUUID adds the nodeUuid to the ndmp node modify params func (o *NdmpNodeModifyParams) SetNodeUUID(nodeUUID string) { o.NodeUUID = nodeUUID } // WriteToRequest writes these params to a swagger request func (o *NdmpNodeModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } // path param node.uuid if err := r.SetPathParam("node.uuid", o.NodeUUID); err != nil { return err } 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/ndmp/cluster_ndmp_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/cluster_ndmp_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // ClusterNdmpModifyReader is a Reader for the ClusterNdmpModify structure. type ClusterNdmpModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterNdmpModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewClusterNdmpModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterNdmpModifyDefault(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 } } // NewClusterNdmpModifyOK creates a ClusterNdmpModifyOK with default headers values func NewClusterNdmpModifyOK() *ClusterNdmpModifyOK { return &ClusterNdmpModifyOK{} } /* ClusterNdmpModifyOK describes a response with status code 200, with default header values. OK */ type ClusterNdmpModifyOK struct { Payload *models.ClusterNdmpProperties } // IsSuccess returns true when this cluster ndmp modify o k response has a 2xx status code func (o *ClusterNdmpModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this cluster ndmp modify o k response has a 3xx status code func (o *ClusterNdmpModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this cluster ndmp modify o k response has a 4xx status code func (o *ClusterNdmpModifyOK) IsClientError() bool { return false } // IsServerError returns true when this cluster ndmp modify o k response has a 5xx status code func (o *ClusterNdmpModifyOK) IsServerError() bool { return false } // IsCode returns true when this cluster ndmp modify o k response a status code equal to that given func (o *ClusterNdmpModifyOK) IsCode(code int) bool { return code == 200 } func (o *ClusterNdmpModifyOK) Error() string { return fmt.Sprintf("[PATCH /protocols/ndmp][%d] clusterNdmpModifyOK %+v", 200, o.Payload) } func (o *ClusterNdmpModifyOK) String() string { return fmt.Sprintf("[PATCH /protocols/ndmp][%d] clusterNdmpModifyOK %+v", 200, o.Payload) } func (o *ClusterNdmpModifyOK) GetPayload() *models.ClusterNdmpProperties { return o.Payload } func (o *ClusterNdmpModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ClusterNdmpProperties) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewClusterNdmpModifyDefault creates a ClusterNdmpModifyDefault with default headers values func NewClusterNdmpModifyDefault(code int) *ClusterNdmpModifyDefault { return &ClusterNdmpModifyDefault{ _statusCode: code, } } /* ClusterNdmpModifyDefault describes a response with status code -1, with default header values. Error */ type ClusterNdmpModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster ndmp modify default response func (o *ClusterNdmpModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster ndmp modify default response has a 2xx status code func (o *ClusterNdmpModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster ndmp modify default response has a 3xx status code func (o *ClusterNdmpModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster ndmp modify default response has a 4xx status code func (o *ClusterNdmpModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster ndmp modify default response has a 5xx status code func (o *ClusterNdmpModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster ndmp modify default response a status code equal to that given func (o *ClusterNdmpModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterNdmpModifyDefault) Error() string { return fmt.Sprintf("[PATCH /protocols/ndmp][%d] cluster_ndmp_modify default %+v", o._statusCode, o.Payload) } func (o *ClusterNdmpModifyDefault) String() string { return fmt.Sprintf("[PATCH /protocols/ndmp][%d] cluster_ndmp_modify default %+v", o._statusCode, o.Payload) } func (o *ClusterNdmpModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterNdmpModifyDefault) 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/ndmp/ndmp_node_session_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_node_session_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NdmpNodeSessionGetReader is a Reader for the NdmpNodeSessionGet structure. type NdmpNodeSessionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NdmpNodeSessionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNdmpNodeSessionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNdmpNodeSessionGetDefault(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 } } // NewNdmpNodeSessionGetOK creates a NdmpNodeSessionGetOK with default headers values func NewNdmpNodeSessionGetOK() *NdmpNodeSessionGetOK { return &NdmpNodeSessionGetOK{} } /* NdmpNodeSessionGetOK describes a response with status code 200, with default header values. OK */ type NdmpNodeSessionGetOK struct { Payload *models.NdmpSession } // IsSuccess returns true when this ndmp node session get o k response has a 2xx status code func (o *NdmpNodeSessionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this ndmp node session get o k response has a 3xx status code func (o *NdmpNodeSessionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this ndmp node session get o k response has a 4xx status code func (o *NdmpNodeSessionGetOK) IsClientError() bool { return false } // IsServerError returns true when this ndmp node session get o k response has a 5xx status code func (o *NdmpNodeSessionGetOK) IsServerError() bool { return false } // IsCode returns true when this ndmp node session get o k response a status code equal to that given func (o *NdmpNodeSessionGetOK) IsCode(code int) bool { return code == 200 } func (o *NdmpNodeSessionGetOK) Error() string { return fmt.Sprintf("[GET /protocols/ndmp/sessions/{owner.uuid}/{session.id}][%d] ndmpNodeSessionGetOK %+v", 200, o.Payload) } func (o *NdmpNodeSessionGetOK) String() string { return fmt.Sprintf("[GET /protocols/ndmp/sessions/{owner.uuid}/{session.id}][%d] ndmpNodeSessionGetOK %+v", 200, o.Payload) } func (o *NdmpNodeSessionGetOK) GetPayload() *models.NdmpSession { return o.Payload } func (o *NdmpNodeSessionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.NdmpSession) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewNdmpNodeSessionGetDefault creates a NdmpNodeSessionGetDefault with default headers values func NewNdmpNodeSessionGetDefault(code int) *NdmpNodeSessionGetDefault { return &NdmpNodeSessionGetDefault{ _statusCode: code, } } /* NdmpNodeSessionGetDefault describes a response with status code -1, with default header values. ONTAP Error Response codes | Error code | Description | |-------------|--------------| | 68812802 | The UUID is not valid.| */ type NdmpNodeSessionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ndmp node session get default response func (o *NdmpNodeSessionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ndmp node session get default response has a 2xx status code func (o *NdmpNodeSessionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ndmp node session get default response has a 3xx status code func (o *NdmpNodeSessionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ndmp node session get default response has a 4xx status code func (o *NdmpNodeSessionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ndmp node session get default response has a 5xx status code func (o *NdmpNodeSessionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ndmp node session get default response a status code equal to that given func (o *NdmpNodeSessionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NdmpNodeSessionGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/ndmp/sessions/{owner.uuid}/{session.id}][%d] ndmp_node_session_get default %+v", o._statusCode, o.Payload) } func (o *NdmpNodeSessionGetDefault) String() string { return fmt.Sprintf("[GET /protocols/ndmp/sessions/{owner.uuid}/{session.id}][%d] ndmp_node_session_get default %+v", o._statusCode, o.Payload) } func (o *NdmpNodeSessionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NdmpNodeSessionGetDefault) 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/ndmp/cluster_ndmp_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/cluster_ndmp_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NewClusterNdmpGetParams creates a new ClusterNdmpGetParams 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 NewClusterNdmpGetParams() *ClusterNdmpGetParams { return &ClusterNdmpGetParams{ timeout: cr.DefaultTimeout, } } // NewClusterNdmpGetParamsWithTimeout creates a new ClusterNdmpGetParams object // with the ability to set a timeout on a request. func NewClusterNdmpGetParamsWithTimeout(timeout time.Duration) *ClusterNdmpGetParams { return &ClusterNdmpGetParams{ timeout: timeout, } } // NewClusterNdmpGetParamsWithContext creates a new ClusterNdmpGetParams object // with the ability to set a context for a request. func NewClusterNdmpGetParamsWithContext(ctx context.Context) *ClusterNdmpGetParams { return &ClusterNdmpGetParams{ Context: ctx, } } // NewClusterNdmpGetParamsWithHTTPClient creates a new ClusterNdmpGetParams object // with the ability to set a custom HTTPClient for a request. func NewClusterNdmpGetParamsWithHTTPClient(client *http.Client) *ClusterNdmpGetParams { return &ClusterNdmpGetParams{ HTTPClient: client, } } /* ClusterNdmpGetParams contains all the parameters to send to the API endpoint for the cluster ndmp get operation. Typically these are written to a http.Request. */ type ClusterNdmpGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* Mode. Filter by mode */ Mode *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster ndmp get params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNdmpGetParams) WithDefaults() *ClusterNdmpGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster ndmp get params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNdmpGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the cluster ndmp get params func (o *ClusterNdmpGetParams) WithTimeout(timeout time.Duration) *ClusterNdmpGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster ndmp get params func (o *ClusterNdmpGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster ndmp get params func (o *ClusterNdmpGetParams) WithContext(ctx context.Context) *ClusterNdmpGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster ndmp get params func (o *ClusterNdmpGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster ndmp get params func (o *ClusterNdmpGetParams) WithHTTPClient(client *http.Client) *ClusterNdmpGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster ndmp get params func (o *ClusterNdmpGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the cluster ndmp get params func (o *ClusterNdmpGetParams) WithFields(fields []string) *ClusterNdmpGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the cluster ndmp get params func (o *ClusterNdmpGetParams) SetFields(fields []string) { o.Fields = fields } // WithMode adds the mode to the cluster ndmp get params func (o *ClusterNdmpGetParams) WithMode(mode *string) *ClusterNdmpGetParams { o.SetMode(mode) return o } // SetMode adds the mode to the cluster ndmp get params func (o *ClusterNdmpGetParams) SetMode(mode *string) { o.Mode = mode } // WriteToRequest writes these params to a swagger request func (o *ClusterNdmpGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.Mode != nil { // query param mode var qrMode string if o.Mode != nil { qrMode = *o.Mode } qMode := qrMode if qMode != "" { if err := r.SetQueryParam("mode", qMode); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamClusterNdmpGet binds the parameter fields func (o *ClusterNdmpGetParams) 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/ndmp/ndmp_node_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_node_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NewNdmpNodeCollectionGetParams creates a new NdmpNodeCollectionGetParams 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 NewNdmpNodeCollectionGetParams() *NdmpNodeCollectionGetParams { return &NdmpNodeCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewNdmpNodeCollectionGetParamsWithTimeout creates a new NdmpNodeCollectionGetParams object // with the ability to set a timeout on a request. func NewNdmpNodeCollectionGetParamsWithTimeout(timeout time.Duration) *NdmpNodeCollectionGetParams { return &NdmpNodeCollectionGetParams{ timeout: timeout, } } // NewNdmpNodeCollectionGetParamsWithContext creates a new NdmpNodeCollectionGetParams object // with the ability to set a context for a request. func NewNdmpNodeCollectionGetParamsWithContext(ctx context.Context) *NdmpNodeCollectionGetParams { return &NdmpNodeCollectionGetParams{ Context: ctx, } } // NewNdmpNodeCollectionGetParamsWithHTTPClient creates a new NdmpNodeCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewNdmpNodeCollectionGetParamsWithHTTPClient(client *http.Client) *NdmpNodeCollectionGetParams { return &NdmpNodeCollectionGetParams{ HTTPClient: client, } } /* NdmpNodeCollectionGetParams contains all the parameters to send to the API endpoint for the ndmp node collection get operation. Typically these are written to a http.Request. */ type NdmpNodeCollectionGetParams struct { /* AuthenticationTypes. Filter by authentication_types */ AuthenticationTypes *string /* Enabled. Filter by enabled */ Enabled *bool /* Fields. Specify the fields to return. */ Fields []string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* NodeName. Filter by node.name */ NodeName *string /* NodeUUID. Filter by node.uuid */ NodeUUID *string /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* User. Filter by user */ User *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ndmp node collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpNodeCollectionGetParams) WithDefaults() *NdmpNodeCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ndmp node collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpNodeCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := NdmpNodeCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) WithTimeout(timeout time.Duration) *NdmpNodeCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) WithContext(ctx context.Context) *NdmpNodeCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) WithHTTPClient(client *http.Client) *NdmpNodeCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAuthenticationTypes adds the authenticationTypes to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) WithAuthenticationTypes(authenticationTypes *string) *NdmpNodeCollectionGetParams { o.SetAuthenticationTypes(authenticationTypes) return o } // SetAuthenticationTypes adds the authenticationTypes to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) SetAuthenticationTypes(authenticationTypes *string) { o.AuthenticationTypes = authenticationTypes } // WithEnabled adds the enabled to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) WithEnabled(enabled *bool) *NdmpNodeCollectionGetParams { o.SetEnabled(enabled) return o } // SetEnabled adds the enabled to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) SetEnabled(enabled *bool) { o.Enabled = enabled } // WithFields adds the fields to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) WithFields(fields []string) *NdmpNodeCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithMaxRecords adds the maxRecords to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) WithMaxRecords(maxRecords *int64) *NdmpNodeCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithNodeName adds the nodeName to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) WithNodeName(nodeName *string) *NdmpNodeCollectionGetParams { o.SetNodeName(nodeName) return o } // SetNodeName adds the nodeName to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) SetNodeName(nodeName *string) { o.NodeName = nodeName } // WithNodeUUID adds the nodeUUID to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) WithNodeUUID(nodeUUID *string) *NdmpNodeCollectionGetParams { o.SetNodeUUID(nodeUUID) return o } // SetNodeUUID adds the nodeUuid to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) SetNodeUUID(nodeUUID *string) { o.NodeUUID = nodeUUID } // WithOrderBy adds the orderBy to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) WithOrderBy(orderBy []string) *NdmpNodeCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) WithReturnRecords(returnRecords *bool) *NdmpNodeCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *NdmpNodeCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithUser adds the user to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) WithUser(user *string) *NdmpNodeCollectionGetParams { o.SetUser(user) return o } // SetUser adds the user to the ndmp node collection get params func (o *NdmpNodeCollectionGetParams) SetUser(user *string) { o.User = user } // WriteToRequest writes these params to a swagger request func (o *NdmpNodeCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.AuthenticationTypes != nil { // query param authentication_types var qrAuthenticationTypes string if o.AuthenticationTypes != nil { qrAuthenticationTypes = *o.AuthenticationTypes } qAuthenticationTypes := qrAuthenticationTypes if qAuthenticationTypes != "" { if err := r.SetQueryParam("authentication_types", qAuthenticationTypes); 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.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.NodeName != nil { // query param node.name var qrNodeName string if o.NodeName != nil { qrNodeName = *o.NodeName } qNodeName := qrNodeName if qNodeName != "" { if err := r.SetQueryParam("node.name", qNodeName); err != nil { return err } } } if o.NodeUUID != nil { // query param node.uuid var qrNodeUUID string if o.NodeUUID != nil { qrNodeUUID = *o.NodeUUID } qNodeUUID := qrNodeUUID if qNodeUUID != "" { if err := r.SetQueryParam("node.uuid", qNodeUUID); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.User != nil { // query param user var qrUser string if o.User != nil { qrUser = *o.User } qUser := qrUser if qUser != "" { if err := r.SetQueryParam("user", qUser); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamNdmpNodeCollectionGet binds the parameter fields func (o *NdmpNodeCollectionGetParams) 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 } // bindParamNdmpNodeCollectionGet binds the parameter order_by func (o *NdmpNodeCollectionGetParams) 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/ndmp/ndmp_node_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_node_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NdmpNodeCollectionGetReader is a Reader for the NdmpNodeCollectionGet structure. type NdmpNodeCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NdmpNodeCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNdmpNodeCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNdmpNodeCollectionGetDefault(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 } } // NewNdmpNodeCollectionGetOK creates a NdmpNodeCollectionGetOK with default headers values func NewNdmpNodeCollectionGetOK() *NdmpNodeCollectionGetOK { return &NdmpNodeCollectionGetOK{} } /* NdmpNodeCollectionGetOK describes a response with status code 200, with default header values. OK */ type NdmpNodeCollectionGetOK struct { Payload *models.NdmpNodeResponse } // IsSuccess returns true when this ndmp node collection get o k response has a 2xx status code func (o *NdmpNodeCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this ndmp node collection get o k response has a 3xx status code func (o *NdmpNodeCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this ndmp node collection get o k response has a 4xx status code func (o *NdmpNodeCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this ndmp node collection get o k response has a 5xx status code func (o *NdmpNodeCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this ndmp node collection get o k response a status code equal to that given func (o *NdmpNodeCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *NdmpNodeCollectionGetOK) Error() string { return fmt.Sprintf("[GET /protocols/ndmp/nodes][%d] ndmpNodeCollectionGetOK %+v", 200, o.Payload) } func (o *NdmpNodeCollectionGetOK) String() string { return fmt.Sprintf("[GET /protocols/ndmp/nodes][%d] ndmpNodeCollectionGetOK %+v", 200, o.Payload) } func (o *NdmpNodeCollectionGetOK) GetPayload() *models.NdmpNodeResponse { return o.Payload } func (o *NdmpNodeCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.NdmpNodeResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewNdmpNodeCollectionGetDefault creates a NdmpNodeCollectionGetDefault with default headers values func NewNdmpNodeCollectionGetDefault(code int) *NdmpNodeCollectionGetDefault { return &NdmpNodeCollectionGetDefault{ _statusCode: code, } } /* NdmpNodeCollectionGetDefault describes a response with status code -1, with default header values. ONTAP Error Response codes | Error code | Description | |-------------|--------------| | 68812801 | Node-scoped operations are not allowed in an SVM-scope.| | 68812804 | Failed to get the node name from the specified node UUID.| */ type NdmpNodeCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ndmp node collection get default response func (o *NdmpNodeCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ndmp node collection get default response has a 2xx status code func (o *NdmpNodeCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ndmp node collection get default response has a 3xx status code func (o *NdmpNodeCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ndmp node collection get default response has a 4xx status code func (o *NdmpNodeCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ndmp node collection get default response has a 5xx status code func (o *NdmpNodeCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ndmp node collection get default response a status code equal to that given func (o *NdmpNodeCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NdmpNodeCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/ndmp/nodes][%d] ndmp_node_collection_get default %+v", o._statusCode, o.Payload) } func (o *NdmpNodeCollectionGetDefault) String() string { return fmt.Sprintf("[GET /protocols/ndmp/nodes][%d] ndmp_node_collection_get default %+v", o._statusCode, o.Payload) } func (o *NdmpNodeCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NdmpNodeCollectionGetDefault) 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/ndmp/cluster_ndmp_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/cluster_ndmp_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NewClusterNdmpModifyParams creates a new ClusterNdmpModifyParams 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 NewClusterNdmpModifyParams() *ClusterNdmpModifyParams { return &ClusterNdmpModifyParams{ timeout: cr.DefaultTimeout, } } // NewClusterNdmpModifyParamsWithTimeout creates a new ClusterNdmpModifyParams object // with the ability to set a timeout on a request. func NewClusterNdmpModifyParamsWithTimeout(timeout time.Duration) *ClusterNdmpModifyParams { return &ClusterNdmpModifyParams{ timeout: timeout, } } // NewClusterNdmpModifyParamsWithContext creates a new ClusterNdmpModifyParams object // with the ability to set a context for a request. func NewClusterNdmpModifyParamsWithContext(ctx context.Context) *ClusterNdmpModifyParams { return &ClusterNdmpModifyParams{ Context: ctx, } } // NewClusterNdmpModifyParamsWithHTTPClient creates a new ClusterNdmpModifyParams object // with the ability to set a custom HTTPClient for a request. func NewClusterNdmpModifyParamsWithHTTPClient(client *http.Client) *ClusterNdmpModifyParams { return &ClusterNdmpModifyParams{ HTTPClient: client, } } /* ClusterNdmpModifyParams contains all the parameters to send to the API endpoint for the cluster ndmp modify operation. Typically these are written to a http.Request. */ type ClusterNdmpModifyParams struct { /* Info. Information specification */ Info *models.ClusterNdmpProperties timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster ndmp modify params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNdmpModifyParams) WithDefaults() *ClusterNdmpModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster ndmp modify params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNdmpModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the cluster ndmp modify params func (o *ClusterNdmpModifyParams) WithTimeout(timeout time.Duration) *ClusterNdmpModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster ndmp modify params func (o *ClusterNdmpModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster ndmp modify params func (o *ClusterNdmpModifyParams) WithContext(ctx context.Context) *ClusterNdmpModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster ndmp modify params func (o *ClusterNdmpModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster ndmp modify params func (o *ClusterNdmpModifyParams) WithHTTPClient(client *http.Client) *ClusterNdmpModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster ndmp modify params func (o *ClusterNdmpModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the cluster ndmp modify params func (o *ClusterNdmpModifyParams) WithInfo(info *models.ClusterNdmpProperties) *ClusterNdmpModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the cluster ndmp modify params func (o *ClusterNdmpModifyParams) SetInfo(info *models.ClusterNdmpProperties) { o.Info = info } // WriteToRequest writes these params to a swagger request func (o *ClusterNdmpModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_node_session_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_node_session_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NdmpNodeSessionDeleteReader is a Reader for the NdmpNodeSessionDelete structure. type NdmpNodeSessionDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NdmpNodeSessionDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNdmpNodeSessionDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNdmpNodeSessionDeleteDefault(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 } } // NewNdmpNodeSessionDeleteOK creates a NdmpNodeSessionDeleteOK with default headers values func NewNdmpNodeSessionDeleteOK() *NdmpNodeSessionDeleteOK { return &NdmpNodeSessionDeleteOK{} } /* NdmpNodeSessionDeleteOK describes a response with status code 200, with default header values. OK */ type NdmpNodeSessionDeleteOK struct { } // IsSuccess returns true when this ndmp node session delete o k response has a 2xx status code func (o *NdmpNodeSessionDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this ndmp node session delete o k response has a 3xx status code func (o *NdmpNodeSessionDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this ndmp node session delete o k response has a 4xx status code func (o *NdmpNodeSessionDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this ndmp node session delete o k response has a 5xx status code func (o *NdmpNodeSessionDeleteOK) IsServerError() bool { return false } // IsCode returns true when this ndmp node session delete o k response a status code equal to that given func (o *NdmpNodeSessionDeleteOK) IsCode(code int) bool { return code == 200 } func (o *NdmpNodeSessionDeleteOK) Error() string { return fmt.Sprintf("[DELETE /protocols/ndmp/sessions/{owner.uuid}/{session.id}][%d] ndmpNodeSessionDeleteOK ", 200) } func (o *NdmpNodeSessionDeleteOK) String() string { return fmt.Sprintf("[DELETE /protocols/ndmp/sessions/{owner.uuid}/{session.id}][%d] ndmpNodeSessionDeleteOK ", 200) } func (o *NdmpNodeSessionDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewNdmpNodeSessionDeleteDefault creates a NdmpNodeSessionDeleteDefault with default headers values func NewNdmpNodeSessionDeleteDefault(code int) *NdmpNodeSessionDeleteDefault { return &NdmpNodeSessionDeleteDefault{ _statusCode: code, } } /* NdmpNodeSessionDeleteDefault describes a response with status code -1, with default header values. ONTAP Error Response codes | Error code | Description | |-------------|--------------| | 68812802 | The UUID is not valid.| | 68812803 | Failed to get the SVM name from the specified SVM UUID.| | 68812804 | Failed to get the node name from the specified node UUID.| | 68812805 | Failed to obtain the NDMP mode of operation.| | 68812806 | UUID and Session ID are required.| */ type NdmpNodeSessionDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ndmp node session delete default response func (o *NdmpNodeSessionDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ndmp node session delete default response has a 2xx status code func (o *NdmpNodeSessionDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ndmp node session delete default response has a 3xx status code func (o *NdmpNodeSessionDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ndmp node session delete default response has a 4xx status code func (o *NdmpNodeSessionDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ndmp node session delete default response has a 5xx status code func (o *NdmpNodeSessionDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ndmp node session delete default response a status code equal to that given func (o *NdmpNodeSessionDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NdmpNodeSessionDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /protocols/ndmp/sessions/{owner.uuid}/{session.id}][%d] ndmp_node_session_delete default %+v", o._statusCode, o.Payload) } func (o *NdmpNodeSessionDeleteDefault) String() string { return fmt.Sprintf("[DELETE /protocols/ndmp/sessions/{owner.uuid}/{session.id}][%d] ndmp_node_session_delete default %+v", o._statusCode, o.Payload) } func (o *NdmpNodeSessionDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NdmpNodeSessionDeleteDefault) 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/ndmp/ndmp_svm_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_svm_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NewNdmpSvmCollectionGetParams creates a new NdmpSvmCollectionGetParams 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 NewNdmpSvmCollectionGetParams() *NdmpSvmCollectionGetParams { return &NdmpSvmCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewNdmpSvmCollectionGetParamsWithTimeout creates a new NdmpSvmCollectionGetParams object // with the ability to set a timeout on a request. func NewNdmpSvmCollectionGetParamsWithTimeout(timeout time.Duration) *NdmpSvmCollectionGetParams { return &NdmpSvmCollectionGetParams{ timeout: timeout, } } // NewNdmpSvmCollectionGetParamsWithContext creates a new NdmpSvmCollectionGetParams object // with the ability to set a context for a request. func NewNdmpSvmCollectionGetParamsWithContext(ctx context.Context) *NdmpSvmCollectionGetParams { return &NdmpSvmCollectionGetParams{ Context: ctx, } } // NewNdmpSvmCollectionGetParamsWithHTTPClient creates a new NdmpSvmCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewNdmpSvmCollectionGetParamsWithHTTPClient(client *http.Client) *NdmpSvmCollectionGetParams { return &NdmpSvmCollectionGetParams{ HTTPClient: client, } } /* NdmpSvmCollectionGetParams contains all the parameters to send to the API endpoint for the ndmp svm collection get operation. Typically these are written to a http.Request. */ type NdmpSvmCollectionGetParams struct { /* AuthenticationTypes. Filter by authentication_types */ AuthenticationTypes *string /* Enabled. Filter by enabled */ Enabled *bool /* Fields. Specify the fields to return. */ Fields []string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* SvmName. Filter by svm.name */ SvmName *string /* SvmUUID. Filter by svm.uuid */ SvmUUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ndmp svm collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpSvmCollectionGetParams) WithDefaults() *NdmpSvmCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ndmp svm collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpSvmCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := NdmpSvmCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) WithTimeout(timeout time.Duration) *NdmpSvmCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) WithContext(ctx context.Context) *NdmpSvmCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) WithHTTPClient(client *http.Client) *NdmpSvmCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAuthenticationTypes adds the authenticationTypes to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) WithAuthenticationTypes(authenticationTypes *string) *NdmpSvmCollectionGetParams { o.SetAuthenticationTypes(authenticationTypes) return o } // SetAuthenticationTypes adds the authenticationTypes to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) SetAuthenticationTypes(authenticationTypes *string) { o.AuthenticationTypes = authenticationTypes } // WithEnabled adds the enabled to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) WithEnabled(enabled *bool) *NdmpSvmCollectionGetParams { o.SetEnabled(enabled) return o } // SetEnabled adds the enabled to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) SetEnabled(enabled *bool) { o.Enabled = enabled } // WithFields adds the fields to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) WithFields(fields []string) *NdmpSvmCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithMaxRecords adds the maxRecords to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) WithMaxRecords(maxRecords *int64) *NdmpSvmCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) WithOrderBy(orderBy []string) *NdmpSvmCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) WithReturnRecords(returnRecords *bool) *NdmpSvmCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *NdmpSvmCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithSvmName adds the svmName to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) WithSvmName(svmName *string) *NdmpSvmCollectionGetParams { o.SetSvmName(svmName) return o } // SetSvmName adds the svmName to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) SetSvmName(svmName *string) { o.SvmName = svmName } // WithSvmUUID adds the svmUUID to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) WithSvmUUID(svmUUID *string) *NdmpSvmCollectionGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the ndmp svm collection get params func (o *NdmpSvmCollectionGetParams) SetSvmUUID(svmUUID *string) { o.SvmUUID = svmUUID } // WriteToRequest writes these params to a swagger request func (o *NdmpSvmCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.AuthenticationTypes != nil { // query param authentication_types var qrAuthenticationTypes string if o.AuthenticationTypes != nil { qrAuthenticationTypes = *o.AuthenticationTypes } qAuthenticationTypes := qrAuthenticationTypes if qAuthenticationTypes != "" { if err := r.SetQueryParam("authentication_types", qAuthenticationTypes); 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.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.SvmName != nil { // query param svm.name var qrSvmName string if o.SvmName != nil { qrSvmName = *o.SvmName } qSvmName := qrSvmName if qSvmName != "" { if err := r.SetQueryParam("svm.name", qSvmName); err != nil { return err } } } if o.SvmUUID != nil { // query param svm.uuid var qrSvmUUID string if o.SvmUUID != nil { qrSvmUUID = *o.SvmUUID } qSvmUUID := qrSvmUUID if qSvmUUID != "" { if err := r.SetQueryParam("svm.uuid", qSvmUUID); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamNdmpSvmCollectionGet binds the parameter fields func (o *NdmpSvmCollectionGetParams) 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 } // bindParamNdmpSvmCollectionGet binds the parameter order_by func (o *NdmpSvmCollectionGetParams) 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/ndmp/ndmp_svm_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_svm_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NdmpSvmGetReader is a Reader for the NdmpSvmGet structure. type NdmpSvmGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NdmpSvmGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNdmpSvmGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNdmpSvmGetDefault(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 } } // NewNdmpSvmGetOK creates a NdmpSvmGetOK with default headers values func NewNdmpSvmGetOK() *NdmpSvmGetOK { return &NdmpSvmGetOK{} } /* NdmpSvmGetOK describes a response with status code 200, with default header values. OK */ type NdmpSvmGetOK struct { Payload *models.NdmpSvm } // IsSuccess returns true when this ndmp svm get o k response has a 2xx status code func (o *NdmpSvmGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this ndmp svm get o k response has a 3xx status code func (o *NdmpSvmGetOK) IsRedirect() bool { return false } // IsClientError returns true when this ndmp svm get o k response has a 4xx status code func (o *NdmpSvmGetOK) IsClientError() bool { return false } // IsServerError returns true when this ndmp svm get o k response has a 5xx status code func (o *NdmpSvmGetOK) IsServerError() bool { return false } // IsCode returns true when this ndmp svm get o k response a status code equal to that given func (o *NdmpSvmGetOK) IsCode(code int) bool { return code == 200 } func (o *NdmpSvmGetOK) Error() string { return fmt.Sprintf("[GET /protocols/ndmp/svms/{svm.uuid}][%d] ndmpSvmGetOK %+v", 200, o.Payload) } func (o *NdmpSvmGetOK) String() string { return fmt.Sprintf("[GET /protocols/ndmp/svms/{svm.uuid}][%d] ndmpSvmGetOK %+v", 200, o.Payload) } func (o *NdmpSvmGetOK) GetPayload() *models.NdmpSvm { return o.Payload } func (o *NdmpSvmGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.NdmpSvm) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewNdmpSvmGetDefault creates a NdmpSvmGetDefault with default headers values func NewNdmpSvmGetDefault(code int) *NdmpSvmGetDefault { return &NdmpSvmGetDefault{ _statusCode: code, } } /* NdmpSvmGetDefault describes a response with status code -1, with default header values. Error */ type NdmpSvmGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ndmp svm get default response func (o *NdmpSvmGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ndmp svm get default response has a 2xx status code func (o *NdmpSvmGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ndmp svm get default response has a 3xx status code func (o *NdmpSvmGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ndmp svm get default response has a 4xx status code func (o *NdmpSvmGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ndmp svm get default response has a 5xx status code func (o *NdmpSvmGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ndmp svm get default response a status code equal to that given func (o *NdmpSvmGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NdmpSvmGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/ndmp/svms/{svm.uuid}][%d] ndmp_svm_get default %+v", o._statusCode, o.Payload) } func (o *NdmpSvmGetDefault) String() string { return fmt.Sprintf("[GET /protocols/ndmp/svms/{svm.uuid}][%d] ndmp_svm_get default %+v", o._statusCode, o.Payload) } func (o *NdmpSvmGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NdmpSvmGetDefault) 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/ndmp/ndmp_svm_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_svm_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NewNdmpSvmModifyParams creates a new NdmpSvmModifyParams 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 NewNdmpSvmModifyParams() *NdmpSvmModifyParams { return &NdmpSvmModifyParams{ timeout: cr.DefaultTimeout, } } // NewNdmpSvmModifyParamsWithTimeout creates a new NdmpSvmModifyParams object // with the ability to set a timeout on a request. func NewNdmpSvmModifyParamsWithTimeout(timeout time.Duration) *NdmpSvmModifyParams { return &NdmpSvmModifyParams{ timeout: timeout, } } // NewNdmpSvmModifyParamsWithContext creates a new NdmpSvmModifyParams object // with the ability to set a context for a request. func NewNdmpSvmModifyParamsWithContext(ctx context.Context) *NdmpSvmModifyParams { return &NdmpSvmModifyParams{ Context: ctx, } } // NewNdmpSvmModifyParamsWithHTTPClient creates a new NdmpSvmModifyParams object // with the ability to set a custom HTTPClient for a request. func NewNdmpSvmModifyParamsWithHTTPClient(client *http.Client) *NdmpSvmModifyParams { return &NdmpSvmModifyParams{ HTTPClient: client, } } /* NdmpSvmModifyParams contains all the parameters to send to the API endpoint for the ndmp svm modify operation. Typically these are written to a http.Request. */ type NdmpSvmModifyParams struct { /* Info. Information specification */ Info *models.NdmpSvm /* SvmUUID. SVM UUID */ SvmUUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ndmp svm modify params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpSvmModifyParams) WithDefaults() *NdmpSvmModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ndmp svm modify params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpSvmModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the ndmp svm modify params func (o *NdmpSvmModifyParams) WithTimeout(timeout time.Duration) *NdmpSvmModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ndmp svm modify params func (o *NdmpSvmModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ndmp svm modify params func (o *NdmpSvmModifyParams) WithContext(ctx context.Context) *NdmpSvmModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the ndmp svm modify params func (o *NdmpSvmModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ndmp svm modify params func (o *NdmpSvmModifyParams) WithHTTPClient(client *http.Client) *NdmpSvmModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ndmp svm modify params func (o *NdmpSvmModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the ndmp svm modify params func (o *NdmpSvmModifyParams) WithInfo(info *models.NdmpSvm) *NdmpSvmModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the ndmp svm modify params func (o *NdmpSvmModifyParams) SetInfo(info *models.NdmpSvm) { o.Info = info } // WithSvmUUID adds the svmUUID to the ndmp svm modify params func (o *NdmpSvmModifyParams) WithSvmUUID(svmUUID string) *NdmpSvmModifyParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the ndmp svm modify params func (o *NdmpSvmModifyParams) SetSvmUUID(svmUUID string) { o.SvmUUID = svmUUID } // WriteToRequest writes these params to a swagger request func (o *NdmpSvmModifyParams) 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/ndmp/cluster_ndmp_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/cluster_ndmp_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // ClusterNdmpGetReader is a Reader for the ClusterNdmpGet structure. type ClusterNdmpGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterNdmpGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewClusterNdmpGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterNdmpGetDefault(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 } } // NewClusterNdmpGetOK creates a ClusterNdmpGetOK with default headers values func NewClusterNdmpGetOK() *ClusterNdmpGetOK { return &ClusterNdmpGetOK{} } /* ClusterNdmpGetOK describes a response with status code 200, with default header values. OK */ type ClusterNdmpGetOK struct { Payload *models.ClusterNdmpProperties } // IsSuccess returns true when this cluster ndmp get o k response has a 2xx status code func (o *ClusterNdmpGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this cluster ndmp get o k response has a 3xx status code func (o *ClusterNdmpGetOK) IsRedirect() bool { return false } // IsClientError returns true when this cluster ndmp get o k response has a 4xx status code func (o *ClusterNdmpGetOK) IsClientError() bool { return false } // IsServerError returns true when this cluster ndmp get o k response has a 5xx status code func (o *ClusterNdmpGetOK) IsServerError() bool { return false } // IsCode returns true when this cluster ndmp get o k response a status code equal to that given func (o *ClusterNdmpGetOK) IsCode(code int) bool { return code == 200 } func (o *ClusterNdmpGetOK) Error() string { return fmt.Sprintf("[GET /protocols/ndmp][%d] clusterNdmpGetOK %+v", 200, o.Payload) } func (o *ClusterNdmpGetOK) String() string { return fmt.Sprintf("[GET /protocols/ndmp][%d] clusterNdmpGetOK %+v", 200, o.Payload) } func (o *ClusterNdmpGetOK) GetPayload() *models.ClusterNdmpProperties { return o.Payload } func (o *ClusterNdmpGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ClusterNdmpProperties) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewClusterNdmpGetDefault creates a ClusterNdmpGetDefault with default headers values func NewClusterNdmpGetDefault(code int) *ClusterNdmpGetDefault { return &ClusterNdmpGetDefault{ _statusCode: code, } } /* ClusterNdmpGetDefault describes a response with status code -1, with default header values. Error */ type ClusterNdmpGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster ndmp get default response func (o *ClusterNdmpGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster ndmp get default response has a 2xx status code func (o *ClusterNdmpGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster ndmp get default response has a 3xx status code func (o *ClusterNdmpGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster ndmp get default response has a 4xx status code func (o *ClusterNdmpGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster ndmp get default response has a 5xx status code func (o *ClusterNdmpGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster ndmp get default response a status code equal to that given func (o *ClusterNdmpGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterNdmpGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/ndmp][%d] cluster_ndmp_get default %+v", o._statusCode, o.Payload) } func (o *ClusterNdmpGetDefault) String() string { return fmt.Sprintf("[GET /protocols/ndmp][%d] cluster_ndmp_get default %+v", o._statusCode, o.Payload) } func (o *ClusterNdmpGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterNdmpGetDefault) 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/ndmp/ndmp_node_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_node_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NdmpNodeGetReader is a Reader for the NdmpNodeGet structure. type NdmpNodeGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NdmpNodeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNdmpNodeGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNdmpNodeGetDefault(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 } } // NewNdmpNodeGetOK creates a NdmpNodeGetOK with default headers values func NewNdmpNodeGetOK() *NdmpNodeGetOK { return &NdmpNodeGetOK{} } /* NdmpNodeGetOK describes a response with status code 200, with default header values. OK */ type NdmpNodeGetOK struct { Payload *models.NdmpNode } // IsSuccess returns true when this ndmp node get o k response has a 2xx status code func (o *NdmpNodeGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this ndmp node get o k response has a 3xx status code func (o *NdmpNodeGetOK) IsRedirect() bool { return false } // IsClientError returns true when this ndmp node get o k response has a 4xx status code func (o *NdmpNodeGetOK) IsClientError() bool { return false } // IsServerError returns true when this ndmp node get o k response has a 5xx status code func (o *NdmpNodeGetOK) IsServerError() bool { return false } // IsCode returns true when this ndmp node get o k response a status code equal to that given func (o *NdmpNodeGetOK) IsCode(code int) bool { return code == 200 } func (o *NdmpNodeGetOK) Error() string { return fmt.Sprintf("[GET /protocols/ndmp/nodes/{node.uuid}][%d] ndmpNodeGetOK %+v", 200, o.Payload) } func (o *NdmpNodeGetOK) String() string { return fmt.Sprintf("[GET /protocols/ndmp/nodes/{node.uuid}][%d] ndmpNodeGetOK %+v", 200, o.Payload) } func (o *NdmpNodeGetOK) GetPayload() *models.NdmpNode { return o.Payload } func (o *NdmpNodeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.NdmpNode) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewNdmpNodeGetDefault creates a NdmpNodeGetDefault with default headers values func NewNdmpNodeGetDefault(code int) *NdmpNodeGetDefault { return &NdmpNodeGetDefault{ _statusCode: code, } } /* NdmpNodeGetDefault describes a response with status code -1, with default header values. ONTAP Error Response codes | Error code | Description | |-------------|--------------| | 68812801 | Node-scoped operations are not allowed in an SVM-scope.| | 68812802 | The UUID is not valid.| | 68812804 | Failed to get the node name from the specified node UUID.| */ type NdmpNodeGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ndmp node get default response func (o *NdmpNodeGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ndmp node get default response has a 2xx status code func (o *NdmpNodeGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ndmp node get default response has a 3xx status code func (o *NdmpNodeGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ndmp node get default response has a 4xx status code func (o *NdmpNodeGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ndmp node get default response has a 5xx status code func (o *NdmpNodeGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ndmp node get default response a status code equal to that given func (o *NdmpNodeGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NdmpNodeGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/ndmp/nodes/{node.uuid}][%d] ndmp_node_get default %+v", o._statusCode, o.Payload) } func (o *NdmpNodeGetDefault) String() string { return fmt.Sprintf("[GET /protocols/ndmp/nodes/{node.uuid}][%d] ndmp_node_get default %+v", o._statusCode, o.Payload) } func (o *NdmpNodeGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NdmpNodeGetDefault) 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/ndmp/ndmp_node_sessions_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/ndmp/ndmp_node_sessions_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package ndmp // 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" ) // NewNdmpNodeSessionsCollectionGetParams creates a new NdmpNodeSessionsCollectionGetParams 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 NewNdmpNodeSessionsCollectionGetParams() *NdmpNodeSessionsCollectionGetParams { return &NdmpNodeSessionsCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewNdmpNodeSessionsCollectionGetParamsWithTimeout creates a new NdmpNodeSessionsCollectionGetParams object // with the ability to set a timeout on a request. func NewNdmpNodeSessionsCollectionGetParamsWithTimeout(timeout time.Duration) *NdmpNodeSessionsCollectionGetParams { return &NdmpNodeSessionsCollectionGetParams{ timeout: timeout, } } // NewNdmpNodeSessionsCollectionGetParamsWithContext creates a new NdmpNodeSessionsCollectionGetParams object // with the ability to set a context for a request. func NewNdmpNodeSessionsCollectionGetParamsWithContext(ctx context.Context) *NdmpNodeSessionsCollectionGetParams { return &NdmpNodeSessionsCollectionGetParams{ Context: ctx, } } // NewNdmpNodeSessionsCollectionGetParamsWithHTTPClient creates a new NdmpNodeSessionsCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewNdmpNodeSessionsCollectionGetParamsWithHTTPClient(client *http.Client) *NdmpNodeSessionsCollectionGetParams { return &NdmpNodeSessionsCollectionGetParams{ HTTPClient: client, } } /* NdmpNodeSessionsCollectionGetParams contains all the parameters to send to the API endpoint for the ndmp node sessions collection get operation. Typically these are written to a http.Request. */ type NdmpNodeSessionsCollectionGetParams struct { /* BackupEngine. Filter by backup_engine */ BackupEngine *string /* ClientAddress. Filter by client_address */ ClientAddress *string /* ClientPort. Filter by client_port */ ClientPort *int64 /* DataBytesProcessed. Filter by data.bytes_processed */ DataBytesProcessed *int64 /* DataConnectionAddress. Filter by data.connection.address */ DataConnectionAddress *string /* DataConnectionPort. Filter by data.connection.port */ DataConnectionPort *int64 /* DataConnectionType. Filter by data.connection.type */ DataConnectionType *string /* DataOperation. Filter by data.operation */ DataOperation *string /* DataReason. Filter by data.reason */ DataReason *string /* DataState. Filter by data.state */ DataState *string /* DataPath. Filter by data_path */ DataPath *string /* Fields. Specify the fields to return. */ Fields []string /* ID. Filter by id */ ID *string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* MoverBytesMoved. Filter by mover.bytes_moved */ MoverBytesMoved *int64 /* MoverConnectionAddress. Filter by mover.connection.address */ MoverConnectionAddress *string /* MoverConnectionPort. Filter by mover.connection.port */ MoverConnectionPort *int64 /* MoverConnectionType. Filter by mover.connection.type */ MoverConnectionType *string /* MoverMode. Filter by mover.mode */ MoverMode *string /* MoverReason. Filter by mover.reason */ MoverReason *string /* MoverState. Filter by mover.state */ MoverState *string /* NodeName. Filter by node.name */ NodeName *string /* NodeUUID. Filter by node.uuid */ NodeUUID *string /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* ScsiDeviceID. Filter by scsi.device_id */ ScsiDeviceID *string /* ScsiHostAdapter. Filter by scsi.host_adapter */ ScsiHostAdapter *int64 /* ScsiLunID. Filter by scsi.lun_id */ ScsiLunID *int64 /* ScsiTargetID. Filter by scsi.target_id */ ScsiTargetID *int64 /* SourceAddress. Filter by source_address */ SourceAddress *string /* SvmName. Filter by svm.name */ SvmName *string /* SvmUUID. Filter by svm.uuid */ SvmUUID *string /* TapeDevice. Filter by tape_device */ TapeDevice *string /* TapeMode. Filter by tape_mode */ TapeMode *string /* UUID. Filter by uuid */ UUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ndmp node sessions collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpNodeSessionsCollectionGetParams) WithDefaults() *NdmpNodeSessionsCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ndmp node sessions collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *NdmpNodeSessionsCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := NdmpNodeSessionsCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithTimeout(timeout time.Duration) *NdmpNodeSessionsCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithContext(ctx context.Context) *NdmpNodeSessionsCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithHTTPClient(client *http.Client) *NdmpNodeSessionsCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithBackupEngine adds the backupEngine to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithBackupEngine(backupEngine *string) *NdmpNodeSessionsCollectionGetParams { o.SetBackupEngine(backupEngine) return o } // SetBackupEngine adds the backupEngine to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetBackupEngine(backupEngine *string) { o.BackupEngine = backupEngine } // WithClientAddress adds the clientAddress to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithClientAddress(clientAddress *string) *NdmpNodeSessionsCollectionGetParams { o.SetClientAddress(clientAddress) return o } // SetClientAddress adds the clientAddress to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetClientAddress(clientAddress *string) { o.ClientAddress = clientAddress } // WithClientPort adds the clientPort to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithClientPort(clientPort *int64) *NdmpNodeSessionsCollectionGetParams { o.SetClientPort(clientPort) return o } // SetClientPort adds the clientPort to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetClientPort(clientPort *int64) { o.ClientPort = clientPort } // WithDataBytesProcessed adds the dataBytesProcessed to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithDataBytesProcessed(dataBytesProcessed *int64) *NdmpNodeSessionsCollectionGetParams { o.SetDataBytesProcessed(dataBytesProcessed) return o } // SetDataBytesProcessed adds the dataBytesProcessed to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetDataBytesProcessed(dataBytesProcessed *int64) { o.DataBytesProcessed = dataBytesProcessed } // WithDataConnectionAddress adds the dataConnectionAddress to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithDataConnectionAddress(dataConnectionAddress *string) *NdmpNodeSessionsCollectionGetParams { o.SetDataConnectionAddress(dataConnectionAddress) return o } // SetDataConnectionAddress adds the dataConnectionAddress to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetDataConnectionAddress(dataConnectionAddress *string) { o.DataConnectionAddress = dataConnectionAddress } // WithDataConnectionPort adds the dataConnectionPort to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithDataConnectionPort(dataConnectionPort *int64) *NdmpNodeSessionsCollectionGetParams { o.SetDataConnectionPort(dataConnectionPort) return o } // SetDataConnectionPort adds the dataConnectionPort to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetDataConnectionPort(dataConnectionPort *int64) { o.DataConnectionPort = dataConnectionPort } // WithDataConnectionType adds the dataConnectionType to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithDataConnectionType(dataConnectionType *string) *NdmpNodeSessionsCollectionGetParams { o.SetDataConnectionType(dataConnectionType) return o } // SetDataConnectionType adds the dataConnectionType to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetDataConnectionType(dataConnectionType *string) { o.DataConnectionType = dataConnectionType } // WithDataOperation adds the dataOperation to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithDataOperation(dataOperation *string) *NdmpNodeSessionsCollectionGetParams { o.SetDataOperation(dataOperation) return o } // SetDataOperation adds the dataOperation to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetDataOperation(dataOperation *string) { o.DataOperation = dataOperation } // WithDataReason adds the dataReason to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithDataReason(dataReason *string) *NdmpNodeSessionsCollectionGetParams { o.SetDataReason(dataReason) return o } // SetDataReason adds the dataReason to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetDataReason(dataReason *string) { o.DataReason = dataReason } // WithDataState adds the dataState to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithDataState(dataState *string) *NdmpNodeSessionsCollectionGetParams { o.SetDataState(dataState) return o } // SetDataState adds the dataState to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetDataState(dataState *string) { o.DataState = dataState } // WithDataPath adds the dataPath to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithDataPath(dataPath *string) *NdmpNodeSessionsCollectionGetParams { o.SetDataPath(dataPath) return o } // SetDataPath adds the dataPath to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetDataPath(dataPath *string) { o.DataPath = dataPath } // WithFields adds the fields to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithFields(fields []string) *NdmpNodeSessionsCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithID adds the id to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithID(id *string) *NdmpNodeSessionsCollectionGetParams { o.SetID(id) return o } // SetID adds the id to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetID(id *string) { o.ID = id } // WithMaxRecords adds the maxRecords to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithMaxRecords(maxRecords *int64) *NdmpNodeSessionsCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithMoverBytesMoved adds the moverBytesMoved to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithMoverBytesMoved(moverBytesMoved *int64) *NdmpNodeSessionsCollectionGetParams { o.SetMoverBytesMoved(moverBytesMoved) return o } // SetMoverBytesMoved adds the moverBytesMoved to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetMoverBytesMoved(moverBytesMoved *int64) { o.MoverBytesMoved = moverBytesMoved } // WithMoverConnectionAddress adds the moverConnectionAddress to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithMoverConnectionAddress(moverConnectionAddress *string) *NdmpNodeSessionsCollectionGetParams { o.SetMoverConnectionAddress(moverConnectionAddress) return o } // SetMoverConnectionAddress adds the moverConnectionAddress to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetMoverConnectionAddress(moverConnectionAddress *string) { o.MoverConnectionAddress = moverConnectionAddress } // WithMoverConnectionPort adds the moverConnectionPort to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithMoverConnectionPort(moverConnectionPort *int64) *NdmpNodeSessionsCollectionGetParams { o.SetMoverConnectionPort(moverConnectionPort) return o } // SetMoverConnectionPort adds the moverConnectionPort to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetMoverConnectionPort(moverConnectionPort *int64) { o.MoverConnectionPort = moverConnectionPort } // WithMoverConnectionType adds the moverConnectionType to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithMoverConnectionType(moverConnectionType *string) *NdmpNodeSessionsCollectionGetParams { o.SetMoverConnectionType(moverConnectionType) return o } // SetMoverConnectionType adds the moverConnectionType to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetMoverConnectionType(moverConnectionType *string) { o.MoverConnectionType = moverConnectionType } // WithMoverMode adds the moverMode to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithMoverMode(moverMode *string) *NdmpNodeSessionsCollectionGetParams { o.SetMoverMode(moverMode) return o } // SetMoverMode adds the moverMode to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetMoverMode(moverMode *string) { o.MoverMode = moverMode } // WithMoverReason adds the moverReason to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithMoverReason(moverReason *string) *NdmpNodeSessionsCollectionGetParams { o.SetMoverReason(moverReason) return o } // SetMoverReason adds the moverReason to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetMoverReason(moverReason *string) { o.MoverReason = moverReason } // WithMoverState adds the moverState to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithMoverState(moverState *string) *NdmpNodeSessionsCollectionGetParams { o.SetMoverState(moverState) return o } // SetMoverState adds the moverState to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetMoverState(moverState *string) { o.MoverState = moverState } // WithNodeName adds the nodeName to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithNodeName(nodeName *string) *NdmpNodeSessionsCollectionGetParams { o.SetNodeName(nodeName) return o } // SetNodeName adds the nodeName to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetNodeName(nodeName *string) { o.NodeName = nodeName } // WithNodeUUID adds the nodeUUID to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithNodeUUID(nodeUUID *string) *NdmpNodeSessionsCollectionGetParams { o.SetNodeUUID(nodeUUID) return o } // SetNodeUUID adds the nodeUuid to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetNodeUUID(nodeUUID *string) { o.NodeUUID = nodeUUID } // WithOrderBy adds the orderBy to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithOrderBy(orderBy []string) *NdmpNodeSessionsCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithReturnRecords(returnRecords *bool) *NdmpNodeSessionsCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *NdmpNodeSessionsCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithScsiDeviceID adds the scsiDeviceID to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithScsiDeviceID(scsiDeviceID *string) *NdmpNodeSessionsCollectionGetParams { o.SetScsiDeviceID(scsiDeviceID) return o } // SetScsiDeviceID adds the scsiDeviceId to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetScsiDeviceID(scsiDeviceID *string) { o.ScsiDeviceID = scsiDeviceID } // WithScsiHostAdapter adds the scsiHostAdapter to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithScsiHostAdapter(scsiHostAdapter *int64) *NdmpNodeSessionsCollectionGetParams { o.SetScsiHostAdapter(scsiHostAdapter) return o } // SetScsiHostAdapter adds the scsiHostAdapter to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetScsiHostAdapter(scsiHostAdapter *int64) { o.ScsiHostAdapter = scsiHostAdapter } // WithScsiLunID adds the scsiLunID to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithScsiLunID(scsiLunID *int64) *NdmpNodeSessionsCollectionGetParams { o.SetScsiLunID(scsiLunID) return o } // SetScsiLunID adds the scsiLunId to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetScsiLunID(scsiLunID *int64) { o.ScsiLunID = scsiLunID } // WithScsiTargetID adds the scsiTargetID to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithScsiTargetID(scsiTargetID *int64) *NdmpNodeSessionsCollectionGetParams { o.SetScsiTargetID(scsiTargetID) return o } // SetScsiTargetID adds the scsiTargetId to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetScsiTargetID(scsiTargetID *int64) { o.ScsiTargetID = scsiTargetID } // WithSourceAddress adds the sourceAddress to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithSourceAddress(sourceAddress *string) *NdmpNodeSessionsCollectionGetParams { o.SetSourceAddress(sourceAddress) return o } // SetSourceAddress adds the sourceAddress to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetSourceAddress(sourceAddress *string) { o.SourceAddress = sourceAddress } // WithSvmName adds the svmName to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithSvmName(svmName *string) *NdmpNodeSessionsCollectionGetParams { o.SetSvmName(svmName) return o } // SetSvmName adds the svmName to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetSvmName(svmName *string) { o.SvmName = svmName } // WithSvmUUID adds the svmUUID to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithSvmUUID(svmUUID *string) *NdmpNodeSessionsCollectionGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetSvmUUID(svmUUID *string) { o.SvmUUID = svmUUID } // WithTapeDevice adds the tapeDevice to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithTapeDevice(tapeDevice *string) *NdmpNodeSessionsCollectionGetParams { o.SetTapeDevice(tapeDevice) return o } // SetTapeDevice adds the tapeDevice to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetTapeDevice(tapeDevice *string) { o.TapeDevice = tapeDevice } // WithTapeMode adds the tapeMode to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithTapeMode(tapeMode *string) *NdmpNodeSessionsCollectionGetParams { o.SetTapeMode(tapeMode) return o } // SetTapeMode adds the tapeMode to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetTapeMode(tapeMode *string) { o.TapeMode = tapeMode } // WithUUID adds the uuid to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) WithUUID(uuid *string) *NdmpNodeSessionsCollectionGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the ndmp node sessions collection get params func (o *NdmpNodeSessionsCollectionGetParams) SetUUID(uuid *string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *NdmpNodeSessionsCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.BackupEngine != nil { // query param backup_engine var qrBackupEngine string if o.BackupEngine != nil { qrBackupEngine = *o.BackupEngine } qBackupEngine := qrBackupEngine if qBackupEngine != "" { if err := r.SetQueryParam("backup_engine", qBackupEngine); err != nil { return err } } } if o.ClientAddress != nil { // query param client_address var qrClientAddress string if o.ClientAddress != nil { qrClientAddress = *o.ClientAddress } qClientAddress := qrClientAddress if qClientAddress != "" { if err := r.SetQueryParam("client_address", qClientAddress); err != nil { return err } } } if o.ClientPort != nil { // query param client_port var qrClientPort int64 if o.ClientPort != nil { qrClientPort = *o.ClientPort } qClientPort := swag.FormatInt64(qrClientPort) if qClientPort != "" { if err := r.SetQueryParam("client_port", qClientPort); err != nil { return err } } } if o.DataBytesProcessed != nil { // query param data.bytes_processed var qrDataBytesProcessed int64 if o.DataBytesProcessed != nil { qrDataBytesProcessed = *o.DataBytesProcessed } qDataBytesProcessed := swag.FormatInt64(qrDataBytesProcessed) if qDataBytesProcessed != "" { if err := r.SetQueryParam("data.bytes_processed", qDataBytesProcessed); err != nil { return err } } } if o.DataConnectionAddress != nil { // query param data.connection.address var qrDataConnectionAddress string if o.DataConnectionAddress != nil { qrDataConnectionAddress = *o.DataConnectionAddress } qDataConnectionAddress := qrDataConnectionAddress if qDataConnectionAddress != "" { if err := r.SetQueryParam("data.connection.address", qDataConnectionAddress); err != nil { return err } } } if o.DataConnectionPort != nil { // query param data.connection.port var qrDataConnectionPort int64 if o.DataConnectionPort != nil { qrDataConnectionPort = *o.DataConnectionPort } qDataConnectionPort := swag.FormatInt64(qrDataConnectionPort) if qDataConnectionPort != "" { if err := r.SetQueryParam("data.connection.port", qDataConnectionPort); err != nil { return err } } } if o.DataConnectionType != nil { // query param data.connection.type var qrDataConnectionType string if o.DataConnectionType != nil { qrDataConnectionType = *o.DataConnectionType } qDataConnectionType := qrDataConnectionType if qDataConnectionType != "" { if err := r.SetQueryParam("data.connection.type", qDataConnectionType); err != nil { return err } } } if o.DataOperation != nil { // query param data.operation var qrDataOperation string if o.DataOperation != nil { qrDataOperation = *o.DataOperation } qDataOperation := qrDataOperation if qDataOperation != "" { if err := r.SetQueryParam("data.operation", qDataOperation); err != nil { return err } } } if o.DataReason != nil { // query param data.reason var qrDataReason string if o.DataReason != nil { qrDataReason = *o.DataReason } qDataReason := qrDataReason if qDataReason != "" { if err := r.SetQueryParam("data.reason", qDataReason); err != nil { return err } } } if o.DataState != nil { // query param data.state var qrDataState string if o.DataState != nil { qrDataState = *o.DataState } qDataState := qrDataState if qDataState != "" { if err := r.SetQueryParam("data.state", qDataState); err != nil { return err } } } if o.DataPath != nil { // query param data_path var qrDataPath string if o.DataPath != nil { qrDataPath = *o.DataPath } qDataPath := qrDataPath if qDataPath != "" { if err := r.SetQueryParam("data_path", qDataPath); 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 string if o.ID != nil { qrID = *o.ID } qID := 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.MoverBytesMoved != nil { // query param mover.bytes_moved var qrMoverBytesMoved int64 if o.MoverBytesMoved != nil { qrMoverBytesMoved = *o.MoverBytesMoved } qMoverBytesMoved := swag.FormatInt64(qrMoverBytesMoved) if qMoverBytesMoved != "" { if err := r.SetQueryParam("mover.bytes_moved", qMoverBytesMoved); err != nil { return err } } } if o.MoverConnectionAddress != nil { // query param mover.connection.address var qrMoverConnectionAddress string if o.MoverConnectionAddress != nil { qrMoverConnectionAddress = *o.MoverConnectionAddress } qMoverConnectionAddress := qrMoverConnectionAddress if qMoverConnectionAddress != "" { if err := r.SetQueryParam("mover.connection.address", qMoverConnectionAddress); err != nil { return err } } } if o.MoverConnectionPort != nil { // query param mover.connection.port var qrMoverConnectionPort int64 if o.MoverConnectionPort != nil { qrMoverConnectionPort = *o.MoverConnectionPort } qMoverConnectionPort := swag.FormatInt64(qrMoverConnectionPort) if qMoverConnectionPort != "" { if err := r.SetQueryParam("mover.connection.port", qMoverConnectionPort); err != nil { return err } } } if o.MoverConnectionType != nil { // query param mover.connection.type var qrMoverConnectionType string if o.MoverConnectionType != nil { qrMoverConnectionType = *o.MoverConnectionType } qMoverConnectionType := qrMoverConnectionType if qMoverConnectionType != "" { if err := r.SetQueryParam("mover.connection.type", qMoverConnectionType); err != nil { return err } } } if o.MoverMode != nil { // query param mover.mode var qrMoverMode string if o.MoverMode != nil { qrMoverMode = *o.MoverMode } qMoverMode := qrMoverMode if qMoverMode != "" { if err := r.SetQueryParam("mover.mode", qMoverMode); err != nil { return err } } } if o.MoverReason != nil { // query param mover.reason var qrMoverReason string if o.MoverReason != nil { qrMoverReason = *o.MoverReason } qMoverReason := qrMoverReason if qMoverReason != "" { if err := r.SetQueryParam("mover.reason", qMoverReason); err != nil { return err } } } if o.MoverState != nil { // query param mover.state var qrMoverState string if o.MoverState != nil { qrMoverState = *o.MoverState } qMoverState := qrMoverState if qMoverState != "" { if err := r.SetQueryParam("mover.state", qMoverState); err != nil { return err } } } if o.NodeName != nil { // query param node.name var qrNodeName string if o.NodeName != nil { qrNodeName = *o.NodeName } qNodeName := qrNodeName if qNodeName != "" { if err := r.SetQueryParam("node.name", qNodeName); err != nil { return err } } } if o.NodeUUID != nil { // query param node.uuid var qrNodeUUID string if o.NodeUUID != nil { qrNodeUUID = *o.NodeUUID } qNodeUUID := qrNodeUUID if qNodeUUID != "" { if err := r.SetQueryParam("node.uuid", qNodeUUID); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil {
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/cluster/sensors_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/sensors_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // 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" ) // SensorsGetReader is a Reader for the SensorsGet structure. type SensorsGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SensorsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSensorsGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSensorsGetDefault(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 } } // NewSensorsGetOK creates a SensorsGetOK with default headers values func NewSensorsGetOK() *SensorsGetOK { return &SensorsGetOK{} } /* SensorsGetOK describes a response with status code 200, with default header values. OK */ type SensorsGetOK struct { Payload *models.Sensors } // IsSuccess returns true when this sensors get o k response has a 2xx status code func (o *SensorsGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this sensors get o k response has a 3xx status code func (o *SensorsGetOK) IsRedirect() bool { return false } // IsClientError returns true when this sensors get o k response has a 4xx status code func (o *SensorsGetOK) IsClientError() bool { return false } // IsServerError returns true when this sensors get o k response has a 5xx status code func (o *SensorsGetOK) IsServerError() bool { return false } // IsCode returns true when this sensors get o k response a status code equal to that given func (o *SensorsGetOK) IsCode(code int) bool { return code == 200 } func (o *SensorsGetOK) Error() string { return fmt.Sprintf("[GET /cluster/sensors/{node.uuid}/{index}][%d] sensorsGetOK %+v", 200, o.Payload) } func (o *SensorsGetOK) String() string { return fmt.Sprintf("[GET /cluster/sensors/{node.uuid}/{index}][%d] sensorsGetOK %+v", 200, o.Payload) } func (o *SensorsGetOK) GetPayload() *models.Sensors { return o.Payload } func (o *SensorsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.Sensors) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewSensorsGetDefault creates a SensorsGetDefault with default headers values func NewSensorsGetDefault(code int) *SensorsGetDefault { return &SensorsGetDefault{ _statusCode: code, } } /* SensorsGetDefault describes a response with status code -1, with default header values. Error */ type SensorsGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the sensors get default response func (o *SensorsGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this sensors get default response has a 2xx status code func (o *SensorsGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this sensors get default response has a 3xx status code func (o *SensorsGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this sensors get default response has a 4xx status code func (o *SensorsGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this sensors get default response has a 5xx status code func (o *SensorsGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this sensors get default response a status code equal to that given func (o *SensorsGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SensorsGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/sensors/{node.uuid}/{index}][%d] sensors_get default %+v", o._statusCode, o.Payload) } func (o *SensorsGetDefault) String() string { return fmt.Sprintf("[GET /cluster/sensors/{node.uuid}/{index}][%d] sensors_get default %+v", o._statusCode, o.Payload) } func (o *SensorsGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SensorsGetDefault) 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/cluster/metrocluster_dr_group_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_dr_group_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // 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" ) // MetroclusterDrGroupGetReader is a Reader for the MetroclusterDrGroupGet structure. type MetroclusterDrGroupGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MetroclusterDrGroupGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewMetroclusterDrGroupGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMetroclusterDrGroupGetDefault(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 } } // NewMetroclusterDrGroupGetOK creates a MetroclusterDrGroupGetOK with default headers values func NewMetroclusterDrGroupGetOK() *MetroclusterDrGroupGetOK { return &MetroclusterDrGroupGetOK{} } /* MetroclusterDrGroupGetOK describes a response with status code 200, with default header values. OK */ type MetroclusterDrGroupGetOK struct { Payload *models.MetroclusterDrGroup } // IsSuccess returns true when this metrocluster dr group get o k response has a 2xx status code func (o *MetroclusterDrGroupGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this metrocluster dr group get o k response has a 3xx status code func (o *MetroclusterDrGroupGetOK) IsRedirect() bool { return false } // IsClientError returns true when this metrocluster dr group get o k response has a 4xx status code func (o *MetroclusterDrGroupGetOK) IsClientError() bool { return false } // IsServerError returns true when this metrocluster dr group get o k response has a 5xx status code func (o *MetroclusterDrGroupGetOK) IsServerError() bool { return false } // IsCode returns true when this metrocluster dr group get o k response a status code equal to that given func (o *MetroclusterDrGroupGetOK) IsCode(code int) bool { return code == 200 } func (o *MetroclusterDrGroupGetOK) Error() string { return fmt.Sprintf("[GET /cluster/metrocluster/dr-groups/{id}][%d] metroclusterDrGroupGetOK %+v", 200, o.Payload) } func (o *MetroclusterDrGroupGetOK) String() string { return fmt.Sprintf("[GET /cluster/metrocluster/dr-groups/{id}][%d] metroclusterDrGroupGetOK %+v", 200, o.Payload) } func (o *MetroclusterDrGroupGetOK) GetPayload() *models.MetroclusterDrGroup { return o.Payload } func (o *MetroclusterDrGroupGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.MetroclusterDrGroup) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewMetroclusterDrGroupGetDefault creates a MetroclusterDrGroupGetDefault with default headers values func NewMetroclusterDrGroupGetDefault(code int) *MetroclusterDrGroupGetDefault { return &MetroclusterDrGroupGetDefault{ _statusCode: code, } } /* MetroclusterDrGroupGetDefault describes a response with status code -1, with default header values. Error */ type MetroclusterDrGroupGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the metrocluster dr group get default response func (o *MetroclusterDrGroupGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this metrocluster dr group get default response has a 2xx status code func (o *MetroclusterDrGroupGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this metrocluster dr group get default response has a 3xx status code func (o *MetroclusterDrGroupGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this metrocluster dr group get default response has a 4xx status code func (o *MetroclusterDrGroupGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this metrocluster dr group get default response has a 5xx status code func (o *MetroclusterDrGroupGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this metrocluster dr group get default response a status code equal to that given func (o *MetroclusterDrGroupGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MetroclusterDrGroupGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/metrocluster/dr-groups/{id}][%d] metrocluster_dr_group_get default %+v", o._statusCode, o.Payload) } func (o *MetroclusterDrGroupGetDefault) String() string { return fmt.Sprintf("[GET /cluster/metrocluster/dr-groups/{id}][%d] metrocluster_dr_group_get default %+v", o._statusCode, o.Payload) } func (o *MetroclusterDrGroupGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MetroclusterDrGroupGetDefault) 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/cluster/metrocluster_dr_group_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_dr_group_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // 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" ) // MetroclusterDrGroupDeleteReader is a Reader for the MetroclusterDrGroupDelete structure. type MetroclusterDrGroupDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MetroclusterDrGroupDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewMetroclusterDrGroupDeleteAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMetroclusterDrGroupDeleteDefault(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 } } // NewMetroclusterDrGroupDeleteAccepted creates a MetroclusterDrGroupDeleteAccepted with default headers values func NewMetroclusterDrGroupDeleteAccepted() *MetroclusterDrGroupDeleteAccepted { return &MetroclusterDrGroupDeleteAccepted{} } /* MetroclusterDrGroupDeleteAccepted describes a response with status code 202, with default header values. Accepted */ type MetroclusterDrGroupDeleteAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this metrocluster dr group delete accepted response has a 2xx status code func (o *MetroclusterDrGroupDeleteAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this metrocluster dr group delete accepted response has a 3xx status code func (o *MetroclusterDrGroupDeleteAccepted) IsRedirect() bool { return false } // IsClientError returns true when this metrocluster dr group delete accepted response has a 4xx status code func (o *MetroclusterDrGroupDeleteAccepted) IsClientError() bool { return false } // IsServerError returns true when this metrocluster dr group delete accepted response has a 5xx status code func (o *MetroclusterDrGroupDeleteAccepted) IsServerError() bool { return false } // IsCode returns true when this metrocluster dr group delete accepted response a status code equal to that given func (o *MetroclusterDrGroupDeleteAccepted) IsCode(code int) bool { return code == 202 } func (o *MetroclusterDrGroupDeleteAccepted) Error() string { return fmt.Sprintf("[DELETE /cluster/metrocluster/dr-groups/{id}][%d] metroclusterDrGroupDeleteAccepted %+v", 202, o.Payload) } func (o *MetroclusterDrGroupDeleteAccepted) String() string { return fmt.Sprintf("[DELETE /cluster/metrocluster/dr-groups/{id}][%d] metroclusterDrGroupDeleteAccepted %+v", 202, o.Payload) } func (o *MetroclusterDrGroupDeleteAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *MetroclusterDrGroupDeleteAccepted) 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 } // NewMetroclusterDrGroupDeleteDefault creates a MetroclusterDrGroupDeleteDefault with default headers values func NewMetroclusterDrGroupDeleteDefault(code int) *MetroclusterDrGroupDeleteDefault { return &MetroclusterDrGroupDeleteDefault{ _statusCode: code, } } /* MetroclusterDrGroupDeleteDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 2425734 | An internal error occurred. Wait a few minutes, and try the operation again. For further assistance, contact technical support. | | 2432833 | Operation is already running. | | 2432859 | Unconfigurint MetroCluster DR Group | | 2432860 | Unmirroring Aggregates | | 2432861 | Unassigning Remote Disks | | 2432862 | Disabling Cluster HA and Storage Failover HA | | 2432863 | Disconnecting and deleting network connections | | 2432864 | Unconfiguring and deleting the DR Group | | 2432865 | Deleting MetroCluster DR Group | | 2432866 | MetroCluster DR Group delete done | */ type MetroclusterDrGroupDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the metrocluster dr group delete default response func (o *MetroclusterDrGroupDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this metrocluster dr group delete default response has a 2xx status code func (o *MetroclusterDrGroupDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this metrocluster dr group delete default response has a 3xx status code func (o *MetroclusterDrGroupDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this metrocluster dr group delete default response has a 4xx status code func (o *MetroclusterDrGroupDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this metrocluster dr group delete default response has a 5xx status code func (o *MetroclusterDrGroupDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this metrocluster dr group delete default response a status code equal to that given func (o *MetroclusterDrGroupDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MetroclusterDrGroupDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /cluster/metrocluster/dr-groups/{id}][%d] metrocluster_dr_group_delete default %+v", o._statusCode, o.Payload) } func (o *MetroclusterDrGroupDeleteDefault) String() string { return fmt.Sprintf("[DELETE /cluster/metrocluster/dr-groups/{id}][%d] metrocluster_dr_group_delete default %+v", o._statusCode, o.Payload) } func (o *MetroclusterDrGroupDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MetroclusterDrGroupDeleteDefault) 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/cluster/license_manager_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_manager_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // 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" ) // NewLicenseManagerGetParams creates a new LicenseManagerGetParams 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 NewLicenseManagerGetParams() *LicenseManagerGetParams { return &LicenseManagerGetParams{ timeout: cr.DefaultTimeout, } } // NewLicenseManagerGetParamsWithTimeout creates a new LicenseManagerGetParams object // with the ability to set a timeout on a request. func NewLicenseManagerGetParamsWithTimeout(timeout time.Duration) *LicenseManagerGetParams { return &LicenseManagerGetParams{ timeout: timeout, } } // NewLicenseManagerGetParamsWithContext creates a new LicenseManagerGetParams object // with the ability to set a context for a request. func NewLicenseManagerGetParamsWithContext(ctx context.Context) *LicenseManagerGetParams { return &LicenseManagerGetParams{ Context: ctx, } } // NewLicenseManagerGetParamsWithHTTPClient creates a new LicenseManagerGetParams object // with the ability to set a custom HTTPClient for a request. func NewLicenseManagerGetParamsWithHTTPClient(client *http.Client) *LicenseManagerGetParams { return &LicenseManagerGetParams{ HTTPClient: client, } } /* LicenseManagerGetParams contains all the parameters to send to the API endpoint for the license manager get operation. Typically these are written to a http.Request. */ type LicenseManagerGetParams struct { /* Default. Filter by default */ Default *bool /* Fields. Specify the fields to return. */ Fields []string /* URIHost. Filter by uri.host */ URIHost *string // UUID. UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the license manager get params (not the query body). // // All values with no default are reset to their zero value. func (o *LicenseManagerGetParams) WithDefaults() *LicenseManagerGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the license manager get params (not the query body). // // All values with no default are reset to their zero value. func (o *LicenseManagerGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the license manager get params func (o *LicenseManagerGetParams) WithTimeout(timeout time.Duration) *LicenseManagerGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the license manager get params func (o *LicenseManagerGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the license manager get params func (o *LicenseManagerGetParams) WithContext(ctx context.Context) *LicenseManagerGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the license manager get params func (o *LicenseManagerGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the license manager get params func (o *LicenseManagerGetParams) WithHTTPClient(client *http.Client) *LicenseManagerGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the license manager get params func (o *LicenseManagerGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithDefault adds the defaultVar to the license manager get params func (o *LicenseManagerGetParams) WithDefault(defaultVar *bool) *LicenseManagerGetParams { o.SetDefault(defaultVar) return o } // SetDefault adds the default to the license manager get params func (o *LicenseManagerGetParams) SetDefault(defaultVar *bool) { o.Default = defaultVar } // WithFields adds the fields to the license manager get params func (o *LicenseManagerGetParams) WithFields(fields []string) *LicenseManagerGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the license manager get params func (o *LicenseManagerGetParams) SetFields(fields []string) { o.Fields = fields } // WithURIHost adds the uRIHost to the license manager get params func (o *LicenseManagerGetParams) WithURIHost(uRIHost *string) *LicenseManagerGetParams { o.SetURIHost(uRIHost) return o } // SetURIHost adds the uriHost to the license manager get params func (o *LicenseManagerGetParams) SetURIHost(uRIHost *string) { o.URIHost = uRIHost } // WithUUID adds the uuid to the license manager get params func (o *LicenseManagerGetParams) WithUUID(uuid string) *LicenseManagerGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the license manager get params func (o *LicenseManagerGetParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *LicenseManagerGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Default != nil { // query param default var qrDefault bool if o.Default != nil { qrDefault = *o.Default } qDefault := swag.FormatBool(qrDefault) if qDefault != "" { if err := r.SetQueryParam("default", qDefault); 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.URIHost != nil { // query param uri.host var qrURIHost string if o.URIHost != nil { qrURIHost = *o.URIHost } qURIHost := qrURIHost if qURIHost != "" { if err := r.SetQueryParam("uri.host", qURIHost); 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 } // bindParamLicenseManagerGet binds the parameter fields func (o *LicenseManagerGetParams) 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/cluster/schedule_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/schedule_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // 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" ) // NewScheduleDeleteParams creates a new ScheduleDeleteParams 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 NewScheduleDeleteParams() *ScheduleDeleteParams { return &ScheduleDeleteParams{ timeout: cr.DefaultTimeout, } } // NewScheduleDeleteParamsWithTimeout creates a new ScheduleDeleteParams object // with the ability to set a timeout on a request. func NewScheduleDeleteParamsWithTimeout(timeout time.Duration) *ScheduleDeleteParams { return &ScheduleDeleteParams{ timeout: timeout, } } // NewScheduleDeleteParamsWithContext creates a new ScheduleDeleteParams object // with the ability to set a context for a request. func NewScheduleDeleteParamsWithContext(ctx context.Context) *ScheduleDeleteParams { return &ScheduleDeleteParams{ Context: ctx, } } // NewScheduleDeleteParamsWithHTTPClient creates a new ScheduleDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewScheduleDeleteParamsWithHTTPClient(client *http.Client) *ScheduleDeleteParams { return &ScheduleDeleteParams{ HTTPClient: client, } } /* ScheduleDeleteParams contains all the parameters to send to the API endpoint for the schedule delete operation. Typically these are written to a http.Request. */ type ScheduleDeleteParams struct { /* UUID. Schedule UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the schedule delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ScheduleDeleteParams) WithDefaults() *ScheduleDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the schedule delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ScheduleDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the schedule delete params func (o *ScheduleDeleteParams) WithTimeout(timeout time.Duration) *ScheduleDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the schedule delete params func (o *ScheduleDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the schedule delete params func (o *ScheduleDeleteParams) WithContext(ctx context.Context) *ScheduleDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the schedule delete params func (o *ScheduleDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the schedule delete params func (o *ScheduleDeleteParams) WithHTTPClient(client *http.Client) *ScheduleDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the schedule delete params func (o *ScheduleDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithUUID adds the uuid to the schedule delete params func (o *ScheduleDeleteParams) WithUUID(uuid string) *ScheduleDeleteParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the schedule delete params func (o *ScheduleDeleteParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ScheduleDeleteParams) 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/cluster/metrocluster_diagnostics_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_diagnostics_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // 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" ) // NewMetroclusterDiagnosticsCreateParams creates a new MetroclusterDiagnosticsCreateParams 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 NewMetroclusterDiagnosticsCreateParams() *MetroclusterDiagnosticsCreateParams { return &MetroclusterDiagnosticsCreateParams{ timeout: cr.DefaultTimeout, } } // NewMetroclusterDiagnosticsCreateParamsWithTimeout creates a new MetroclusterDiagnosticsCreateParams object // with the ability to set a timeout on a request. func NewMetroclusterDiagnosticsCreateParamsWithTimeout(timeout time.Duration) *MetroclusterDiagnosticsCreateParams { return &MetroclusterDiagnosticsCreateParams{ timeout: timeout, } } // NewMetroclusterDiagnosticsCreateParamsWithContext creates a new MetroclusterDiagnosticsCreateParams object // with the ability to set a context for a request. func NewMetroclusterDiagnosticsCreateParamsWithContext(ctx context.Context) *MetroclusterDiagnosticsCreateParams { return &MetroclusterDiagnosticsCreateParams{ Context: ctx, } } // NewMetroclusterDiagnosticsCreateParamsWithHTTPClient creates a new MetroclusterDiagnosticsCreateParams object // with the ability to set a custom HTTPClient for a request. func NewMetroclusterDiagnosticsCreateParamsWithHTTPClient(client *http.Client) *MetroclusterDiagnosticsCreateParams { return &MetroclusterDiagnosticsCreateParams{ HTTPClient: client, } } /* MetroclusterDiagnosticsCreateParams contains all the parameters to send to the API endpoint for the metrocluster diagnostics create operation. Typically these are written to a http.Request. */ type MetroclusterDiagnosticsCreateParams 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 /* Schedule. Shows the minutes of every hour when a job runs. Setting this parameter schedules the periodic job to be run to perform MetroCluster diagnostic. */ Schedule *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the metrocluster diagnostics create params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterDiagnosticsCreateParams) WithDefaults() *MetroclusterDiagnosticsCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the metrocluster diagnostics create params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterDiagnosticsCreateParams) SetDefaults() { var ( returnTimeoutDefault = int64(0) ) val := MetroclusterDiagnosticsCreateParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the metrocluster diagnostics create params func (o *MetroclusterDiagnosticsCreateParams) WithTimeout(timeout time.Duration) *MetroclusterDiagnosticsCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the metrocluster diagnostics create params func (o *MetroclusterDiagnosticsCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the metrocluster diagnostics create params func (o *MetroclusterDiagnosticsCreateParams) WithContext(ctx context.Context) *MetroclusterDiagnosticsCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the metrocluster diagnostics create params func (o *MetroclusterDiagnosticsCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the metrocluster diagnostics create params func (o *MetroclusterDiagnosticsCreateParams) WithHTTPClient(client *http.Client) *MetroclusterDiagnosticsCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the metrocluster diagnostics create params func (o *MetroclusterDiagnosticsCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithReturnTimeout adds the returnTimeout to the metrocluster diagnostics create params func (o *MetroclusterDiagnosticsCreateParams) WithReturnTimeout(returnTimeout *int64) *MetroclusterDiagnosticsCreateParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the metrocluster diagnostics create params func (o *MetroclusterDiagnosticsCreateParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithSchedule adds the schedule to the metrocluster diagnostics create params func (o *MetroclusterDiagnosticsCreateParams) WithSchedule(schedule *int64) *MetroclusterDiagnosticsCreateParams { o.SetSchedule(schedule) return o } // SetSchedule adds the schedule to the metrocluster diagnostics create params func (o *MetroclusterDiagnosticsCreateParams) SetSchedule(schedule *int64) { o.Schedule = schedule } // WriteToRequest writes these params to a swagger request func (o *MetroclusterDiagnosticsCreateParams) 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 } } } if o.Schedule != nil { // query param schedule var qrSchedule int64 if o.Schedule != nil { qrSchedule = *o.Schedule } qSchedule := swag.FormatInt64(qrSchedule) if qSchedule != "" { if err := r.SetQueryParam("schedule", qSchedule); 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/cluster/software_history_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_history_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // 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" ) // SoftwareHistoryCollectionGetReader is a Reader for the SoftwareHistoryCollectionGet structure. type SoftwareHistoryCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SoftwareHistoryCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSoftwareHistoryCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSoftwareHistoryCollectionGetDefault(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 } } // NewSoftwareHistoryCollectionGetOK creates a SoftwareHistoryCollectionGetOK with default headers values func NewSoftwareHistoryCollectionGetOK() *SoftwareHistoryCollectionGetOK { return &SoftwareHistoryCollectionGetOK{} } /* SoftwareHistoryCollectionGetOK describes a response with status code 200, with default header values. OK */ type SoftwareHistoryCollectionGetOK struct { Payload *models.SoftwareHistoryResponse } // IsSuccess returns true when this software history collection get o k response has a 2xx status code func (o *SoftwareHistoryCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this software history collection get o k response has a 3xx status code func (o *SoftwareHistoryCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this software history collection get o k response has a 4xx status code func (o *SoftwareHistoryCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this software history collection get o k response has a 5xx status code func (o *SoftwareHistoryCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this software history collection get o k response a status code equal to that given func (o *SoftwareHistoryCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *SoftwareHistoryCollectionGetOK) Error() string { return fmt.Sprintf("[GET /cluster/software/history][%d] softwareHistoryCollectionGetOK %+v", 200, o.Payload) } func (o *SoftwareHistoryCollectionGetOK) String() string { return fmt.Sprintf("[GET /cluster/software/history][%d] softwareHistoryCollectionGetOK %+v", 200, o.Payload) } func (o *SoftwareHistoryCollectionGetOK) GetPayload() *models.SoftwareHistoryResponse { return o.Payload } func (o *SoftwareHistoryCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.SoftwareHistoryResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewSoftwareHistoryCollectionGetDefault creates a SoftwareHistoryCollectionGetDefault with default headers values func NewSoftwareHistoryCollectionGetDefault(code int) *SoftwareHistoryCollectionGetDefault { return &SoftwareHistoryCollectionGetDefault{ _statusCode: code, } } /* SoftwareHistoryCollectionGetDefault describes a response with status code -1, with default header values. Error */ type SoftwareHistoryCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the software history collection get default response func (o *SoftwareHistoryCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this software history collection get default response has a 2xx status code func (o *SoftwareHistoryCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this software history collection get default response has a 3xx status code func (o *SoftwareHistoryCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this software history collection get default response has a 4xx status code func (o *SoftwareHistoryCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this software history collection get default response has a 5xx status code func (o *SoftwareHistoryCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this software history collection get default response a status code equal to that given func (o *SoftwareHistoryCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SoftwareHistoryCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/software/history][%d] software_history_collection_get default %+v", o._statusCode, o.Payload) } func (o *SoftwareHistoryCollectionGetDefault) String() string { return fmt.Sprintf("[GET /cluster/software/history][%d] software_history_collection_get default %+v", o._statusCode, o.Payload) } func (o *SoftwareHistoryCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SoftwareHistoryCollectionGetDefault) 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/cluster/metrocluster_operation_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_operation_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // 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" ) // NewMetroclusterOperationGetParams creates a new MetroclusterOperationGetParams 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 NewMetroclusterOperationGetParams() *MetroclusterOperationGetParams { return &MetroclusterOperationGetParams{ timeout: cr.DefaultTimeout, } } // NewMetroclusterOperationGetParamsWithTimeout creates a new MetroclusterOperationGetParams object // with the ability to set a timeout on a request. func NewMetroclusterOperationGetParamsWithTimeout(timeout time.Duration) *MetroclusterOperationGetParams { return &MetroclusterOperationGetParams{ timeout: timeout, } } // NewMetroclusterOperationGetParamsWithContext creates a new MetroclusterOperationGetParams object // with the ability to set a context for a request. func NewMetroclusterOperationGetParamsWithContext(ctx context.Context) *MetroclusterOperationGetParams { return &MetroclusterOperationGetParams{ Context: ctx, } } // NewMetroclusterOperationGetParamsWithHTTPClient creates a new MetroclusterOperationGetParams object // with the ability to set a custom HTTPClient for a request. func NewMetroclusterOperationGetParamsWithHTTPClient(client *http.Client) *MetroclusterOperationGetParams { return &MetroclusterOperationGetParams{ HTTPClient: client, } } /* MetroclusterOperationGetParams contains all the parameters to send to the API endpoint for the metrocluster operation get operation. Typically these are written to a http.Request. */ type MetroclusterOperationGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* UUID. Unique identifier for the operation. */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the metrocluster operation get params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterOperationGetParams) WithDefaults() *MetroclusterOperationGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the metrocluster operation get params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterOperationGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the metrocluster operation get params func (o *MetroclusterOperationGetParams) WithTimeout(timeout time.Duration) *MetroclusterOperationGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the metrocluster operation get params func (o *MetroclusterOperationGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the metrocluster operation get params func (o *MetroclusterOperationGetParams) WithContext(ctx context.Context) *MetroclusterOperationGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the metrocluster operation get params func (o *MetroclusterOperationGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the metrocluster operation get params func (o *MetroclusterOperationGetParams) WithHTTPClient(client *http.Client) *MetroclusterOperationGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the metrocluster operation get params func (o *MetroclusterOperationGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the metrocluster operation get params func (o *MetroclusterOperationGetParams) WithFields(fields []string) *MetroclusterOperationGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the metrocluster operation get params func (o *MetroclusterOperationGetParams) SetFields(fields []string) { o.Fields = fields } // WithUUID adds the uuid to the metrocluster operation get params func (o *MetroclusterOperationGetParams) WithUUID(uuid string) *MetroclusterOperationGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the metrocluster operation get params func (o *MetroclusterOperationGetParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *MetroclusterOperationGetParams) 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 } // bindParamMetroclusterOperationGet binds the parameter fields func (o *MetroclusterOperationGetParams) 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/cluster/license_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // 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" ) // NewLicenseDeleteParams creates a new LicenseDeleteParams 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 NewLicenseDeleteParams() *LicenseDeleteParams { return &LicenseDeleteParams{ timeout: cr.DefaultTimeout, } } // NewLicenseDeleteParamsWithTimeout creates a new LicenseDeleteParams object // with the ability to set a timeout on a request. func NewLicenseDeleteParamsWithTimeout(timeout time.Duration) *LicenseDeleteParams { return &LicenseDeleteParams{ timeout: timeout, } } // NewLicenseDeleteParamsWithContext creates a new LicenseDeleteParams object // with the ability to set a context for a request. func NewLicenseDeleteParamsWithContext(ctx context.Context) *LicenseDeleteParams { return &LicenseDeleteParams{ Context: ctx, } } // NewLicenseDeleteParamsWithHTTPClient creates a new LicenseDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewLicenseDeleteParamsWithHTTPClient(client *http.Client) *LicenseDeleteParams { return &LicenseDeleteParams{ HTTPClient: client, } } /* LicenseDeleteParams contains all the parameters to send to the API endpoint for the license delete operation. Typically these are written to a http.Request. */ type LicenseDeleteParams struct { /* Name. Name of the license package to delete. */ Name string /* SerialNumber. Serial number of the license to delete. */ SerialNumber string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the license delete params (not the query body). // // All values with no default are reset to their zero value. func (o *LicenseDeleteParams) WithDefaults() *LicenseDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the license delete params (not the query body). // // All values with no default are reset to their zero value. func (o *LicenseDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the license delete params func (o *LicenseDeleteParams) WithTimeout(timeout time.Duration) *LicenseDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the license delete params func (o *LicenseDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the license delete params func (o *LicenseDeleteParams) WithContext(ctx context.Context) *LicenseDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the license delete params func (o *LicenseDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the license delete params func (o *LicenseDeleteParams) WithHTTPClient(client *http.Client) *LicenseDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the license delete params func (o *LicenseDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithName adds the name to the license delete params func (o *LicenseDeleteParams) WithName(name string) *LicenseDeleteParams { o.SetName(name) return o } // SetName adds the name to the license delete params func (o *LicenseDeleteParams) SetName(name string) { o.Name = name } // WithSerialNumber adds the serialNumber to the license delete params func (o *LicenseDeleteParams) WithSerialNumber(serialNumber string) *LicenseDeleteParams { o.SetSerialNumber(serialNumber) return o } // SetSerialNumber adds the serialNumber to the license delete params func (o *LicenseDeleteParams) SetSerialNumber(serialNumber string) { o.SerialNumber = serialNumber } // WriteToRequest writes these params to a swagger request func (o *LicenseDeleteParams) 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 } // query param serial_number qrSerialNumber := o.SerialNumber qSerialNumber := qrSerialNumber if qSerialNumber != "" { if err := r.SetQueryParam("serial_number", qSerialNumber); 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/cluster/mediator_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/mediator_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // 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" ) // MediatorCreateReader is a Reader for the MediatorCreate structure. type MediatorCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MediatorCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewMediatorCreateAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMediatorCreateDefault(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 } } // NewMediatorCreateAccepted creates a MediatorCreateAccepted with default headers values func NewMediatorCreateAccepted() *MediatorCreateAccepted { return &MediatorCreateAccepted{} } /* MediatorCreateAccepted describes a response with status code 202, with default header values. Accepted */ type MediatorCreateAccepted struct { /* Useful for tracking the resource location */ Location string Payload *models.JobLinkResponse } // IsSuccess returns true when this mediator create accepted response has a 2xx status code func (o *MediatorCreateAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this mediator create accepted response has a 3xx status code func (o *MediatorCreateAccepted) IsRedirect() bool { return false } // IsClientError returns true when this mediator create accepted response has a 4xx status code func (o *MediatorCreateAccepted) IsClientError() bool { return false } // IsServerError returns true when this mediator create accepted response has a 5xx status code func (o *MediatorCreateAccepted) IsServerError() bool { return false } // IsCode returns true when this mediator create accepted response a status code equal to that given func (o *MediatorCreateAccepted) IsCode(code int) bool { return code == 202 } func (o *MediatorCreateAccepted) Error() string { return fmt.Sprintf("[POST /cluster/mediators][%d] mediatorCreateAccepted %+v", 202, o.Payload) } func (o *MediatorCreateAccepted) String() string { return fmt.Sprintf("[POST /cluster/mediators][%d] mediatorCreateAccepted %+v", 202, o.Payload) } func (o *MediatorCreateAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *MediatorCreateAccepted) 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 } // NewMediatorCreateDefault creates a MediatorCreateDefault with default headers values func NewMediatorCreateDefault(code int) *MediatorCreateDefault { return &MediatorCreateDefault{ _statusCode: code, } } /* MediatorCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response codes | Error code | Description | |-------------|--------------| | 13369351 | Update to mediator failed. Reason: does not authorized for that command. Check that the peer cluster and mediator are reachable.| */ type MediatorCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the mediator create default response func (o *MediatorCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this mediator create default response has a 2xx status code func (o *MediatorCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this mediator create default response has a 3xx status code func (o *MediatorCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this mediator create default response has a 4xx status code func (o *MediatorCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this mediator create default response has a 5xx status code func (o *MediatorCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this mediator create default response a status code equal to that given func (o *MediatorCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MediatorCreateDefault) Error() string { return fmt.Sprintf("[POST /cluster/mediators][%d] mediator_create default %+v", o._statusCode, o.Payload) } func (o *MediatorCreateDefault) String() string { return fmt.Sprintf("[POST /cluster/mediators][%d] mediator_create default %+v", o._statusCode, o.Payload) } func (o *MediatorCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MediatorCreateDefault) 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/cluster/node_metrics_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/node_metrics_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // 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" ) // NewNodeMetricsCollectionGetParams creates a new NodeMetricsCollectionGetParams 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 NewNodeMetricsCollectionGetParams() *NodeMetricsCollectionGetParams { return &NodeMetricsCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewNodeMetricsCollectionGetParamsWithTimeout creates a new NodeMetricsCollectionGetParams object // with the ability to set a timeout on a request. func NewNodeMetricsCollectionGetParamsWithTimeout(timeout time.Duration) *NodeMetricsCollectionGetParams { return &NodeMetricsCollectionGetParams{ timeout: timeout, } } // NewNodeMetricsCollectionGetParamsWithContext creates a new NodeMetricsCollectionGetParams object // with the ability to set a context for a request. func NewNodeMetricsCollectionGetParamsWithContext(ctx context.Context) *NodeMetricsCollectionGetParams { return &NodeMetricsCollectionGetParams{ Context: ctx, } } // NewNodeMetricsCollectionGetParamsWithHTTPClient creates a new NodeMetricsCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewNodeMetricsCollectionGetParamsWithHTTPClient(client *http.Client) *NodeMetricsCollectionGetParams { return &NodeMetricsCollectionGetParams{ HTTPClient: client, } } /* NodeMetricsCollectionGetParams contains all the parameters to send to the API endpoint for the node metrics collection get operation. Typically these are written to a http.Request. */ type NodeMetricsCollectionGetParams 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 /* 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 /* ProcessorUtilization. Filter by processor_utilization */ ProcessorUtilization *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 /* Status. Filter by status */ Status *string /* Timestamp. Filter by timestamp */ Timestamp *string /* UUID. Unique identifier of the node. */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the node metrics collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *NodeMetricsCollectionGetParams) WithDefaults() *NodeMetricsCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the node metrics collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *NodeMetricsCollectionGetParams) SetDefaults() { var ( intervalDefault = string("1h") returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := NodeMetricsCollectionGetParams{ 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 node metrics collection get params func (o *NodeMetricsCollectionGetParams) WithTimeout(timeout time.Duration) *NodeMetricsCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) WithContext(ctx context.Context) *NodeMetricsCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) WithHTTPClient(client *http.Client) *NodeMetricsCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithDuration adds the duration to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) WithDuration(duration *string) *NodeMetricsCollectionGetParams { o.SetDuration(duration) return o } // SetDuration adds the duration to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) SetDuration(duration *string) { o.Duration = duration } // WithFields adds the fields to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) WithFields(fields []string) *NodeMetricsCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithInterval adds the interval to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) WithInterval(interval *string) *NodeMetricsCollectionGetParams { o.SetInterval(interval) return o } // SetInterval adds the interval to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) SetInterval(interval *string) { o.Interval = interval } // WithMaxRecords adds the maxRecords to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) WithMaxRecords(maxRecords *int64) *NodeMetricsCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) WithOrderBy(orderBy []string) *NodeMetricsCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithProcessorUtilization adds the processorUtilization to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) WithProcessorUtilization(processorUtilization *int64) *NodeMetricsCollectionGetParams { o.SetProcessorUtilization(processorUtilization) return o } // SetProcessorUtilization adds the processorUtilization to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) SetProcessorUtilization(processorUtilization *int64) { o.ProcessorUtilization = processorUtilization } // WithReturnRecords adds the returnRecords to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) WithReturnRecords(returnRecords *bool) *NodeMetricsCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *NodeMetricsCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithStatus adds the status to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) WithStatus(status *string) *NodeMetricsCollectionGetParams { o.SetStatus(status) return o } // SetStatus adds the status to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) SetStatus(status *string) { o.Status = status } // WithTimestamp adds the timestamp to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) WithTimestamp(timestamp *string) *NodeMetricsCollectionGetParams { o.SetTimestamp(timestamp) return o } // SetTimestamp adds the timestamp to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) SetTimestamp(timestamp *string) { o.Timestamp = timestamp } // WithUUID adds the uuid to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) WithUUID(uuid string) *NodeMetricsCollectionGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the node metrics collection get params func (o *NodeMetricsCollectionGetParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *NodeMetricsCollectionGetParams) 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.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.ProcessorUtilization != nil { // query param processor_utilization var qrProcessorUtilization int64 if o.ProcessorUtilization != nil { qrProcessorUtilization = *o.ProcessorUtilization } qProcessorUtilization := swag.FormatInt64(qrProcessorUtilization) if qProcessorUtilization != "" { if err := r.SetQueryParam("processor_utilization", qProcessorUtilization); 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 } } } 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 } } } // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamNodeMetricsCollectionGet binds the parameter fields func (o *NodeMetricsCollectionGetParams) 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 } // bindParamNodeMetricsCollectionGet binds the parameter order_by func (o *NodeMetricsCollectionGetParams) 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/cluster/cluster_peer_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_peer_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // 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" ) // ClusterPeerDeleteReader is a Reader for the ClusterPeerDelete structure. type ClusterPeerDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterPeerDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewClusterPeerDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterPeerDeleteDefault(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 } } // NewClusterPeerDeleteOK creates a ClusterPeerDeleteOK with default headers values func NewClusterPeerDeleteOK() *ClusterPeerDeleteOK { return &ClusterPeerDeleteOK{} } /* ClusterPeerDeleteOK describes a response with status code 200, with default header values. OK */ type ClusterPeerDeleteOK struct { } // IsSuccess returns true when this cluster peer delete o k response has a 2xx status code func (o *ClusterPeerDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this cluster peer delete o k response has a 3xx status code func (o *ClusterPeerDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this cluster peer delete o k response has a 4xx status code func (o *ClusterPeerDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this cluster peer delete o k response has a 5xx status code func (o *ClusterPeerDeleteOK) IsServerError() bool { return false } // IsCode returns true when this cluster peer delete o k response a status code equal to that given func (o *ClusterPeerDeleteOK) IsCode(code int) bool { return code == 200 } func (o *ClusterPeerDeleteOK) Error() string { return fmt.Sprintf("[DELETE /cluster/peers/{uuid}][%d] clusterPeerDeleteOK ", 200) } func (o *ClusterPeerDeleteOK) String() string { return fmt.Sprintf("[DELETE /cluster/peers/{uuid}][%d] clusterPeerDeleteOK ", 200) } func (o *ClusterPeerDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewClusterPeerDeleteDefault creates a ClusterPeerDeleteDefault with default headers values func NewClusterPeerDeleteDefault(code int) *ClusterPeerDeleteDefault { return &ClusterPeerDeleteDefault{ _statusCode: code, } } /* ClusterPeerDeleteDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 4663070 | Unable to delete cluster peer relationship due to an ongoing Vserver migration. | */ type ClusterPeerDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster peer delete default response func (o *ClusterPeerDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster peer delete default response has a 2xx status code func (o *ClusterPeerDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster peer delete default response has a 3xx status code func (o *ClusterPeerDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster peer delete default response has a 4xx status code func (o *ClusterPeerDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster peer delete default response has a 5xx status code func (o *ClusterPeerDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster peer delete default response a status code equal to that given func (o *ClusterPeerDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterPeerDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /cluster/peers/{uuid}][%d] cluster_peer_delete default %+v", o._statusCode, o.Payload) } func (o *ClusterPeerDeleteDefault) String() string { return fmt.Sprintf("[DELETE /cluster/peers/{uuid}][%d] cluster_peer_delete default %+v", o._statusCode, o.Payload) } func (o *ClusterPeerDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterPeerDeleteDefault) 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/cluster/licenses_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/licenses_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // 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" ) // NewLicensesGetParams creates a new LicensesGetParams 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 NewLicensesGetParams() *LicensesGetParams { return &LicensesGetParams{ timeout: cr.DefaultTimeout, } } // NewLicensesGetParamsWithTimeout creates a new LicensesGetParams object // with the ability to set a timeout on a request. func NewLicensesGetParamsWithTimeout(timeout time.Duration) *LicensesGetParams { return &LicensesGetParams{ timeout: timeout, } } // NewLicensesGetParamsWithContext creates a new LicensesGetParams object // with the ability to set a context for a request. func NewLicensesGetParamsWithContext(ctx context.Context) *LicensesGetParams { return &LicensesGetParams{ Context: ctx, } } // NewLicensesGetParamsWithHTTPClient creates a new LicensesGetParams object // with the ability to set a custom HTTPClient for a request. func NewLicensesGetParamsWithHTTPClient(client *http.Client) *LicensesGetParams { return &LicensesGetParams{ HTTPClient: client, } } /* LicensesGetParams contains all the parameters to send to the API endpoint for the licenses get operation. Typically these are written to a http.Request. */ type LicensesGetParams struct { /* Description. Filter by description */ Description *string /* EntitlementAction. Filter by entitlement.action */ EntitlementAction *string /* EntitlementRisk. Filter by entitlement.risk */ EntitlementRisk *string /* Fields. Specify the fields to return. */ Fields []string /* LicensesActive. Filter by licenses.active */ LicensesActive *bool /* LicensesCapacityMaximumSize. Filter by licenses.capacity.maximum_size */ LicensesCapacityMaximumSize *int64 /* LicensesCapacityUsedSize. Filter by licenses.capacity.used_size */ LicensesCapacityUsedSize *int64 /* LicensesComplianceState. Filter by licenses.compliance.state */ LicensesComplianceState *string /* LicensesEvaluation. Filter by licenses.evaluation */ LicensesEvaluation *bool /* LicensesExpiryTime. Filter by licenses.expiry_time */ LicensesExpiryTime *string /* LicensesHostID. Filter by licenses.host_id */ LicensesHostID *string /* LicensesInstalledLicense. Filter by licenses.installed_license */ LicensesInstalledLicense *string /* LicensesOwner. Filter by licenses.owner */ LicensesOwner *string /* LicensesSerialNumber. Filter by licenses.serial_number */ LicensesSerialNumber *string /* LicensesShutdownImminent. Filter by licenses.shutdown_imminent */ LicensesShutdownImminent *bool /* LicensesStartTime. Filter by licenses.start_time */ LicensesStartTime *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 /* Scope. Filter by scope */ Scope *string /* State. Filter by state */ State *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the licenses get params (not the query body). // // All values with no default are reset to their zero value. func (o *LicensesGetParams) WithDefaults() *LicensesGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the licenses get params (not the query body). // // All values with no default are reset to their zero value. func (o *LicensesGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := LicensesGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the licenses get params func (o *LicensesGetParams) WithTimeout(timeout time.Duration) *LicensesGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the licenses get params func (o *LicensesGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the licenses get params func (o *LicensesGetParams) WithContext(ctx context.Context) *LicensesGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the licenses get params func (o *LicensesGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the licenses get params func (o *LicensesGetParams) WithHTTPClient(client *http.Client) *LicensesGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the licenses get params func (o *LicensesGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithDescription adds the description to the licenses get params func (o *LicensesGetParams) WithDescription(description *string) *LicensesGetParams { o.SetDescription(description) return o } // SetDescription adds the description to the licenses get params func (o *LicensesGetParams) SetDescription(description *string) { o.Description = description } // WithEntitlementAction adds the entitlementAction to the licenses get params func (o *LicensesGetParams) WithEntitlementAction(entitlementAction *string) *LicensesGetParams { o.SetEntitlementAction(entitlementAction) return o } // SetEntitlementAction adds the entitlementAction to the licenses get params func (o *LicensesGetParams) SetEntitlementAction(entitlementAction *string) { o.EntitlementAction = entitlementAction } // WithEntitlementRisk adds the entitlementRisk to the licenses get params func (o *LicensesGetParams) WithEntitlementRisk(entitlementRisk *string) *LicensesGetParams { o.SetEntitlementRisk(entitlementRisk) return o } // SetEntitlementRisk adds the entitlementRisk to the licenses get params func (o *LicensesGetParams) SetEntitlementRisk(entitlementRisk *string) { o.EntitlementRisk = entitlementRisk } // WithFields adds the fields to the licenses get params func (o *LicensesGetParams) WithFields(fields []string) *LicensesGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the licenses get params func (o *LicensesGetParams) SetFields(fields []string) { o.Fields = fields } // WithLicensesActive adds the licensesActive to the licenses get params func (o *LicensesGetParams) WithLicensesActive(licensesActive *bool) *LicensesGetParams { o.SetLicensesActive(licensesActive) return o } // SetLicensesActive adds the licensesActive to the licenses get params func (o *LicensesGetParams) SetLicensesActive(licensesActive *bool) { o.LicensesActive = licensesActive } // WithLicensesCapacityMaximumSize adds the licensesCapacityMaximumSize to the licenses get params func (o *LicensesGetParams) WithLicensesCapacityMaximumSize(licensesCapacityMaximumSize *int64) *LicensesGetParams { o.SetLicensesCapacityMaximumSize(licensesCapacityMaximumSize) return o } // SetLicensesCapacityMaximumSize adds the licensesCapacityMaximumSize to the licenses get params func (o *LicensesGetParams) SetLicensesCapacityMaximumSize(licensesCapacityMaximumSize *int64) { o.LicensesCapacityMaximumSize = licensesCapacityMaximumSize } // WithLicensesCapacityUsedSize adds the licensesCapacityUsedSize to the licenses get params func (o *LicensesGetParams) WithLicensesCapacityUsedSize(licensesCapacityUsedSize *int64) *LicensesGetParams { o.SetLicensesCapacityUsedSize(licensesCapacityUsedSize) return o } // SetLicensesCapacityUsedSize adds the licensesCapacityUsedSize to the licenses get params func (o *LicensesGetParams) SetLicensesCapacityUsedSize(licensesCapacityUsedSize *int64) { o.LicensesCapacityUsedSize = licensesCapacityUsedSize } // WithLicensesComplianceState adds the licensesComplianceState to the licenses get params func (o *LicensesGetParams) WithLicensesComplianceState(licensesComplianceState *string) *LicensesGetParams { o.SetLicensesComplianceState(licensesComplianceState) return o } // SetLicensesComplianceState adds the licensesComplianceState to the licenses get params func (o *LicensesGetParams) SetLicensesComplianceState(licensesComplianceState *string) { o.LicensesComplianceState = licensesComplianceState } // WithLicensesEvaluation adds the licensesEvaluation to the licenses get params func (o *LicensesGetParams) WithLicensesEvaluation(licensesEvaluation *bool) *LicensesGetParams { o.SetLicensesEvaluation(licensesEvaluation) return o } // SetLicensesEvaluation adds the licensesEvaluation to the licenses get params func (o *LicensesGetParams) SetLicensesEvaluation(licensesEvaluation *bool) { o.LicensesEvaluation = licensesEvaluation } // WithLicensesExpiryTime adds the licensesExpiryTime to the licenses get params func (o *LicensesGetParams) WithLicensesExpiryTime(licensesExpiryTime *string) *LicensesGetParams { o.SetLicensesExpiryTime(licensesExpiryTime) return o } // SetLicensesExpiryTime adds the licensesExpiryTime to the licenses get params func (o *LicensesGetParams) SetLicensesExpiryTime(licensesExpiryTime *string) { o.LicensesExpiryTime = licensesExpiryTime } // WithLicensesHostID adds the licensesHostID to the licenses get params func (o *LicensesGetParams) WithLicensesHostID(licensesHostID *string) *LicensesGetParams { o.SetLicensesHostID(licensesHostID) return o } // SetLicensesHostID adds the licensesHostId to the licenses get params func (o *LicensesGetParams) SetLicensesHostID(licensesHostID *string) { o.LicensesHostID = licensesHostID } // WithLicensesInstalledLicense adds the licensesInstalledLicense to the licenses get params func (o *LicensesGetParams) WithLicensesInstalledLicense(licensesInstalledLicense *string) *LicensesGetParams { o.SetLicensesInstalledLicense(licensesInstalledLicense) return o } // SetLicensesInstalledLicense adds the licensesInstalledLicense to the licenses get params func (o *LicensesGetParams) SetLicensesInstalledLicense(licensesInstalledLicense *string) { o.LicensesInstalledLicense = licensesInstalledLicense } // WithLicensesOwner adds the licensesOwner to the licenses get params func (o *LicensesGetParams) WithLicensesOwner(licensesOwner *string) *LicensesGetParams { o.SetLicensesOwner(licensesOwner) return o } // SetLicensesOwner adds the licensesOwner to the licenses get params func (o *LicensesGetParams) SetLicensesOwner(licensesOwner *string) { o.LicensesOwner = licensesOwner } // WithLicensesSerialNumber adds the licensesSerialNumber to the licenses get params func (o *LicensesGetParams) WithLicensesSerialNumber(licensesSerialNumber *string) *LicensesGetParams { o.SetLicensesSerialNumber(licensesSerialNumber) return o } // SetLicensesSerialNumber adds the licensesSerialNumber to the licenses get params func (o *LicensesGetParams) SetLicensesSerialNumber(licensesSerialNumber *string) { o.LicensesSerialNumber = licensesSerialNumber } // WithLicensesShutdownImminent adds the licensesShutdownImminent to the licenses get params func (o *LicensesGetParams) WithLicensesShutdownImminent(licensesShutdownImminent *bool) *LicensesGetParams { o.SetLicensesShutdownImminent(licensesShutdownImminent) return o } // SetLicensesShutdownImminent adds the licensesShutdownImminent to the licenses get params func (o *LicensesGetParams) SetLicensesShutdownImminent(licensesShutdownImminent *bool) { o.LicensesShutdownImminent = licensesShutdownImminent } // WithLicensesStartTime adds the licensesStartTime to the licenses get params func (o *LicensesGetParams) WithLicensesStartTime(licensesStartTime *string) *LicensesGetParams { o.SetLicensesStartTime(licensesStartTime) return o } // SetLicensesStartTime adds the licensesStartTime to the licenses get params func (o *LicensesGetParams) SetLicensesStartTime(licensesStartTime *string) { o.LicensesStartTime = licensesStartTime } // WithMaxRecords adds the maxRecords to the licenses get params func (o *LicensesGetParams) WithMaxRecords(maxRecords *int64) *LicensesGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the licenses get params func (o *LicensesGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithName adds the name to the licenses get params func (o *LicensesGetParams) WithName(name *string) *LicensesGetParams { o.SetName(name) return o } // SetName adds the name to the licenses get params func (o *LicensesGetParams) SetName(name *string) { o.Name = name } // WithOrderBy adds the orderBy to the licenses get params func (o *LicensesGetParams) WithOrderBy(orderBy []string) *LicensesGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the licenses get params func (o *LicensesGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the licenses get params func (o *LicensesGetParams) WithReturnRecords(returnRecords *bool) *LicensesGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the licenses get params func (o *LicensesGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the licenses get params func (o *LicensesGetParams) WithReturnTimeout(returnTimeout *int64) *LicensesGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the licenses get params func (o *LicensesGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithScope adds the scope to the licenses get params func (o *LicensesGetParams) WithScope(scope *string) *LicensesGetParams { o.SetScope(scope) return o } // SetScope adds the scope to the licenses get params func (o *LicensesGetParams) SetScope(scope *string) { o.Scope = scope } // WithState adds the state to the licenses get params func (o *LicensesGetParams) WithState(state *string) *LicensesGetParams { o.SetState(state) return o } // SetState adds the state to the licenses get params func (o *LicensesGetParams) SetState(state *string) { o.State = state } // WriteToRequest writes these params to a swagger request func (o *LicensesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Description != nil { // query param description var qrDescription string if o.Description != nil { qrDescription = *o.Description } qDescription := qrDescription if qDescription != "" { if err := r.SetQueryParam("description", qDescription); err != nil { return err } } } if o.EntitlementAction != nil { // query param entitlement.action var qrEntitlementAction string if o.EntitlementAction != nil { qrEntitlementAction = *o.EntitlementAction } qEntitlementAction := qrEntitlementAction if qEntitlementAction != "" { if err := r.SetQueryParam("entitlement.action", qEntitlementAction); err != nil { return err } } } if o.EntitlementRisk != nil { // query param entitlement.risk var qrEntitlementRisk string if o.EntitlementRisk != nil { qrEntitlementRisk = *o.EntitlementRisk } qEntitlementRisk := qrEntitlementRisk if qEntitlementRisk != "" { if err := r.SetQueryParam("entitlement.risk", qEntitlementRisk); 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.LicensesActive != nil { // query param licenses.active var qrLicensesActive bool if o.LicensesActive != nil { qrLicensesActive = *o.LicensesActive } qLicensesActive := swag.FormatBool(qrLicensesActive) if qLicensesActive != "" { if err := r.SetQueryParam("licenses.active", qLicensesActive); err != nil { return err } } } if o.LicensesCapacityMaximumSize != nil { // query param licenses.capacity.maximum_size var qrLicensesCapacityMaximumSize int64 if o.LicensesCapacityMaximumSize != nil { qrLicensesCapacityMaximumSize = *o.LicensesCapacityMaximumSize } qLicensesCapacityMaximumSize := swag.FormatInt64(qrLicensesCapacityMaximumSize) if qLicensesCapacityMaximumSize != "" { if err := r.SetQueryParam("licenses.capacity.maximum_size", qLicensesCapacityMaximumSize); err != nil { return err } } } if o.LicensesCapacityUsedSize != nil { // query param licenses.capacity.used_size var qrLicensesCapacityUsedSize int64 if o.LicensesCapacityUsedSize != nil { qrLicensesCapacityUsedSize = *o.LicensesCapacityUsedSize } qLicensesCapacityUsedSize := swag.FormatInt64(qrLicensesCapacityUsedSize) if qLicensesCapacityUsedSize != "" { if err := r.SetQueryParam("licenses.capacity.used_size", qLicensesCapacityUsedSize); err != nil { return err } } } if o.LicensesComplianceState != nil { // query param licenses.compliance.state var qrLicensesComplianceState string if o.LicensesComplianceState != nil { qrLicensesComplianceState = *o.LicensesComplianceState } qLicensesComplianceState := qrLicensesComplianceState if qLicensesComplianceState != "" { if err := r.SetQueryParam("licenses.compliance.state", qLicensesComplianceState); err != nil { return err } } } if o.LicensesEvaluation != nil { // query param licenses.evaluation var qrLicensesEvaluation bool if o.LicensesEvaluation != nil { qrLicensesEvaluation = *o.LicensesEvaluation } qLicensesEvaluation := swag.FormatBool(qrLicensesEvaluation) if qLicensesEvaluation != "" { if err := r.SetQueryParam("licenses.evaluation", qLicensesEvaluation); err != nil { return err } } } if o.LicensesExpiryTime != nil { // query param licenses.expiry_time var qrLicensesExpiryTime string if o.LicensesExpiryTime != nil { qrLicensesExpiryTime = *o.LicensesExpiryTime } qLicensesExpiryTime := qrLicensesExpiryTime if qLicensesExpiryTime != "" { if err := r.SetQueryParam("licenses.expiry_time", qLicensesExpiryTime); err != nil { return err } } } if o.LicensesHostID != nil { // query param licenses.host_id var qrLicensesHostID string if o.LicensesHostID != nil { qrLicensesHostID = *o.LicensesHostID } qLicensesHostID := qrLicensesHostID if qLicensesHostID != "" { if err := r.SetQueryParam("licenses.host_id", qLicensesHostID); err != nil { return err } } } if o.LicensesInstalledLicense != nil { // query param licenses.installed_license var qrLicensesInstalledLicense string if o.LicensesInstalledLicense != nil { qrLicensesInstalledLicense = *o.LicensesInstalledLicense } qLicensesInstalledLicense := qrLicensesInstalledLicense if qLicensesInstalledLicense != "" { if err := r.SetQueryParam("licenses.installed_license", qLicensesInstalledLicense); err != nil { return err } } } if o.LicensesOwner != nil { // query param licenses.owner var qrLicensesOwner string if o.LicensesOwner != nil { qrLicensesOwner = *o.LicensesOwner } qLicensesOwner := qrLicensesOwner if qLicensesOwner != "" { if err := r.SetQueryParam("licenses.owner", qLicensesOwner); err != nil { return err } } } if o.LicensesSerialNumber != nil { // query param licenses.serial_number var qrLicensesSerialNumber string if o.LicensesSerialNumber != nil { qrLicensesSerialNumber = *o.LicensesSerialNumber } qLicensesSerialNumber := qrLicensesSerialNumber if qLicensesSerialNumber != "" { if err := r.SetQueryParam("licenses.serial_number", qLicensesSerialNumber); err != nil { return err } } } if o.LicensesShutdownImminent != nil { // query param licenses.shutdown_imminent var qrLicensesShutdownImminent bool if o.LicensesShutdownImminent != nil { qrLicensesShutdownImminent = *o.LicensesShutdownImminent } qLicensesShutdownImminent := swag.FormatBool(qrLicensesShutdownImminent) if qLicensesShutdownImminent != "" { if err := r.SetQueryParam("licenses.shutdown_imminent", qLicensesShutdownImminent); err != nil { return err } } } if o.LicensesStartTime != nil { // query param licenses.start_time var qrLicensesStartTime string if o.LicensesStartTime != nil { qrLicensesStartTime = *o.LicensesStartTime } qLicensesStartTime := qrLicensesStartTime if qLicensesStartTime != "" { if err := r.SetQueryParam("licenses.start_time", qLicensesStartTime); 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.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.State != nil { // query param state var qrState string if o.State != nil { qrState = *o.State } qState := qrState if qState != "" { if err := r.SetQueryParam("state", qState); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamLicensesGet binds the parameter fields func (o *LicensesGetParams) 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 } // bindParamLicensesGet binds the parameter order_by func (o *LicensesGetParams) 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