mirror of https://github.com/apache/jclouds.git
Issue 36: changed to java friendly names
git-svn-id: http://jclouds.googlecode.com/svn/trunk@890 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
7804b2f8c6
commit
90728e65b1
|
@ -180,7 +180,7 @@ sub build_fields {
|
||||||
chomp($state);
|
chomp($state);
|
||||||
$enum->{$code} = $state;
|
$enum->{$code} = $state;
|
||||||
}
|
}
|
||||||
$param{enum} = $enum;
|
$param{valueMap} = $enum;
|
||||||
$param{desc} = ${row}[1]->look_down( '_tag', 'p' )->as_text();
|
$param{desc} = ${row}[1]->look_down( '_tag', 'p' )->as_text();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -188,7 +188,7 @@ sub build_fields {
|
||||||
foreach ( @{data} ) {
|
foreach ( @{data} ) {
|
||||||
$_ = $_->as_text();
|
$_ = $_->as_text();
|
||||||
if (s/Default: //) {
|
if (s/Default: //) {
|
||||||
$param{default} = $_;
|
$param{defaultValue} = $_;
|
||||||
}
|
}
|
||||||
elsif (s/Type: //) {
|
elsif (s/Type: //) {
|
||||||
$param{type} = $_;
|
$param{type} = $_;
|
||||||
|
@ -203,7 +203,7 @@ sub build_fields {
|
||||||
elsif (s/Constraints: //) {
|
elsif (s/Constraints: //) {
|
||||||
$param{constraints} = $_;
|
$param{constraints} = $_;
|
||||||
if (m/.*default: ([0-9]+)/) {
|
if (m/.*default: ([0-9]+)/) {
|
||||||
$param{default} = $1;
|
$param{defaultValue} = $1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elsif (s/Valid Values: //) {
|
elsif (s/Valid Values: //) {
|
||||||
|
@ -213,7 +213,7 @@ sub build_fields {
|
||||||
foreach my $value (@valid_values) {
|
foreach my $value (@valid_values) {
|
||||||
$enum->{$value} = $value;
|
$enum->{$value} = $value;
|
||||||
}
|
}
|
||||||
$param{enum} = $enum;
|
$param{valueMap} = $enum;
|
||||||
}
|
}
|
||||||
elsif (/([0-9]+) ?\-([0-9]+)/) {
|
elsif (/([0-9]+) ?\-([0-9]+)/) {
|
||||||
$param{constraints} = "$1-$2";
|
$param{constraints} = "$1-$2";
|
||||||
|
@ -267,8 +267,8 @@ sub build_bean {
|
||||||
my ${requestExampleDiv} =
|
my ${requestExampleDiv} =
|
||||||
$tree->look_down( '_tag', 'h3', 'id', "$id" )
|
$tree->look_down( '_tag', 'h3', 'id', "$id" )
|
||||||
->look_up( '_tag', 'div', 'class', 'section' );
|
->look_up( '_tag', 'div', 'class', 'section' );
|
||||||
$bean->{example_html} = ${requestExampleDiv}->as_HTML();
|
$bean->{exampleHTML} = ${requestExampleDiv}->as_HTML();
|
||||||
$bean->{example_code} =
|
$bean->{exampleCode} =
|
||||||
${requestExampleDiv}
|
${requestExampleDiv}
|
||||||
->look_down( '_tag', 'pre', 'class', 'programlisting' )->as_text();
|
->look_down( '_tag', 'pre', 'class', 'programlisting' )->as_text();
|
||||||
$tree->eof;
|
$tree->eof;
|
||||||
|
|
Loading…
Reference in New Issue