mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Add the ability to return the security group ID when requesting a SecurityGroupData object
This commit is contained in:
parent
8877a94f8d
commit
10015b496d
3 changed files with 4 additions and 2 deletions
|
@ -7,8 +7,8 @@ module Fog
|
||||||
class SecurityGroup < Fog::Model
|
class SecurityGroup < Fog::Model
|
||||||
|
|
||||||
identity :name, :aliases => 'groupName'
|
identity :name, :aliases => 'groupName'
|
||||||
|
|
||||||
attribute :description, :aliases => 'groupDescription'
|
attribute :description, :aliases => 'groupDescription'
|
||||||
|
attribute :group_id, :aliases => 'groupId'
|
||||||
attribute :ip_permissions, :aliases => 'ipPermissions'
|
attribute :ip_permissions, :aliases => 'ipPermissions'
|
||||||
attribute :owner_id, :aliases => 'ownerId'
|
attribute :owner_id, :aliases => 'ownerId'
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ module Fog
|
||||||
end
|
end
|
||||||
when 'groups'
|
when 'groups'
|
||||||
@in_groups = false
|
@in_groups = false
|
||||||
when 'groupDescription', 'ownerId'
|
when 'groupDescription', 'ownerId', 'groupId'
|
||||||
@security_group[name] = value
|
@security_group[name] = value
|
||||||
when 'groupName'
|
when 'groupName'
|
||||||
if @in_groups
|
if @in_groups
|
||||||
|
|
|
@ -16,6 +16,7 @@ module Fog
|
||||||
# * 'requestId'<~String> - Id of request
|
# * 'requestId'<~String> - Id of request
|
||||||
# * 'securityGroupInfo'<~Array>:
|
# * 'securityGroupInfo'<~Array>:
|
||||||
# * 'groupDescription'<~String> - Description of security group
|
# * 'groupDescription'<~String> - Description of security group
|
||||||
|
# * 'groupId'<~String> - ID of the security group.
|
||||||
# * 'groupName'<~String> - Name of security group
|
# * 'groupName'<~String> - Name of security group
|
||||||
# * 'ipPermissions'<~Array>:
|
# * 'ipPermissions'<~Array>:
|
||||||
# * 'fromPort'<~Integer> - Start of port range (or -1 for ICMP wildcard)
|
# * 'fromPort'<~Integer> - Start of port range (or -1 for ICMP wildcard)
|
||||||
|
@ -59,6 +60,7 @@ module Fog
|
||||||
aliases = {
|
aliases = {
|
||||||
'description' => 'groupDescription',
|
'description' => 'groupDescription',
|
||||||
'group-name' => 'groupName',
|
'group-name' => 'groupName',
|
||||||
|
'group-id' => 'groupId',
|
||||||
'owner-id' => 'ownerId'
|
'owner-id' => 'ownerId'
|
||||||
}
|
}
|
||||||
permission_aliases = {
|
permission_aliases = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue