diff options
author | Qais Patankar <qaisjp@gmail.com> | 2020-03-15 22:43:46 +0000 |
---|---|---|
committer | Wim <wim@42.be> | 2020-03-22 00:02:48 +0100 |
commit | 76e5fe5a87d7e60919075f96eee599f3c6255a9f (patch) | |
tree | af3181ad6aadaea02069473a3718a827be888426 /vendor/github.com/yaegashi/msgraph.go/beta/RequestItem.go | |
parent | 802c80f40c709ba4967de317e40a8d6abe57f6be (diff) | |
download | matterbridge-msglm-76e5fe5a87d7e60919075f96eee599f3c6255a9f.tar.gz matterbridge-msglm-76e5fe5a87d7e60919075f96eee599f3c6255a9f.tar.bz2 matterbridge-msglm-76e5fe5a87d7e60919075f96eee599f3c6255a9f.zip |
Update vendor yaegashi/msgraph.go to v0.1.2 (2)
Diffstat (limited to 'vendor/github.com/yaegashi/msgraph.go/beta/RequestItem.go')
-rw-r--r-- | vendor/github.com/yaegashi/msgraph.go/beta/RequestItem.go | 302 |
1 files changed, 302 insertions, 0 deletions
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestItem.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestItem.go new file mode 100644 index 00000000..a5fc97de --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestItem.go @@ -0,0 +1,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) +} |