Skip to content

Commit 344ff97

Browse files
author
Dmitry Smirnov
committed
change id to href_id
1 parent d09e799 commit 344ff97

6 files changed

Lines changed: 6 additions & 13 deletions

File tree

lib/ruby_vcloud_sdk/network.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def ip_ranges
2929
nil
3030
end
3131

32-
def id
33-
entity_xml.id
32+
def href_id
33+
entity_xml.href_id
3434
end
3535

3636
def allocated_ips

lib/ruby_vcloud_sdk/nic.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def to_hash
3131
name: element_name,
3232
mac_address: mac_address,
3333
ip_address: ip_address,
34-
network_identifier: network.try(:id),
34+
network_identifier: network.try(:href_id),
3535
is_primary: @is_primary,
3636
is_connected: is_connected
3737
}
@@ -40,5 +40,3 @@ def to_hash
4040
alias_method :nic_index, :network_connection_index
4141
end
4242
end
43-
44-
# :network_join_id => :integer,

lib/ruby_vcloud_sdk/xml/wrapper_classes/admin_org_network_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Xml
33
class AdminOrgNetworkRecord < VCloudSdk::Xml::Network
44
def to_hash
55
{
6-
id: id,
6+
href_id: href_id,
77
type: "VCloudOrgNetwork",
88
dns1: @root["dns1"],
99
dns2: @root["dns2"],

lib/ruby_vcloud_sdk/xml/wrapper_classes/admin_vapp_network_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Xml
33
class AdminVAppNetworkRecord < VCloudSdk::Xml::Network
44
def to_hash
55
{
6-
id: id,
6+
href_id: href_id,
77
type: "VCloudVappNetwork",
88
dns1: @root["dns1"],
99
dns2: @root["dns2"],

lib/ruby_vcloud_sdk/xml/wrapper_classes/network.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ def name
1212
def name=(value)
1313
@root["name"] = value
1414
end
15-
16-
def id
17-
@root["href"][/.{8}-.{4}-.{4}-.{4}-.{12}/]
18-
end
1915
end
20-
2116
end
2217
end

lib/ruby_vcloud_sdk/xml/wrapper_classes/network_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Xml
33
class NetworkRecord < VCloudSdk::Xml::Network
44
def to_hash
55
{
6-
id: id,
6+
href_id: href_id,
77
type: "VCloudExternalNetwork",
88
dns1: @root["dns1"],
99
dns2: @root["dns2"],

0 commit comments

Comments
 (0)