1 | /** |
2 | * |
3 | * Copyright (C) 2011 Cloud Conscious, LLC. <info@cloudconscious.com> |
4 | * |
5 | * ==================================================================== |
6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
7 | * you may not use this file except in compliance with the License. |
8 | * You may obtain a copy of the License at |
9 | * |
10 | * http://www.apache.org/licenses/LICENSE-2.0 |
11 | * |
12 | * Unless required by applicable law or agreed to in writing, software |
13 | * distributed under the License is distributed on an "AS IS" BASIS, |
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
15 | * See the License for the specific language governing permissions and |
16 | * limitations under the License. |
17 | * ==================================================================== |
18 | */ |
19 | package org.jclouds.elastichosts; |
20 | |
21 | import com.google.common.collect.ImmutableSet; |
22 | |
23 | import java.net.URI; |
24 | import java.util.Set; |
25 | |
26 | import org.jclouds.providers.BaseProviderMetadata; |
27 | import org.jclouds.providers.ProviderMetadata; |
28 | |
29 | /** |
30 | * Implementation of {@link org.jclouds.types.ProviderMetadata} for ElasticHosts San Antonio Peer 1. |
31 | * |
32 | * @author Adrian Cole |
33 | */ |
34 | public class ElasticHostsPeer1SanAntonioProviderMetadata extends BaseProviderMetadata { |
35 | |
36 | /** |
37 | * {@inheritDoc} |
38 | */ |
39 | @Override |
40 | public String getId() { |
41 | return "elastichosts-sat-p"; |
42 | } |
43 | |
44 | /** |
45 | * {@inheritDoc} |
46 | */ |
47 | @Override |
48 | public String getType() { |
49 | return ProviderMetadata.COMPUTE_TYPE; |
50 | } |
51 | |
52 | /** |
53 | * {@inheritDoc} |
54 | */ |
55 | @Override |
56 | public String getName() { |
57 | return "ElasticHosts San Antonio Peer 1"; |
58 | } |
59 | |
60 | /** |
61 | * {@inheritDoc} |
62 | */ |
63 | @Override |
64 | public String getIdentityName() { |
65 | return "UUID"; |
66 | } |
67 | |
68 | /** |
69 | * {@inheritDoc} |
70 | */ |
71 | @Override |
72 | public String getCredentialName() { |
73 | return "Secret API key"; |
74 | } |
75 | |
76 | /** |
77 | * {@inheritDoc} |
78 | */ |
79 | @Override |
80 | public URI getHomepage() { |
81 | return URI.create("https://sat-p.elastichosts.com"); |
82 | } |
83 | |
84 | /** |
85 | * {@inheritDoc} |
86 | */ |
87 | @Override |
88 | public URI getConsole() { |
89 | return URI.create("https://sat-p.elastichosts.com/accounts"); |
90 | } |
91 | /** |
92 | * {@inheritDoc} |
93 | */ |
94 | @Override |
95 | public URI getApiDocumentation() { |
96 | return URI.create("http://www.elastichosts.com/cloud-hosting/api"); |
97 | } |
98 | |
99 | /** |
100 | * {@inheritDoc} |
101 | */ |
102 | @Override |
103 | public Set<String> getLinkedServices() { |
104 | return ImmutableSet.of("elastichosts-sat-p"); |
105 | } |
106 | |
107 | /** |
108 | * {@inheritDoc} |
109 | */ |
110 | @Override |
111 | public Set<String> getIso3166Codes() { |
112 | return ImmutableSet.of("US-TX"); |
113 | } |
114 | |
115 | } |