mirror of https://github.com/apache/jclouds.git
bug fix keystone role api + bug fix host aggregates
This commit is contained in:
parent
7b7b54e0c7
commit
4c0f7e766d
|
@ -31,10 +31,12 @@ import org.jclouds.Fallbacks.FalseOnNotFoundOr404;
|
|||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.javax.annotation.Nullable;
|
||||
import org.jclouds.openstack.keystone.v2_0.domain.Role;
|
||||
import org.jclouds.openstack.keystone.v2_0.filters.AuthenticateRequest;
|
||||
import org.jclouds.openstack.v2_0.ServiceType;
|
||||
import org.jclouds.openstack.v2_0.services.Extension;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.PayloadParam;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
import org.jclouds.rest.annotations.WrapWith;
|
||||
|
||||
|
@ -47,6 +49,7 @@ import com.google.common.collect.FluentIterable;
|
|||
*/
|
||||
@Beta
|
||||
@Extension(of = ServiceType.IDENTITY, namespace = ExtensionNamespaces.OS_KSADM)
|
||||
@RequestFilters(AuthenticateRequest.class)
|
||||
@Path("OS-KSADM/roles")
|
||||
public interface RoleAdminApi {
|
||||
|
||||
|
|
|
@ -168,13 +168,13 @@ public class HostAggregate {
|
|||
@ConstructorProperties({
|
||||
"id", "name", "availability_zone", "hosts", "operational_state", "created_at", "updated_at", "metadata"
|
||||
})
|
||||
protected HostAggregate(String id, String name, String availabilityZone, @Nullable Set<String> hosts, String state, Date created,
|
||||
protected HostAggregate(String id, String name, @Nullable String availabilityZone, @Nullable Set<String> hosts, @Nullable String state, Date created,
|
||||
@Nullable Date updated, @Nullable Map<String, String> metadata) {
|
||||
this.id = checkNotNull(id, "id");
|
||||
this.name = checkNotNull(name, "name");
|
||||
this.availabilityZone = checkNotNull(availabilityZone, "availabilityZone");
|
||||
this.availabilityZone = availabilityZone;
|
||||
this.hosts = hosts == null ? ImmutableSet.<String>of() : ImmutableSet.copyOf(hosts);
|
||||
this.state = checkNotNull(state, "state");
|
||||
this.state = state;
|
||||
this.created = checkNotNull(created, "created");
|
||||
this.updated = Optional.fromNullable(updated);
|
||||
this.metadata = metadata == null ? ImmutableMap.<String, String>of() : ImmutableMap.copyOf(metadata);
|
||||
|
|
Loading…
Reference in New Issue