Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.8.1-CB-24</version>
<version>1.8.1-CB-25</version>
<relativePath>../project/pom.xml</relativePath>
</parent>
<artifactId>jclouds-all</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion allblobstore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.8.1-CB-24</version>
<version>1.8.1-CB-25</version>
<relativePath>../project/pom.xml</relativePath>
</parent>
<artifactId>jclouds-allblobstore</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion allcompute/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.8.1-CB-24</version>
<version>1.8.1-CB-25</version>
<relativePath>../project/pom.xml</relativePath>
</parent>
<artifactId>jclouds-allcompute</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion allloadbalancer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.8.1-CB-24</version>
<version>1.8.1-CB-25</version>
<relativePath>../project/pom.xml</relativePath>
</parent>
<artifactId>jclouds-allloadbalancer</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion apis/atmos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.8.1-CB-24</version>
<version>1.8.1-CB-25</version>
<relativePath>../../project/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion apis/byon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.8.1-CB-24</version>
<version>1.8.1-CB-25</version>
<relativePath>../../project/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion apis/cloudfiles/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.8.1-CB-24</version>
<version>1.8.1-CB-25</version>
<relativePath>../../project/pom.xml</relativePath>
</parent>
<groupId>org.apache.jclouds.api</groupId>
Expand Down
2 changes: 1 addition & 1 deletion apis/cloudservers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.8.1-CB-24</version>
<version>1.8.1-CB-25</version>
<relativePath>../../project/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion apis/cloudsigma/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.8.1-CB-24</version>
<version>1.8.1-CB-25</version>
<relativePath>../../project/pom.xml</relativePath>
</parent>
<groupId>org.apache.jclouds.api</groupId>
Expand Down
2 changes: 1 addition & 1 deletion apis/cloudstack/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.8.1-CB-24</version>
<version>1.8.1-CB-25</version>
<relativePath>../../project/pom.xml</relativePath>
</parent>
<groupId>org.apache.jclouds.api</groupId>
Expand Down
2 changes: 1 addition & 1 deletion apis/cloudwatch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.8.1-CB-24</version>
<version>1.8.1-CB-25</version>
<relativePath>../../project/pom.xml</relativePath>
</parent>
<groupId>org.apache.jclouds.api</groupId>
Expand Down
2 changes: 1 addition & 1 deletion apis/ec2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.8.1-CB-24</version>
<version>1.8.1-CB-25</version>
<relativePath>../../project/pom.xml</relativePath>
</parent>
<groupId>org.apache.jclouds.api</groupId>
Expand Down
2 changes: 1 addition & 1 deletion apis/elasticstack/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.8.1-CB-24</version>
<version>1.8.1-CB-25</version>
<relativePath>../../project/pom.xml</relativePath>
</parent>
<groupId>org.apache.jclouds.api</groupId>
Expand Down
2 changes: 1 addition & 1 deletion apis/filesystem/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.8.1-CB-24</version>
<version>1.8.1-CB-25</version>
<relativePath>../../project/pom.xml</relativePath>
</parent>
<groupId>org.apache.jclouds.api</groupId>
Expand Down
2 changes: 1 addition & 1 deletion apis/openstack-ceilometer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.8.1-CB-24</version>
<version>1.8.1-CB-25</version>
<relativePath>../../project/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion apis/openstack-cinder/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.8.1-CB-24</version>
<version>1.8.1-CB-25</version>
<relativePath>../../project/pom.xml</relativePath>
</parent>
<groupId>org.apache.jclouds.api</groupId>
Expand Down
2 changes: 1 addition & 1 deletion apis/openstack-glance/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.8.1-CB-24</version>
<version>1.8.1-CB-25</version>
<relativePath>../../project/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion apis/openstack-heat/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.8.1-CB-24</version>
<version>1.8.1-CB-25</version>
<relativePath>../../project/pom.xml</relativePath>
</parent>
<groupId>org.apache.jclouds.api</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,189 @@
/**
*
*/
package org.jclouds.openstack.heat.v1.domain;

