-
Notifications
You must be signed in to change notification settings - Fork 2
/
customer_update_customer_notifications_parameters.go
70 lines (56 loc) · 2.28 KB
/
customer_update_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
63
64
65
66
67
68
69
70
// 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/EdgeCast/ec-sdk-go/edgecast/cps/models"
"github.com/go-openapi/errors"
)
// NewCustomerUpdateCustomerNotificationsParams creates a new CustomerUpdateCustomerNotificationsParams 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 NewCustomerUpdateCustomerNotificationsParams() CustomerUpdateCustomerNotificationsParams {
return CustomerUpdateCustomerNotificationsParams{}
}
// CustomerUpdateCustomerNotificationsParams contains all the parameters to send to the API
// endpoint for the customer update customer notifications operation. Typically these are written
// to a http.Request.
type CustomerUpdateCustomerNotificationsParams struct {
// Notifications.
Notifications []*models.EmailNotification
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the customer update customer notifications params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CustomerUpdateCustomerNotificationsParams) WithDefaults() *CustomerUpdateCustomerNotificationsParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the customer update customer notifications params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CustomerUpdateCustomerNotificationsParams) SetDefaults() {
// no default values defined for this parameter
}
// WriteToRequest extracts parameters and sets for the request to be consumed
func WriteToRequestCustomerUpdateCustomerNotificationsParams(o CustomerUpdateCustomerNotificationsParams) (RequestParameters, error) {
var res []error
params := NewRequestParameters()
if o.Notifications != nil {
params.Body = o.Notifications
}
if len(res) > 0 {
return *params, errors.CompositeValidationError(res...)
}
return *params, nil
}