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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
|
// Code generated by msgraph-generate.go DO NOT EDIT.
package msgraph
import "context"
// ItemRequestBuilder is request builder for Item
type ItemRequestBuilder struct{ BaseRequestBuilder }
// Request returns ItemRequest
func (b *ItemRequestBuilder) Request() *ItemRequest {
return &ItemRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
}
// ItemRequest is request for Item
type ItemRequest struct{ BaseRequest }
// Get performs GET request for Item
func (r *ItemRequest) Get(ctx context.Context) (resObj *Item, err error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
return
}
// Update performs PATCH request for Item
func (r *ItemRequest) Update(ctx context.Context, reqObj *Item) error {
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
}
// Delete performs DELETE request for Item
func (r *ItemRequest) Delete(ctx context.Context) error {
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
}
// ItemActivityRequestBuilder is request builder for ItemActivity
type ItemActivityRequestBuilder struct{ BaseRequestBuilder }
// Request returns ItemActivityRequest
func (b *ItemActivityRequestBuilder) Request() *ItemActivityRequest {
return &ItemActivityRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
}
// ItemActivityRequest is request for ItemActivity
type ItemActivityRequest struct{ BaseRequest }
// Get performs GET request for ItemActivity
func (r *ItemActivityRequest) Get(ctx context.Context) (resObj *ItemActivity, err error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
return
}
// Update performs PATCH request for ItemActivity
func (r *ItemActivityRequest) Update(ctx context.Context, reqObj *ItemActivity) error {
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
}
// Delete performs DELETE request for ItemActivity
func (r *ItemActivityRequest) Delete(ctx context.Context) error {
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
}
// ItemActivityOLDRequestBuilder is request builder for ItemActivityOLD
type ItemActivityOLDRequestBuilder struct{ BaseRequestBuilder }
// Request returns ItemActivityOLDRequest
func (b *ItemActivityOLDRequestBuilder) Request() *ItemActivityOLDRequest {
return &ItemActivityOLDRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
}
// ItemActivityOLDRequest is request for ItemActivityOLD
type ItemActivityOLDRequest struct{ BaseRequest }
// Get performs GET request for ItemActivityOLD
func (r *ItemActivityOLDRequest) Get(ctx context.Context) (resObj *ItemActivityOLD, err error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
return
}
// Update performs PATCH request for ItemActivityOLD
func (r *ItemActivityOLDRequest) Update(ctx context.Context, reqObj *ItemActivityOLD) error {
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
}
// Delete performs DELETE request for ItemActivityOLD
func (r *ItemActivityOLDRequest) Delete(ctx context.Context) error {
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
}
// ItemActivityStatRequestBuilder is request builder for ItemActivityStat
type ItemActivityStatRequestBuilder struct{ BaseRequestBuilder }
// Request returns ItemActivityStatRequest
func (b *ItemActivityStatRequestBuilder) Request() *ItemActivityStatRequest {
return &ItemActivityStatRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
}
// ItemActivityStatRequest is request for ItemActivityStat
type ItemActivityStatRequest struct{ BaseRequest }
// Get performs GET request for ItemActivityStat
func (r *ItemActivityStatRequest) Get(ctx context.Context) (resObj *ItemActivityStat, err error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
return
}
// Update performs PATCH request for ItemActivityStat
func (r *ItemActivityStatRequest) Update(ctx context.Context, reqObj *ItemActivityStat) error {
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
}
// Delete performs DELETE request for ItemActivityStat
func (r *ItemActivityStatRequest) Delete(ctx context.Context) error {
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
}
// ItemAnalyticsRequestBuilder is request builder for ItemAnalytics
type ItemAnalyticsRequestBuilder struct{ BaseRequestBuilder }
// Request returns ItemAnalyticsRequest
func (b *ItemAnalyticsRequestBuilder) Request() *ItemAnalyticsRequest {
return &ItemAnalyticsRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
}
// ItemAnalyticsRequest is request for ItemAnalytics
type ItemAnalyticsRequest struct{ BaseRequest }
// Get performs GET request for ItemAnalytics
func (r *ItemAnalyticsRequest) Get(ctx context.Context) (resObj *ItemAnalytics, err error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
return
}
// Update performs PATCH request for ItemAnalytics
func (r *ItemAnalyticsRequest) Update(ctx context.Context, reqObj *ItemAnalytics) error {
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
}
// Delete performs DELETE request for ItemAnalytics
func (r *ItemAnalyticsRequest) Delete(ctx context.Context) error {
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
}
// ItemAttachmentRequestBuilder is request builder for ItemAttachment
type ItemAttachmentRequestBuilder struct{ BaseRequestBuilder }
// Request returns ItemAttachmentRequest
func (b *ItemAttachmentRequestBuilder) Request() *ItemAttachmentRequest {
return &ItemAttachmentRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
}
// ItemAttachmentRequest is request for ItemAttachment
type ItemAttachmentRequest struct{ BaseRequest }
// Get performs GET request for ItemAttachment
func (r *ItemAttachmentRequest) Get(ctx context.Context) (resObj *ItemAttachment, err error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
return
}
// Update performs PATCH request for ItemAttachment
func (r *ItemAttachmentRequest) Update(ctx context.Context, reqObj *ItemAttachment) error {
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
}
// Delete performs DELETE request for ItemAttachment
func (r *ItemAttachmentRequest) Delete(ctx context.Context) error {
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
}
// ItemCategoryRequestBuilder is request builder for ItemCategory
type ItemCategoryRequestBuilder struct{ BaseRequestBuilder }
// Request returns ItemCategoryRequest
func (b *ItemCategoryRequestBuilder) Request() *ItemCategoryRequest {
return &ItemCategoryRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
}
// ItemCategoryRequest is request for ItemCategory
type ItemCategoryRequest struct{ BaseRequest }
// Get performs GET request for ItemCategory
func (r *ItemCategoryRequest) Get(ctx context.Context) (resObj *ItemCategory, err error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
return
}
// Update performs PATCH request for ItemCategory
func (r *ItemCategoryRequest) Update(ctx context.Context, reqObj *ItemCategory) error {
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
}
// Delete performs DELETE request for ItemCategory
func (r *ItemCategoryRequest) Delete(ctx context.Context) error {
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
}
// ItemEmailRequestBuilder is request builder for ItemEmail
type ItemEmailRequestBuilder struct{ BaseRequestBuilder }
// Request returns ItemEmailRequest
func (b *ItemEmailRequestBuilder) Request() *ItemEmailRequest {
return &ItemEmailRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
}
// ItemEmailRequest is request for ItemEmail
type ItemEmailRequest struct{ BaseRequest }
// Get performs GET request for ItemEmail
func (r *ItemEmailRequest) Get(ctx context.Context) (resObj *ItemEmail, err error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
return
}
// Update performs PATCH request for ItemEmail
func (r *ItemEmailRequest) Update(ctx context.Context, reqObj *ItemEmail) error {
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
}
// Delete performs DELETE request for ItemEmail
func (r *ItemEmailRequest) Delete(ctx context.Context) error {
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
}
// ItemPhoneRequestBuilder is request builder for ItemPhone
type ItemPhoneRequestBuilder struct{ BaseRequestBuilder }
// Request returns ItemPhoneRequest
func (b *ItemPhoneRequestBuilder) Request() *ItemPhoneRequest {
return &ItemPhoneRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
}
// ItemPhoneRequest is request for ItemPhone
type ItemPhoneRequest struct{ BaseRequest }
// Get performs GET request for ItemPhone
func (r *ItemPhoneRequest) Get(ctx context.Context) (resObj *ItemPhone, err error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
return
}
// Update performs PATCH request for ItemPhone
func (r *ItemPhoneRequest) Update(ctx context.Context, reqObj *ItemPhone) error {
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
}
// Delete performs DELETE request for ItemPhone
func (r *ItemPhoneRequest) Delete(ctx context.Context) error {
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
}
|