diff options
author | Wim <wim@42.be> | 2020-09-04 23:29:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 23:29:13 +0200 |
commit | 2f59abdda7a1072036ea1fdb4c859cccbb56efa6 (patch) | |
tree | e35393f23d12783ae92f0469085efc7dec953f82 /vendor/github.com/yaegashi/msgraph.go/beta/RequestDevice.go | |
parent | 17747a5c8893fd47ba8eb61dd10477170640caf6 (diff) | |
download | matterbridge-msglm-2f59abdda7a1072036ea1fdb4c859cccbb56efa6.tar.gz matterbridge-msglm-2f59abdda7a1072036ea1fdb4c859cccbb56efa6.tar.bz2 matterbridge-msglm-2f59abdda7a1072036ea1fdb4c859cccbb56efa6.zip |
Update vendor (#1228)
Diffstat (limited to 'vendor/github.com/yaegashi/msgraph.go/beta/RequestDevice.go')
-rw-r--r-- | vendor/github.com/yaegashi/msgraph.go/beta/RequestDevice.go | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDevice.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDevice.go index 6eef9117..3e601ef6 100644 --- a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDevice.go +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDevice.go @@ -1,4 +1,4 @@ -// Code generated by msgraph-generate.go DO NOT EDIT. +// Code generated by msgraph.go/gen DO NOT EDIT. package msgraph @@ -2324,9 +2324,9 @@ func (r *DeviceCompliancePolicyCollectionHasPayloadLinksRequest) Paging(ctx cont } var values []HasPayloadLinkResultItem for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -2339,6 +2339,7 @@ func (r *DeviceCompliancePolicyCollectionHasPayloadLinksRequest) Paging(ctx cont value []HasPayloadLinkResultItem ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -2444,9 +2445,9 @@ func (r *DeviceConfigurationCollectionHasPayloadLinksRequest) Paging(ctx context } var values []HasPayloadLinkResultItem for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -2459,6 +2460,7 @@ func (r *DeviceConfigurationCollectionHasPayloadLinksRequest) Paging(ctx context value []HasPayloadLinkResultItem ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -2538,9 +2540,9 @@ func (r *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest) Paging( } var values []DeviceConfigurationTargetedUserAndDevice for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -2553,6 +2555,7 @@ func (r *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest) Paging( value []DeviceConfigurationTargetedUserAndDevice ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -2632,9 +2635,9 @@ func (r *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest) Paging(c } var values []HasPayloadLinkResultItem for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -2647,6 +2650,7 @@ func (r *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest) Paging(c value []HasPayloadLinkResultItem ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -2718,9 +2722,9 @@ func (r *DeviceManagementScriptCollectionHasPayloadLinksRequest) Paging(ctx cont } var values []HasPayloadLinkResultItem for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -2733,6 +2737,7 @@ func (r *DeviceManagementScriptCollectionHasPayloadLinksRequest) Paging(ctx cont value []HasPayloadLinkResultItem ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -2856,9 +2861,9 @@ func (r *DeviceCompliancePolicyAssignRequest) Paging(ctx context.Context, method } var values []DeviceCompliancePolicyAssignment for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -2871,6 +2876,7 @@ func (r *DeviceCompliancePolicyAssignRequest) Paging(ctx context.Context, method value []DeviceCompliancePolicyAssignment ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -2968,9 +2974,9 @@ func (r *DeviceConfigurationAssignRequest) Paging(ctx context.Context, method, p } var values []DeviceConfigurationAssignment for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -2983,6 +2989,7 @@ func (r *DeviceConfigurationAssignRequest) Paging(ctx context.Context, method, p value []DeviceConfigurationAssignment ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } |