All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.woorea.openstack.keystone.model.Access Maven / Gradle / Ivy

There is a newer version: 3.2.9
Show newest version
package com.woorea.openstack.keystone.model;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.map.annotate.JsonRootName;

@JsonRootName("access")
public class Access implements Serializable {

	public static final class Service {
		
		@JsonIgnoreProperties(ignoreUnknown=true)
		public static final class Endpoint {
			
			private String region;
			
			private String publicURL;
			
			private String internalURL;
			
			private String adminURL;

			/**
			 * @return the region
			 */
			public String getRegion() {
				return region;
			}

			/**
			 * @return the publicURL
			 */
			public String getPublicURL() {
				return publicURL;
			}

			/**
			 * @return the internalURL
			 */
			public String getInternalURL() {
				return internalURL;
			}

			/**
			 * @return the adminURL
			 */
			public String getAdminURL() {
				return adminURL;
			}

			/* (non-Javadoc)
			 * @see java.lang.Object#toString()
			 */
			@Override
			public String toString() {
				return "Endpoint [region=" + region + ", publicURL="
						+ publicURL + ", internalURL=" + internalURL
						+ ", adminURL=" + adminURL + "]";
			}
			
		}
		
		private String type;
		
		private String name;
		
		private List endpoints;
		
		@JsonProperty("endpoints_links")
		private List endpointsLinks;

		/**
		 * @return the type
		 */
		public String getType() {
			return type;
		}

		/**
		 * @return the name
		 */
		public String getName() {
			return name;
		}

		/**
		 * @return the endpoints
		 */
		public List getEndpoints() {
			return endpoints;
		}

		/**
		 * @return the endpointsLinks
		 */
		public List getEndpointsLinks() {
			return endpointsLinks;
		}

		/* (non-Javadoc)
		 * @see java.lang.Object#toString()
		 */
		@Override
		public String toString() {
			return "Service [type=" + type + ", name=" + name + ", endpoints="
					+ endpoints + ", endpointsLinks=" + endpointsLinks + "]";
		}
		
	}
	
	@JsonIgnoreProperties(ignoreUnknown=true)
	public static final class User {
		
		@JsonIgnoreProperties(ignoreUnknown=true)
		public static final class Role {
			
			private String id;
			
			private String name;

			/**
			 * @return the id
			 */
			public String getId() {
				return id;
			}

			/**
			 * @return the name
			 */
			public String getName() {
				return name;
			}

			/* (non-Javadoc)
			 * @see java.lang.Object#toString()
			 */
			@Override
			public String toString() {
				return "Role [id=" + id + ", name=" + name + "]";
			}
			
		}
		
		private String id;
		
		private String name;
		
		private String username;
		
		private List roles;
		
		@JsonProperty("roles_links")
		private List rolesLinks;

		/**
		 * @return the id
		 */
		public String getId() {
			return id;
		}

		/**
		 * @return the name
		 */
		public String getName() {
			return name;
		}

		/**
		 * @return the username
		 */
		public String getUsername() {
			return username;
		}

		/**
		 * @return the roles
		 */
		public List getRoles() {
			return roles;
		}

		/**
		 * @return the rolesLinks
		 */
		public List getRolesLinks() {
			return rolesLinks;
		}

		/* (non-Javadoc)
		 * @see java.lang.Object#toString()
		 */
		@Override
		public String toString() {
			return "User [id=" + id + ", name=" + name + ", username="
					+ username + ", roles=" + roles + ", rolesLinks="
					+ rolesLinks + "]";
		}
		
	}
	
	private Token token;
	
	private List serviceCatalog;
	
	private User user;
	
	private Map metadata;

	/**
	 * @return the token
	 */
	public Token getToken() {
		return token;
	}

	/**
	 * @return the serviceCatalog
	 */
	public List getServiceCatalog() {
		return serviceCatalog;
	}

	/**
	 * @return the user
	 */
	public User getUser() {
		return user;
	}

	/**
	 * @return the metadata
	 */
	public Map getMetadata() {
		return metadata;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Access [token=" + token + ", serviceCatalog=" + serviceCatalog
				+ ", user=" + user + ", metadata=" + metadata + "]";
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy