1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[vcloud_director] Move parser commentary out of top-level docs.

This commit is contained in:
Nick Osborn 2013-10-10 10:25:27 +01:00
parent 7bac90aae1
commit 19276bef8b
3 changed files with 146 additions and 153 deletions

View file

@ -1,35 +1,33 @@
#
# <Metadata xmlns="http://www.vmware.com/vcloud/v1.5" type="application/vnd.vmware.vcloud.metadata+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.194.1.65/api/v1.5/schema/master.xsd">
# <Link rel="up" type="application/vnd.vmware.vcloud.vm+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112"/>
# <Link rel="add" type="application/vnd.vmware.vcloud.metadata+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata"/>
# <MetadataEntry type="application/vnd.vmware.vcloud.metadata.value+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata/buenas%20si">
# <Link rel="up" type="application/vnd.vmware.vcloud.metadata+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata"/>
# <Link rel="edit" type="application/vnd.vmware.vcloud.metadata.value+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata/buenas%20si"/>
# <Link rel="remove" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata/buenas%20si"/>
# <Key>buenas si</Key>
# <Value>no tanto ya</Value>
# </MetadataEntry>
# <MetadataEntry type="application/vnd.vmware.vcloud.metadata.value+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata/hola">
# <Link rel="up" type="application/vnd.vmware.vcloud.metadata+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata"/>
# <Link rel="edit" type="application/vnd.vmware.vcloud.metadata.value+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata/hola"/>
# <Link rel="remove" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata/hola"/>
# <Key>hola</Key>
# <Value>adios</Value>
# </MetadataEntry>
# </Metadata>
#
#
# {:metadata=>{"buenas si"=>"no tanto ya", "hola"=>"adios"},
# :type=>"application/vnd.vmware.vcloud.metadata+xml",
# :href=>
# "https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata",
# :id=>"vm-18545e82-d919-4071-ae7e-d1300d9d8112"}
#
module Fog
module Parsers
module Compute
module VcloudDirector
#
# <Metadata xmlns="http://www.vmware.com/vcloud/v1.5" type="application/vnd.vmware.vcloud.metadata+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.194.1.65/api/v1.5/schema/master.xsd">
# <Link rel="up" type="application/vnd.vmware.vcloud.vm+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112"/>
# <Link rel="add" type="application/vnd.vmware.vcloud.metadata+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata"/>
# <MetadataEntry type="application/vnd.vmware.vcloud.metadata.value+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata/buenas%20si">
# <Link rel="up" type="application/vnd.vmware.vcloud.metadata+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata"/>
# <Link rel="edit" type="application/vnd.vmware.vcloud.metadata.value+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata/buenas%20si"/>
# <Link rel="remove" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata/buenas%20si"/>
# <Key>buenas si</Key>
# <Value>no tanto ya</Value>
# </MetadataEntry>
# <MetadataEntry type="application/vnd.vmware.vcloud.metadata.value+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata/hola">
# <Link rel="up" type="application/vnd.vmware.vcloud.metadata+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata"/>
# <Link rel="edit" type="application/vnd.vmware.vcloud.metadata.value+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata/hola"/>
# <Link rel="remove" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata/hola"/>
# <Key>hola</Key>
# <Value>adios</Value>
# </MetadataEntry>
# </Metadata>
#
# {:metadata=>{"buenas si"=>"no tanto ya", "hola"=>"adios"},
# :type=>"application/vnd.vmware.vcloud.metadata+xml",
# :href=>
# "https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata",
# :id=>"vm-18545e82-d919-4071-ae7e-d1300d9d8112"}
#
class Metadata < VcloudDirectorParser
def reset
@ -59,7 +57,6 @@ module Fog
end
end
end
end
end

View file

@ -1,68 +1,67 @@
#
#{:xmlns=>"http://www.vmware.com/vcloud/v1.5",
# :xmlns_xsi=>"http://www.w3.org/2001/XMLSchema-instance",
# :name=>"DevOps - Dev Network Connection",
# :id=>"urn:vcloud:network:d5f47bbf-de27-4cf5-aaaa-56772f2ccd17",
# :type=>"application/vnd.vmware.vcloud.orgNetwork+xml",
# :href=>
# "https://example.com/api/network/d5f47bbf-de27-4cf5-aaaa-56772f2ccd17",
# :xsi_schemaLocation=>
# "http://www.vmware.com/vcloud/v1.5 http://10.194.1.65/api/v1.5/schema/master.xsd",
# :Link=>
# [{:rel=>"up",
# :type=>"application/vnd.vmware.vcloud.org+xml",
# :name=>"DevOps",
# :href=>
# "https://example.com/api/org/c6a4c623-c158-41cf-a87a-dbc1637ad55a"},
# {:rel=>"down",
# :type=>"application/vnd.vmware.vcloud.metadata+xml",
# :href=>
# "https://example.com/api/network/d5f47bbf-de27-4cf5-aaaa-56772f2ccd17/metadata"}],
# :Description=>"",
# :Configuration=>
# {:IpScope=>
# {:IsInherited=>"true",
# :Gateway=>"10.192.0.1",
# :Netmask=>"255.255.252.0",
# :Dns1=>"10.192.0.11",
# :Dns2=>"10.192.0.12",
# :DnsSuffix=>"dev.ad.mdsol.com",
# :IpRanges=>
# {:IpRange=>
# {:StartAddress=>"10.192.0.100", :EndAddress=>"10.192.3.254"}}},
# :FenceMode=>"bridged",
# :RetainNetInfoAcrossDeployments=>"false"}}
#
#<?xml version="1.0" encoding="UTF-8"?>
#<OrgNetwork xmlns="http://www.vmware.com/vcloud/v1.5" name="DevOps - Dev Network Connection" id="urn:vcloud:network:d5f47bbf-de27-4cf5-aaaa-56772f2ccd17" type="application/vnd.vmware.vcloud.orgNetwork+xml" href="https://example.com/api/network/d5f47bbf-de27-4cf5-aaaa-56772f2ccd17" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.194.1.65/api/v1.5/schema/master.xsd">
# <Link rel="up" type="application/vnd.vmware.vcloud.org+xml" name="DevOps" href="https://example.com/api/org/c6a4c623-c158-41cf-a87a-dbc1637ad55a"/>
# <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="https://example.com/api/network/d5f47bbf-de27-4cf5-aaaa-56772f2ccd17/metadata"/>
# <Description/>
# <Configuration>
# <IpScope>
# <IsInherited>true</IsInherited>
# <Gateway>10.192.0.1</Gateway>
# <Netmask>255.255.252.0</Netmask>
# <Dns1>10.192.0.11</Dns1>
# <Dns2>10.192.0.12</Dns2>
# <DnsSuffix>dev.ad.mdsol.com</DnsSuffix>
# <IpRanges>
# <IpRange>
# <StartAddress>10.192.0.100</StartAddress>
# <EndAddress>10.192.3.254</EndAddress>
# </IpRange>
# </IpRanges>
# </IpScope>
# <FenceMode>bridged</FenceMode>
# <RetainNetInfoAcrossDeployments>false</RetainNetInfoAcrossDeployments>
# </Configuration>
#</OrgNetwork>
#
module Fog
module Parsers
module Compute
module VcloudDirector
#
#{:xmlns=>"http://www.vmware.com/vcloud/v1.5",
# :xmlns_xsi=>"http://www.w3.org/2001/XMLSchema-instance",
# :name=>"DevOps - Dev Network Connection",
# :id=>"urn:vcloud:network:d5f47bbf-de27-4cf5-aaaa-56772f2ccd17",
# :type=>"application/vnd.vmware.vcloud.orgNetwork+xml",
# :href=>
# "https://example.com/api/network/d5f47bbf-de27-4cf5-aaaa-56772f2ccd17",
# :xsi_schemaLocation=>
# "http://www.vmware.com/vcloud/v1.5 http://10.194.1.65/api/v1.5/schema/master.xsd",
# :Link=>
# [{:rel=>"up",
# :type=>"application/vnd.vmware.vcloud.org+xml",
# :name=>"DevOps",
# :href=>
# "https://example.com/api/org/c6a4c623-c158-41cf-a87a-dbc1637ad55a"},
# {:rel=>"down",
# :type=>"application/vnd.vmware.vcloud.metadata+xml",
# :href=>
# "https://example.com/api/network/d5f47bbf-de27-4cf5-aaaa-56772f2ccd17/metadata"}],
# :Description=>"",
# :Configuration=>
# {:IpScope=>
# {:IsInherited=>"true",
# :Gateway=>"10.192.0.1",
# :Netmask=>"255.255.252.0",
# :Dns1=>"10.192.0.11",
# :Dns2=>"10.192.0.12",
# :DnsSuffix=>"dev.ad.mdsol.com",
# :IpRanges=>
# {:IpRange=>
# {:StartAddress=>"10.192.0.100", :EndAddress=>"10.192.3.254"}}},
# :FenceMode=>"bridged",
# :RetainNetInfoAcrossDeployments=>"false"}}
#
#<?xml version="1.0" encoding="UTF-8"?>
#<OrgNetwork xmlns="http://www.vmware.com/vcloud/v1.5" name="DevOps - Dev Network Connection" id="urn:vcloud:network:d5f47bbf-de27-4cf5-aaaa-56772f2ccd17" type="application/vnd.vmware.vcloud.orgNetwork+xml" href="https://example.com/api/network/d5f47bbf-de27-4cf5-aaaa-56772f2ccd17" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.194.1.65/api/v1.5/schema/master.xsd">
# <Link rel="up" type="application/vnd.vmware.vcloud.org+xml" name="DevOps" href="https://example.com/api/org/c6a4c623-c158-41cf-a87a-dbc1637ad55a"/>
# <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="https://example.com/api/network/d5f47bbf-de27-4cf5-aaaa-56772f2ccd17/metadata"/>
# <Description/>
# <Configuration>
# <IpScope>
# <IsInherited>true</IsInherited>
# <Gateway>10.192.0.1</Gateway>
# <Netmask>255.255.252.0</Netmask>
# <Dns1>10.192.0.11</Dns1>
# <Dns2>10.192.0.12</Dns2>
# <DnsSuffix>dev.ad.mdsol.com</DnsSuffix>
# <IpRanges>
# <IpRange>
# <StartAddress>10.192.0.100</StartAddress>
# <EndAddress>10.192.3.254</EndAddress>
# </IpRange>
# </IpRanges>
# </IpScope>
# <FenceMode>bridged</FenceMode>
# <RetainNetInfoAcrossDeployments>false</RetainNetInfoAcrossDeployments>
# </Configuration>
#</OrgNetwork>
#
class Network < VcloudDirectorParser
def reset
@ -101,7 +100,6 @@ module Fog
end
end
end
end
end

View file

@ -1,68 +1,67 @@
#
#{:xmlns=>"http://www.vmware.com/vcloud/v1.5",
# :xmlns_xsi=>"http://www.w3.org/2001/XMLSchema-instance",
# :name=>"DevOps - Dev Network Connection",
# :id=>"urn:vcloud:network:d5f47bbf-de27-4cf5-aaaa-56772f2ccd17",
# :type=>"application/vnd.vmware.vcloud.orgNetwork+xml",
# :href=>
# "https://example.com/api/network/d5f47bbf-de27-4cf5-aaaa-56772f2ccd17",
# :xsi_schemaLocation=>
# "http://www.vmware.com/vcloud/v1.5 http://10.194.1.65/api/v1.5/schema/master.xsd",
# :Link=>
# [{:rel=>"up",
# :type=>"application/vnd.vmware.vcloud.org+xml",
# :name=>"DevOps",
# :href=>
# "https://example.com/api/org/c6a4c623-c158-41cf-a87a-dbc1637ad55a"},
# {:rel=>"down",
# :type=>"application/vnd.vmware.vcloud.metadata+xml",
# :href=>
# "https://example.com/api/network/d5f47bbf-de27-4cf5-aaaa-56772f2ccd17/metadata"}],
# :Description=>"",
# :Configuration=>
# {:IpScope=>
# {:IsInherited=>"true",
# :Gateway=>"10.192.0.1",
# :Netmask=>"255.255.252.0",
# :Dns1=>"10.192.0.11",
# :Dns2=>"10.192.0.12",
# :DnsSuffix=>"dev.ad.mdsol.com",
# :IpRanges=>
# {:IpRange=>
# {:StartAddress=>"10.192.0.100", :EndAddress=>"10.192.3.254"}}},
# :FenceMode=>"bridged",
# :RetainNetInfoAcrossDeployments=>"false"}}
#
#<?xml version="1.0" encoding="UTF-8"?>
#<OrgNetwork xmlns="http://www.vmware.com/vcloud/v1.5" name="DevOps - Dev Network Connection" id="urn:vcloud:network:d5f47bbf-de27-4cf5-aaaa-56772f2ccd17" type="application/vnd.vmware.vcloud.orgNetwork+xml" href="https://example.com/api/network/d5f47bbf-de27-4cf5-aaaa-56772f2ccd17" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.194.1.65/api/v1.5/schema/master.xsd">
# <Link rel="up" type="application/vnd.vmware.vcloud.org+xml" name="DevOps" href="https://example.com/api/org/c6a4c623-c158-41cf-a87a-dbc1637ad55a"/>
# <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="https://example.com/api/network/d5f47bbf-de27-4cf5-aaaa-56772f2ccd17/metadata"/>
# <Description/>
# <Configuration>
# <IpScope>
# <IsInherited>true</IsInherited>
# <Gateway>10.192.0.1</Gateway>
# <Netmask>255.255.252.0</Netmask>
# <Dns1>10.192.0.11</Dns1>
# <Dns2>10.192.0.12</Dns2>
# <DnsSuffix>dev.ad.mdsol.com</DnsSuffix>
# <IpRanges>
# <IpRange>
# <StartAddress>10.192.0.100</StartAddress>
# <EndAddress>10.192.3.254</EndAddress>
# </IpRange>
# </IpRanges>
# </IpScope>
# <FenceMode>bridged</FenceMode>
# <RetainNetInfoAcrossDeployments>false</RetainNetInfoAcrossDeployments>
# </Configuration>
#</OrgNetwork>
#
module Fog
module Parsers
module Compute
module VcloudDirector
#
#{:xmlns=>"http://www.vmware.com/vcloud/v1.5",
# :xmlns_xsi=>"http://www.w3.org/2001/XMLSchema-instance",
# :name=>"DevOps - Dev Network Connection",
# :id=>"urn:vcloud:network:d5f47bbf-de27-4cf5-aaaa-56772f2ccd17",
# :type=>"application/vnd.vmware.vcloud.orgNetwork+xml",
# :href=>
# "https://example.com/api/network/d5f47bbf-de27-4cf5-aaaa-56772f2ccd17",
# :xsi_schemaLocation=>
# "http://www.vmware.com/vcloud/v1.5 http://10.194.1.65/api/v1.5/schema/master.xsd",
# :Link=>
# [{:rel=>"up",
# :type=>"application/vnd.vmware.vcloud.org+xml",
# :name=>"DevOps",
# :href=>
# "https://example.com/api/org/c6a4c623-c158-41cf-a87a-dbc1637ad55a"},
# {:rel=>"down",
# :type=>"application/vnd.vmware.vcloud.metadata+xml",
# :href=>
# "https://example.com/api/network/d5f47bbf-de27-4cf5-aaaa-56772f2ccd17/metadata"}],
# :Description=>"",
# :Configuration=>
# {:IpScope=>
# {:IsInherited=>"true",
# :Gateway=>"10.192.0.1",
# :Netmask=>"255.255.252.0",
# :Dns1=>"10.192.0.11",
# :Dns2=>"10.192.0.12",
# :DnsSuffix=>"dev.ad.mdsol.com",
# :IpRanges=>
# {:IpRange=>
# {:StartAddress=>"10.192.0.100", :EndAddress=>"10.192.3.254"}}},
# :FenceMode=>"bridged",
# :RetainNetInfoAcrossDeployments=>"false"}}
#
#<?xml version="1.0" encoding="UTF-8"?>
#<OrgNetwork xmlns="http://www.vmware.com/vcloud/v1.5" name="DevOps - Dev Network Connection" id="urn:vcloud:network:d5f47bbf-de27-4cf5-aaaa-56772f2ccd17" type="application/vnd.vmware.vcloud.orgNetwork+xml" href="https://example.com/api/network/d5f47bbf-de27-4cf5-aaaa-56772f2ccd17" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.194.1.65/api/v1.5/schema/master.xsd">
# <Link rel="up" type="application/vnd.vmware.vcloud.org+xml" name="DevOps" href="https://example.com/api/org/c6a4c623-c158-41cf-a87a-dbc1637ad55a"/>
# <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="https://example.com/api/network/d5f47bbf-de27-4cf5-aaaa-56772f2ccd17/metadata"/>
# <Description/>
# <Configuration>
# <IpScope>
# <IsInherited>true</IsInherited>
# <Gateway>10.192.0.1</Gateway>
# <Netmask>255.255.252.0</Netmask>
# <Dns1>10.192.0.11</Dns1>
# <Dns2>10.192.0.12</Dns2>
# <DnsSuffix>dev.ad.mdsol.com</DnsSuffix>
# <IpRanges>
# <IpRange>
# <StartAddress>10.192.0.100</StartAddress>
# <EndAddress>10.192.3.254</EndAddress>
# </IpRange>
# </IpRanges>
# </IpScope>
# <FenceMode>bridged</FenceMode>
# <RetainNetInfoAcrossDeployments>false</RetainNetInfoAcrossDeployments>
# </Configuration>
#</OrgNetwork>
#
class VmNetwork < VcloudDirectorParser
def reset
@ -104,7 +103,6 @@ module Fog
end
end
end
end
end