forked from jclouds/jclouds
-
Notifications
You must be signed in to change notification settings - Fork 11
1.8.x #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Anshuraj17
wants to merge
4
commits into
cloudband:1.8.x
Choose a base branch
from
Anshuraj17:1.8.x
base: 1.8.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
1.8.x #95
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
189 changes: 189 additions & 0 deletions
189
apis/openstack-heat/src/main/java/org/jclouds/openstack/heat/v1/domain/Attributes.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
| 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()) | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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; | ||
| } | ||
| } | ||
|
|
||
| } | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. missing enter at the end of file |
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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