-
Notifications
You must be signed in to change notification settings - Fork 0
/
RequestChange.go
137 lines (111 loc) · 5.19 KB
/
RequestChange.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
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
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
import "context"
// ChangeNotificationRequestBuilder is request builder for ChangeNotification
type ChangeNotificationRequestBuilder struct{ BaseRequestBuilder }
// Request returns ChangeNotificationRequest
func (b *ChangeNotificationRequestBuilder) Request() *ChangeNotificationRequest {
return &ChangeNotificationRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
}
// ChangeNotificationRequest is request for ChangeNotification
type ChangeNotificationRequest struct{ BaseRequest }
// Get performs GET request for ChangeNotification
func (r *ChangeNotificationRequest) Get(ctx context.Context) (resObj *ChangeNotification, 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 ChangeNotification
func (r *ChangeNotificationRequest) Update(ctx context.Context, reqObj *ChangeNotification) error {
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
}
// Delete performs DELETE request for ChangeNotification
func (r *ChangeNotificationRequest) Delete(ctx context.Context) error {
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
}
// ChangeNotificationCollectionRequestBuilder is request builder for ChangeNotificationCollection
type ChangeNotificationCollectionRequestBuilder struct{ BaseRequestBuilder }
// Request returns ChangeNotificationCollectionRequest
func (b *ChangeNotificationCollectionRequestBuilder) Request() *ChangeNotificationCollectionRequest {
return &ChangeNotificationCollectionRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
}
// ChangeNotificationCollectionRequest is request for ChangeNotificationCollection
type ChangeNotificationCollectionRequest struct{ BaseRequest }
// Get performs GET request for ChangeNotificationCollection
func (r *ChangeNotificationCollectionRequest) Get(ctx context.Context) (resObj *ChangeNotificationCollection, 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 ChangeNotificationCollection
func (r *ChangeNotificationCollectionRequest) Update(ctx context.Context, reqObj *ChangeNotificationCollection) error {
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
}
// Delete performs DELETE request for ChangeNotificationCollection
func (r *ChangeNotificationCollectionRequest) Delete(ctx context.Context) error {
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
}
// ChangeNotificationEncryptedContentRequestBuilder is request builder for ChangeNotificationEncryptedContent
type ChangeNotificationEncryptedContentRequestBuilder struct{ BaseRequestBuilder }
// Request returns ChangeNotificationEncryptedContentRequest
func (b *ChangeNotificationEncryptedContentRequestBuilder) Request() *ChangeNotificationEncryptedContentRequest {
return &ChangeNotificationEncryptedContentRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
}
// ChangeNotificationEncryptedContentRequest is request for ChangeNotificationEncryptedContent
type ChangeNotificationEncryptedContentRequest struct{ BaseRequest }
// Get performs GET request for ChangeNotificationEncryptedContent
func (r *ChangeNotificationEncryptedContentRequest) Get(ctx context.Context) (resObj *ChangeNotificationEncryptedContent, 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 ChangeNotificationEncryptedContent
func (r *ChangeNotificationEncryptedContentRequest) Update(ctx context.Context, reqObj *ChangeNotificationEncryptedContent) error {
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
}
// Delete performs DELETE request for ChangeNotificationEncryptedContent
func (r *ChangeNotificationEncryptedContentRequest) Delete(ctx context.Context) error {
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
}
// ChangeTrackedEntityRequestBuilder is request builder for ChangeTrackedEntity
type ChangeTrackedEntityRequestBuilder struct{ BaseRequestBuilder }
// Request returns ChangeTrackedEntityRequest
func (b *ChangeTrackedEntityRequestBuilder) Request() *ChangeTrackedEntityRequest {
return &ChangeTrackedEntityRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
}
// ChangeTrackedEntityRequest is request for ChangeTrackedEntity
type ChangeTrackedEntityRequest struct{ BaseRequest }
// Get performs GET request for ChangeTrackedEntity
func (r *ChangeTrackedEntityRequest) Get(ctx context.Context) (resObj *ChangeTrackedEntity, 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 ChangeTrackedEntity
func (r *ChangeTrackedEntityRequest) Update(ctx context.Context, reqObj *ChangeTrackedEntity) error {
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
}
// Delete performs DELETE request for ChangeTrackedEntity
func (r *ChangeTrackedEntityRequest) Delete(ctx context.Context) error {
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
}