Skip to content

Commit

Permalink
Merge pull request #62 from runzexia/fix-sgr
Browse files Browse the repository at this point in the history
Delete DescribeSecurityGroupRules direction default value.
  • Loading branch information
runzexia authored Nov 9, 2017
2 parents 1fe73ca + ba61cb5 commit 0d42e6a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions service/security_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ type DescribeSecurityGroupRulesInput struct {
Direction *int `json:"direction" name:"direction" location:"params"`
Limit *int `json:"limit" name:"limit" default:"20" location:"params"`
Offset *int `json:"offset" name:"offset" default:"0" location:"params"`
SecurityGroup *string `json:"security_group" name:"security_group" location:"params"` // Required
SecurityGroup *string `json:"security_group" name:"security_group" location:"params"`
SecurityGroupRules []*string `json:"security_group_rules" name:"security_group_rules" location:"params"`
}

Expand All @@ -660,13 +660,6 @@ func (v *DescribeSecurityGroupRulesInput) Validate() error {
}
}

if v.SecurityGroup == nil {
return errors.ParameterRequiredError{
ParameterName: "SecurityGroup",
ParentName: "DescribeSecurityGroupRulesInput",
}
}

return nil
}

Expand Down

0 comments on commit 0d42e6a

Please sign in to comment.