Package org.jclouds.byon.domain
Class YamlNode
- java.lang.Object
-
- org.jclouds.byon.domain.YamlNode
-
public class YamlNode extends Object
Serializes to the followingid: cluster-1 name: cluster-1 description: xyz hostname: cluster-1.mydomain.com location_id: virginia os_arch: x86 os_family: linux os_description: redhat os_version: 5.3 os_64bit: 5.3 login_port: 2022 group: hadoop tags: - vanilla metadata: key1: val1 username: kelvin credential: password_or_rsa or credential_url: password_or_rsa_file ex. resource:///id_rsa will get the classpath /id_rsa; file://path/to/id_rsa sudo_password: password
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.base.Function<com.google.common.io.ByteSource,YamlNode>
byteSourceToYamlNode
String
credential
String
credential_url
String
description
String
group
String
hostname
String
id
String
location_id
int
login_port
Map<String,String>
metadata
String
name
static com.google.common.base.Function<Node,YamlNode>
nodeToYamlNode
boolean
os_64bit
String
os_arch
String
os_description
String
os_family
String
os_version
String
sudo_password
List<String>
tags
static com.google.common.base.Function<YamlNode,Node>
toNode
String
username
static com.google.common.base.Function<YamlNode,com.google.common.io.ByteSource>
yamlNodeToByteSource
-
Constructor Summary
Constructors Constructor Description YamlNode()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static YamlNode
fromNode(Node in)
static YamlNode
fromYaml(com.google.common.io.ByteSource in)
Node
toNode()
com.google.common.io.ByteSource
toYaml()
-
-
-
Field Detail
-
id
public String id
-
name
public String name
-
description
public String description
-
hostname
public String hostname
-
location_id
public String location_id
-
os_arch
public String os_arch
-
os_family
public String os_family
-
os_description
public String os_description
-
os_version
public String os_version
-
login_port
public int login_port
-
os_64bit
public boolean os_64bit
-
group
public String group
-
username
public String username
-
credential
public String credential
-
credential_url
public String credential_url
-
sudo_password
public String sudo_password
-
byteSourceToYamlNode
public static final com.google.common.base.Function<com.google.common.io.ByteSource,YamlNode> byteSourceToYamlNode
-
yamlNodeToByteSource
public static final com.google.common.base.Function<YamlNode,com.google.common.io.ByteSource> yamlNodeToByteSource
-
-