forked from lug/matterbridge
Update vendor (#1228)
This commit is contained in:
83
vendor/github.com/yaegashi/msgraph.go/beta/ActionGroup.go
generated
vendored
83
vendor/github.com/yaegashi/msgraph.go/beta/ActionGroup.go
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
||||
// Code generated by msgraph.go/gen DO NOT EDIT.
|
||||
|
||||
package msgraph
|
||||
|
||||
@@ -153,9 +153,9 @@ func (r *GroupAcceptedSendersCollectionRequest) Paging(ctx context.Context, meth
|
||||
}
|
||||
var values []DirectoryObject
|
||||
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 {
|
||||
@@ -168,6 +168,7 @@ func (r *GroupAcceptedSendersCollectionRequest) Paging(ctx context.Context, meth
|
||||
value []DirectoryObject
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -255,9 +256,9 @@ func (r *GroupAppRoleAssignmentsCollectionRequest) Paging(ctx context.Context, m
|
||||
}
|
||||
var values []AppRoleAssignment
|
||||
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 {
|
||||
@@ -270,6 +271,7 @@ func (r *GroupAppRoleAssignmentsCollectionRequest) Paging(ctx context.Context, m
|
||||
value []AppRoleAssignment
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -364,9 +366,9 @@ func (r *GroupCalendarViewCollectionRequest) Paging(ctx context.Context, method,
|
||||
}
|
||||
var values []Event
|
||||
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 {
|
||||
@@ -379,6 +381,7 @@ func (r *GroupCalendarViewCollectionRequest) Paging(ctx context.Context, method,
|
||||
value []Event
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -466,9 +469,9 @@ func (r *GroupConversationsCollectionRequest) Paging(ctx context.Context, method
|
||||
}
|
||||
var values []Conversation
|
||||
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 {
|
||||
@@ -481,6 +484,7 @@ func (r *GroupConversationsCollectionRequest) Paging(ctx context.Context, method
|
||||
value []Conversation
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -582,9 +586,9 @@ func (r *GroupDrivesCollectionRequest) Paging(ctx context.Context, method, path
|
||||
}
|
||||
var values []Drive
|
||||
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 {
|
||||
@@ -597,6 +601,7 @@ func (r *GroupDrivesCollectionRequest) Paging(ctx context.Context, method, path
|
||||
value []Drive
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -684,9 +689,9 @@ func (r *GroupEndpointsCollectionRequest) Paging(ctx context.Context, method, pa
|
||||
}
|
||||
var values []Endpoint
|
||||
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 {
|
||||
@@ -699,6 +704,7 @@ func (r *GroupEndpointsCollectionRequest) Paging(ctx context.Context, method, pa
|
||||
value []Endpoint
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -786,9 +792,9 @@ func (r *GroupEventsCollectionRequest) Paging(ctx context.Context, method, path
|
||||
}
|
||||
var values []Event
|
||||
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 {
|
||||
@@ -801,6 +807,7 @@ func (r *GroupEventsCollectionRequest) Paging(ctx context.Context, method, path
|
||||
value []Event
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -888,9 +895,9 @@ func (r *GroupExtensionsCollectionRequest) Paging(ctx context.Context, method, p
|
||||
}
|
||||
var values []Extension
|
||||
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 {
|
||||
@@ -903,6 +910,7 @@ func (r *GroupExtensionsCollectionRequest) Paging(ctx context.Context, method, p
|
||||
value []Extension
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -990,9 +998,9 @@ func (r *GroupGroupLifecyclePoliciesCollectionRequest) Paging(ctx context.Contex
|
||||
}
|
||||
var values []GroupLifecyclePolicy
|
||||
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 {
|
||||
@@ -1005,6 +1013,7 @@ func (r *GroupGroupLifecyclePoliciesCollectionRequest) Paging(ctx context.Contex
|
||||
value []GroupLifecyclePolicy
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1092,9 +1101,9 @@ func (r *GroupMemberOfCollectionRequest) Paging(ctx context.Context, method, pat
|
||||
}
|
||||
var values []DirectoryObject
|
||||
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 {
|
||||
@@ -1107,6 +1116,7 @@ func (r *GroupMemberOfCollectionRequest) Paging(ctx context.Context, method, pat
|
||||
value []DirectoryObject
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1194,9 +1204,9 @@ func (r *GroupMembersCollectionRequest) Paging(ctx context.Context, method, path
|
||||
}
|
||||
var values []DirectoryObject
|
||||
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 {
|
||||
@@ -1209,6 +1219,7 @@ func (r *GroupMembersCollectionRequest) Paging(ctx context.Context, method, path
|
||||
value []DirectoryObject
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1296,9 +1307,9 @@ func (r *GroupMembersWithLicenseErrorsCollectionRequest) Paging(ctx context.Cont
|
||||
}
|
||||
var values []DirectoryObject
|
||||
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 {
|
||||
@@ -1311,6 +1322,7 @@ func (r *GroupMembersWithLicenseErrorsCollectionRequest) Paging(ctx context.Cont
|
||||
value []DirectoryObject
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1405,9 +1417,9 @@ func (r *GroupOwnersCollectionRequest) Paging(ctx context.Context, method, path
|
||||
}
|
||||
var values []DirectoryObject
|
||||
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 {
|
||||
@@ -1420,6 +1432,7 @@ func (r *GroupOwnersCollectionRequest) Paging(ctx context.Context, method, path
|
||||
value []DirectoryObject
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1507,9 +1520,9 @@ func (r *GroupPermissionGrantsCollectionRequest) Paging(ctx context.Context, met
|
||||
}
|
||||
var values []ResourceSpecificPermissionGrant
|
||||
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 {
|
||||
@@ -1522,6 +1535,7 @@ func (r *GroupPermissionGrantsCollectionRequest) Paging(ctx context.Context, met
|
||||
value []ResourceSpecificPermissionGrant
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1616,9 +1630,9 @@ func (r *GroupPhotosCollectionRequest) Paging(ctx context.Context, method, path
|
||||
}
|
||||
var values []ProfilePhoto
|
||||
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 {
|
||||
@@ -1631,6 +1645,7 @@ func (r *GroupPhotosCollectionRequest) Paging(ctx context.Context, method, path
|
||||
value []ProfilePhoto
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1725,9 +1740,9 @@ func (r *GroupRejectedSendersCollectionRequest) Paging(ctx context.Context, meth
|
||||
}
|
||||
var values []DirectoryObject
|
||||
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 {
|
||||
@@ -1740,6 +1755,7 @@ func (r *GroupRejectedSendersCollectionRequest) Paging(ctx context.Context, meth
|
||||
value []DirectoryObject
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1827,9 +1843,9 @@ func (r *GroupSettingsCollectionRequest) Paging(ctx context.Context, method, pat
|
||||
}
|
||||
var values []DirectorySetting
|
||||
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 {
|
||||
@@ -1842,6 +1858,7 @@ func (r *GroupSettingsCollectionRequest) Paging(ctx context.Context, method, pat
|
||||
value []DirectorySetting
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1929,9 +1946,9 @@ func (r *GroupSitesCollectionRequest) Paging(ctx context.Context, method, path s
|
||||
}
|
||||
var values []Site
|
||||
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 {
|
||||
@@ -1944,6 +1961,7 @@ func (r *GroupSitesCollectionRequest) Paging(ctx context.Context, method, path s
|
||||
value []Site
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -2038,9 +2056,9 @@ func (r *GroupThreadsCollectionRequest) Paging(ctx context.Context, method, path
|
||||
}
|
||||
var values []ConversationThread
|
||||
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 {
|
||||
@@ -2053,6 +2071,7 @@ func (r *GroupThreadsCollectionRequest) Paging(ctx context.Context, method, path
|
||||
value []ConversationThread
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -2140,9 +2159,9 @@ func (r *GroupTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, m
|
||||
}
|
||||
var values []DirectoryObject
|
||||
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 {
|
||||
@@ -2155,6 +2174,7 @@ func (r *GroupTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, m
|
||||
value []DirectoryObject
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -2242,9 +2262,9 @@ func (r *GroupTransitiveMembersCollectionRequest) Paging(ctx context.Context, me
|
||||
}
|
||||
var values []DirectoryObject
|
||||
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 {
|
||||
@@ -2257,6 +2277,7 @@ func (r *GroupTransitiveMembersCollectionRequest) Paging(ctx context.Context, me
|
||||
value []DirectoryObject
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -2344,9 +2365,9 @@ func (r *GroupPolicyConfigurationAssignmentsCollectionRequest) Paging(ctx contex
|
||||
}
|
||||
var values []GroupPolicyConfigurationAssignment
|
||||
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 {
|
||||
@@ -2359,6 +2380,7 @@ func (r *GroupPolicyConfigurationAssignmentsCollectionRequest) Paging(ctx contex
|
||||
value []GroupPolicyConfigurationAssignment
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -2446,9 +2468,9 @@ func (r *GroupPolicyConfigurationDefinitionValuesCollectionRequest) Paging(ctx c
|
||||
}
|
||||
var values []GroupPolicyDefinitionValue
|
||||
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 {
|
||||
@@ -2461,6 +2483,7 @@ func (r *GroupPolicyConfigurationDefinitionValuesCollectionRequest) Paging(ctx c
|
||||
value []GroupPolicyDefinitionValue
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -2555,9 +2578,9 @@ func (r *GroupPolicyDefinitionPresentationsCollectionRequest) Paging(ctx context
|
||||
}
|
||||
var values []GroupPolicyPresentation
|
||||
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 {
|
||||
@@ -2570,6 +2593,7 @@ func (r *GroupPolicyDefinitionPresentationsCollectionRequest) Paging(ctx context
|
||||
value []GroupPolicyPresentation
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -2657,9 +2681,9 @@ func (r *GroupPolicyDefinitionFileDefinitionsCollectionRequest) Paging(ctx conte
|
||||
}
|
||||
var values []GroupPolicyDefinition
|
||||
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 {
|
||||
@@ -2672,6 +2696,7 @@ func (r *GroupPolicyDefinitionFileDefinitionsCollectionRequest) Paging(ctx conte
|
||||
value []GroupPolicyDefinition
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -2766,9 +2791,9 @@ func (r *GroupPolicyDefinitionValuePresentationValuesCollectionRequest) Paging(c
|
||||
}
|
||||
var values []GroupPolicyPresentationValue
|
||||
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 {
|
||||
@@ -2781,6 +2806,7 @@ func (r *GroupPolicyDefinitionValuePresentationValuesCollectionRequest) Paging(c
|
||||
value []GroupPolicyPresentationValue
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -2868,9 +2894,9 @@ func (r *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest)
|
||||
}
|
||||
var values []GroupPolicySettingMapping
|
||||
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 {
|
||||
@@ -2883,6 +2909,7 @@ func (r *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest)
|
||||
value []GroupPolicySettingMapping
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user