-
Notifications
You must be signed in to change notification settings - Fork 2
/
customer_get_customer_notifications_parameters.go
62 lines (50 loc) · 2.06 KB
/
customer_get_customer_notifications_parameters.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// Copyright 2022 Edgecast Inc., Licensed under the terms of the Apache 2.0
// license. See LICENSE file in project root for terms.
package customer
// This file was generated by codegen-sdk-go.
// Any changes made to this file may be overwritten.
import (
"context"
"net/http"
"time"
"github.com/go-openapi/errors"
)
// NewCustomerGetCustomerNotificationsParams creates a new CustomerGetCustomerNotificationsParams 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 NewCustomerGetCustomerNotificationsParams() CustomerGetCustomerNotificationsParams {
return CustomerGetCustomerNotificationsParams{}
}
// CustomerGetCustomerNotificationsParams contains all the parameters to send to the API
// endpoint for the customer get customer notifications operation. Typically these are written
// to a http.Request.
type CustomerGetCustomerNotificationsParams struct {
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the customer get customer notifications params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CustomerGetCustomerNotificationsParams) WithDefaults() *CustomerGetCustomerNotificationsParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the customer get customer notifications params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CustomerGetCustomerNotificationsParams) SetDefaults() {
// no default values defined for this parameter
}
// WriteToRequest extracts parameters and sets for the request to be consumed
func WriteToRequestCustomerGetCustomerNotificationsParams(o CustomerGetCustomerNotificationsParams) (RequestParameters, error) {
var res []error
params := NewRequestParameters()
if len(res) > 0 {
return *params, errors.CompositeValidationError(res...)
}
return *params, nil
}