summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/yaegashi/msgraph.go/beta/ActionSecurity.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/yaegashi/msgraph.go/beta/ActionSecurity.go')
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionSecurity.go47
1 files changed, 31 insertions, 16 deletions
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSecurity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSecurity.go
index 9d0cc978..16b1e56f 100644
--- a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSecurity.go
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSecurity.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
@@ -57,9 +57,9 @@ func (r *SecurityAlertsCollectionRequest) Paging(ctx context.Context, method, pa
}
var values []Alert
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 {
@@ -72,6 +72,7 @@ func (r *SecurityAlertsCollectionRequest) Paging(ctx context.Context, method, pa
value []Alert
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -159,9 +160,9 @@ func (r *SecurityCloudAppSecurityProfilesCollectionRequest) Paging(ctx context.C
}
var values []CloudAppSecurityProfile
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 {
@@ -174,6 +175,7 @@ func (r *SecurityCloudAppSecurityProfilesCollectionRequest) Paging(ctx context.C
value []CloudAppSecurityProfile
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -261,9 +263,9 @@ func (r *SecurityDomainSecurityProfilesCollectionRequest) Paging(ctx context.Con
}
var values []DomainSecurityProfile
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 {
@@ -276,6 +278,7 @@ func (r *SecurityDomainSecurityProfilesCollectionRequest) Paging(ctx context.Con
value []DomainSecurityProfile
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -363,9 +366,9 @@ func (r *SecurityFileSecurityProfilesCollectionRequest) Paging(ctx context.Conte
}
var values []FileSecurityProfile
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 {
@@ -378,6 +381,7 @@ func (r *SecurityFileSecurityProfilesCollectionRequest) Paging(ctx context.Conte
value []FileSecurityProfile
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -465,9 +469,9 @@ func (r *SecurityHostSecurityProfilesCollectionRequest) Paging(ctx context.Conte
}
var values []HostSecurityProfile
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 {
@@ -480,6 +484,7 @@ func (r *SecurityHostSecurityProfilesCollectionRequest) Paging(ctx context.Conte
value []HostSecurityProfile
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -567,9 +572,9 @@ func (r *SecurityIPSecurityProfilesCollectionRequest) Paging(ctx context.Context
}
var values []IPSecurityProfile
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 {
@@ -582,6 +587,7 @@ func (r *SecurityIPSecurityProfilesCollectionRequest) Paging(ctx context.Context
value []IPSecurityProfile
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -669,9 +675,9 @@ func (r *SecurityProviderTenantSettingsCollectionRequest) Paging(ctx context.Con
}
var values []ProviderTenantSetting
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 {
@@ -684,6 +690,7 @@ func (r *SecurityProviderTenantSettingsCollectionRequest) Paging(ctx context.Con
value []ProviderTenantSetting
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -771,9 +778,9 @@ func (r *SecuritySecureScoreControlProfilesCollectionRequest) Paging(ctx context
}
var values []SecureScoreControlProfile
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 {
@@ -786,6 +793,7 @@ func (r *SecuritySecureScoreControlProfilesCollectionRequest) Paging(ctx context
value []SecureScoreControlProfile
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -873,9 +881,9 @@ func (r *SecuritySecureScoresCollectionRequest) Paging(ctx context.Context, meth
}
var values []SecureScore
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 {
@@ -888,6 +896,7 @@ func (r *SecuritySecureScoresCollectionRequest) Paging(ctx context.Context, meth
value []SecureScore
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -975,9 +984,9 @@ func (r *SecuritySecurityActionsCollectionRequest) Paging(ctx context.Context, m
}
var values []SecurityAction
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 {
@@ -990,6 +999,7 @@ func (r *SecuritySecurityActionsCollectionRequest) Paging(ctx context.Context, m
value []SecurityAction
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1077,9 +1087,9 @@ func (r *SecurityTiIndicatorsCollectionRequest) Paging(ctx context.Context, meth
}
var values []TiIndicator
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 {
@@ -1092,6 +1102,7 @@ func (r *SecurityTiIndicatorsCollectionRequest) Paging(ctx context.Context, meth
value []TiIndicator
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1179,9 +1190,9 @@ func (r *SecurityUserSecurityProfilesCollectionRequest) Paging(ctx context.Conte
}
var values []UserSecurityProfile
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 {
@@ -1194,6 +1205,7 @@ func (r *SecurityUserSecurityProfilesCollectionRequest) Paging(ctx context.Conte
value []UserSecurityProfile
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1281,9 +1293,9 @@ func (r *SecurityBaselineStateSettingStatesCollectionRequest) Paging(ctx context
}
var values []SecurityBaselineSettingState
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 {
@@ -1296,6 +1308,7 @@ func (r *SecurityBaselineStateSettingStatesCollectionRequest) Paging(ctx context
value []SecurityBaselineSettingState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1383,9 +1396,9 @@ func (r *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest)
}
var values []SecurityBaselineCategoryStateSummary
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 {
@@ -1398,6 +1411,7 @@ func (r *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest)
value []SecurityBaselineCategoryStateSummary
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1492,9 +1506,9 @@ func (r *SecurityBaselineTemplateDeviceStatesCollectionRequest) Paging(ctx conte
}
var values []SecurityBaselineDeviceState
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 {
@@ -1507,6 +1521,7 @@ func (r *SecurityBaselineTemplateDeviceStatesCollectionRequest) Paging(ctx conte
value []SecurityBaselineDeviceState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}