import java.beans.ConstructorProperties;
import java.util.Set;

import javax.inject.Named;

import org.jclouds.openstack.v2_0.domain.Link;
import org.jclouds.openstack.v2_0.domain.Resource;

import com.google.common.base.Objects;
import com.google.common.base.Objects.ToStringHelper;

/**
* @author deviyada
*
*/
public class Attributes extends Resource {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change the code style to be:
Tab size :3
Indent:3
Continuation indent:6


private String progress;
private String status;
@Named("config_drive")
private String configDrive;
@Named("tenant_id")
private String tenantId;
@Named("host_id")
private String hostId;
private String created;
@Named("user_id")
private String userId;

@ConstructorProperties({ "id", "name","links","progress", "status", "config_drive",
"tenant_id", "host_id", "created", "user_id"})
public Attributes(String id,String name, Set<Link> links, String progress, String status,
String configDrive, String tenantId, String hostId,String created, String userId) {
super(id, name, links);
this.progress = progress;
this.status = status;
this.configDrive = configDrive;
this.tenantId = tenantId;
this.hostId = hostId;
this.created = created;
this.userId = userId;
}

public String getProgress() {
return progress;
}

public String getStatus() {
return status;
}

public String getConfigDrive() {
return configDrive;
}

public String getTenantId() {
return tenantId;
}

public String getHostId() {
return hostId;
}

public String getCreated() {
return created;
}

public String getUserId() {
return userId;
}

@Override
public int hashCode() {
return Objects.hashCode(super.hashCode(), progress, status, configDrive, tenantId,
hostId, created,userId);
}

@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null || getClass() != obj.getClass()) return false;
Attributes that = Attributes.class.cast(obj);
return super.equals(that)
&& Objects.equal(this.progress, that.progress)
&& Objects.equal(this.status, that.status)
&& Objects.equal(this.configDrive, that.configDrive)
&& Objects.equal(this.tenantId, that.tenantId)
&& Objects.equal(this.hostId, that.hostId)
&& Objects.equal(this.created, that.created)
&& Objects.equal(this.userId, that.userId);
}

protected ToStringHelper string() {
return super.string()
.add("progress", progress).add("status", status)
.add("config_drive", configDrive).add("tenant_id", tenantId)
.add("host_id", hostId).add("created", created)
.add("user_id", userId);
}

@Override
public String toString() {
return string().toString();
}

public static Builder<?> builder() {
return new ConcreteBuilder();
}

public Builder<?> toBuilder() {
return new ConcreteBuilder().fromAttributes(this);
}

public abstract static class Builder<T extends Builder<T>> extends Resource.Builder<T>
{
protected String progress;
protected String status;
protected String configDrive;
protected String tenantId;
protected String hostId;
protected String created;
protected String userId;

public T progress(String progress) {
this.progress = progress;
return self();
}

public T status(String status) {
this.status = status;
return self();
}

public T configDrive(String configDrive) {
this.configDrive = configDrive;
return self();
}

public T tenantId(String tenantId) {
this.tenantId = tenantId;
return self();
}

public T hostId(String hostId) {
this.hostId = hostId;
return self();
}

public T created(String created) {
this.created = created;
return self();
}

public T userId(String userId) {
this.userId = userId;
return self();
}


public Attributes build() {
return new Attributes(id,name,links, progress, status, configDrive, tenantId,
hostId, created,userId);
}

public T fromAttributes(Attributes in) {
return this.fromResource(in)
.progress(in.getProgress())
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please straight

.status(in.getStatus())
.configDrive(in.getConfigDrive())
.tenantId(in.getTenantId())
.hostId(in.getHostId())
.created(in.getCreated())
.userId(in.getUserId());
}
}

private static class ConcreteBuilder extends Builder<ConcreteBuilder> {
@Override
protected ConcreteBuilder self() {
return this;
}
}

}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing enter at the end of file

Loading