summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/yaegashi/msgraph.go/beta/ActionIOS.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/yaegashi/msgraph.go/beta/ActionIOS.go')
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionIOS.go32
1 files changed, 21 insertions, 11 deletions
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionIOS.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionIOS.go
index 6d2df487..5926b1de 100644
--- a/vendor/github.com/yaegashi/msgraph.go/beta/ActionIOS.go
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionIOS.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
@@ -158,9 +158,9 @@ func (r *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollec
}
var values []IOSTrustedRootCertificate
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 {
@@ -173,6 +173,7 @@ func (r *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollec
value []IOSTrustedRootCertificate
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -260,9 +261,9 @@ func (r *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectio
}
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 {
@@ -275,6 +276,7 @@ func (r *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectio
value []ManagedDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -362,9 +364,9 @@ func (r *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest) Paging(
}
var values []IOSLobAppProvisioningConfigurationAssignment
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 {
@@ -377,6 +379,7 @@ func (r *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest) Paging(
value []IOSLobAppProvisioningConfigurationAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -464,9 +467,9 @@ func (r *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest) Pagi
}
var values []ManagedDeviceMobileAppConfigurationDeviceStatus
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 *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest) Pagi
value []ManagedDeviceMobileAppConfigurationDeviceStatus
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -566,9 +570,9 @@ func (r *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest) Pa
}
var values []MobileAppProvisioningConfigGroupAssignment
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 {
@@ -581,6 +585,7 @@ func (r *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest) Pa
value []MobileAppProvisioningConfigGroupAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -668,9 +673,9 @@ func (r *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest) Paging
}
var values []ManagedDeviceMobileAppConfigurationUserStatus
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 {
@@ -683,6 +688,7 @@ func (r *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest) Paging
value []ManagedDeviceMobileAppConfigurationUserStatus
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -770,9 +776,9 @@ func (r *IOSManagedAppProtectionAppsCollectionRequest) Paging(ctx context.Contex
}
var values []ManagedMobileApp
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 {
@@ -785,6 +791,7 @@ func (r *IOSManagedAppProtectionAppsCollectionRequest) Paging(ctx context.Contex
value []ManagedMobileApp
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -879,9 +886,9 @@ func (r *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionReques
}
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 {
@@ -894,6 +901,7 @@ func (r *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionReques
value []ManagedDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -981,9 +989,9 @@ func (r *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionReques
}
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 {
@@ -996,6 +1004,7 @@ func (r *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionReques
value []ManagedDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1104,9 +1113,9 @@ func (r *IOSVPPAppAssignedLicensesCollectionRequest) Paging(ctx context.Context,
}
var values []IOSVPPAppAssignedLicense
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 {
@@ -1119,6 +1128,7 @@ func (r *IOSVPPAppAssignedLicensesCollectionRequest) Paging(ctx context.Context,
value []IOSVPPAppAssignedLicense
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}