diff options
Diffstat (limited to 'vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows.go')
-rw-r--r-- | vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows.go | 56 |
1 files changed, 37 insertions, 19 deletions
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows.go index a35e080b..73efdf8c 100644 --- a/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows.go +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows.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 @@ -137,9 +137,9 @@ func (r *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest) Pagi } var values []WindowsAutopilotDeviceIdentity 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 { @@ -152,6 +152,7 @@ func (r *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest) Pagi value []WindowsAutopilotDeviceIdentity ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -239,9 +240,9 @@ func (r *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest) Paging(c } var values []WindowsAutopilotDeploymentProfileAssignment 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 { @@ -254,6 +255,7 @@ func (r *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest) Paging(c value []WindowsAutopilotDeploymentProfileAssignment ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -355,9 +357,9 @@ func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectio } var values []WindowsDefenderApplicationControlSupplementalPolicyAssignment 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 { @@ -370,6 +372,7 @@ func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectio value []WindowsDefenderApplicationControlSupplementalPolicyAssignment ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -464,9 +467,9 @@ func (r *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollec } var values []WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus 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 { @@ -479,6 +482,7 @@ func (r *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollec value []WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -573,9 +577,9 @@ func (r *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequ } var values []DeviceConfiguration 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 { @@ -588,6 +592,7 @@ func (r *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequ value []DeviceConfiguration ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -675,9 +680,9 @@ func (r *WindowsFeatureUpdateProfileAssignmentsCollectionRequest) Paging(ctx con } var values []WindowsFeatureUpdateProfileAssignment 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 { @@ -690,6 +695,7 @@ func (r *WindowsFeatureUpdateProfileAssignmentsCollectionRequest) Paging(ctx con value []WindowsFeatureUpdateProfileAssignment ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -777,9 +783,9 @@ func (r *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest) Paging( } var values []WindowsUpdateState 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 { @@ -792,6 +798,7 @@ func (r *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest) Paging( value []WindowsUpdateState ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -879,9 +886,9 @@ func (r *WindowsInformationProtectionAssignmentsCollectionRequest) Paging(ctx co } var values []TargetedManagedAppPolicyAssignment 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 { @@ -894,6 +901,7 @@ func (r *WindowsInformationProtectionAssignmentsCollectionRequest) Paging(ctx co value []TargetedManagedAppPolicyAssignment ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -981,9 +989,9 @@ func (r *WindowsInformationProtectionExemptAppLockerFilesCollectionRequest) Pagi } var values []WindowsInformationProtectionAppLockerFile 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 { @@ -996,6 +1004,7 @@ func (r *WindowsInformationProtectionExemptAppLockerFilesCollectionRequest) Pagi value []WindowsInformationProtectionAppLockerFile ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -1083,9 +1092,9 @@ func (r *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest) P } var values []WindowsInformationProtectionAppLockerFile 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 { @@ -1098,6 +1107,7 @@ func (r *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest) P value []WindowsInformationProtectionAppLockerFile ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -1185,9 +1195,9 @@ func (r *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest } var values []WindowsProtectionState 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 { @@ -1200,6 +1210,7 @@ func (r *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest value []WindowsProtectionState ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -1287,9 +1298,9 @@ func (r *WindowsManagementAppHealthStatesCollectionRequest) Paging(ctx context.C } var values []WindowsManagementAppHealthState 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 { @@ -1302,6 +1313,7 @@ func (r *WindowsManagementAppHealthStatesCollectionRequest) Paging(ctx context.C value []WindowsManagementAppHealthState ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -1389,9 +1401,9 @@ func (r *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStat } var values []ManagedDeviceCertificateState 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 { @@ -1404,6 +1416,7 @@ func (r *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStat value []ManagedDeviceCertificateState ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -1491,9 +1504,9 @@ func (r *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesColle } var values []ManagedDeviceCertificateState 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 { @@ -1506,6 +1519,7 @@ func (r *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesColle value []ManagedDeviceCertificateState ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -1607,9 +1621,9 @@ func (r *WindowsProtectionStateDetectedMalwareStateCollectionRequest) Paging(ctx } var values []WindowsDeviceMalwareState 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 { @@ -1622,6 +1636,7 @@ func (r *WindowsProtectionStateDetectedMalwareStateCollectionRequest) Paging(ctx value []WindowsDeviceMalwareState ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -1709,9 +1724,9 @@ func (r *WindowsUniversalAppXCommittedContainedAppsCollectionRequest) Paging(ctx } var values []MobileContainedApp 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 { @@ -1724,6 +1739,7 @@ func (r *WindowsUniversalAppXCommittedContainedAppsCollectionRequest) Paging(ctx value []MobileContainedApp ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -1811,9 +1827,9 @@ func (r *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionReques } var values []WindowsUpdateState 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 { @@ -1826,6 +1842,7 @@ func (r *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionReques value []WindowsUpdateState ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -1920,9 +1937,9 @@ func (r *WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidatio } var values []Windows81TrustedRootCertificate 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 { @@ -1935,6 +1952,7 @@ func (r *WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidatio value []Windows81TrustedRootCertificate ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } |