Package org.jclouds.rackspace.cloudfiles.v1.features

Examples of org.jclouds.rackspace.cloudfiles.v1.features.CDNApi


   public static class Builder extends BaseProviderMetadata.Builder {

      protected Builder() {
         id("rackspace-cloudfiles-uk")
         .name("Rackspace Cloud Files UK")
         .apiMetadata(new CloudFilesApiMetadata().toBuilder()
               .identityName("${userName}")
               .credentialName("${apiKey}")
               .defaultEndpoint("https://lon.identity.api.rackspacecloud.com/v2.0/")
               .documentation(URI.create("http://docs.rackspace.com/files/api/v1/cf-devguide/content/index.html"))
               .endpointName("Rackspace Cloud Identity service URL ending in /v2.0/")
View Full Code Here


   public static class Builder extends BaseProviderMetadata.Builder {

      protected Builder() {
         id("rackspace-cloudfiles-us")
         .name("Rackspace Cloud Files US")
         .apiMetadata(new CloudFilesApiMetadata().toBuilder()
               .identityName("${userName}")
               .credentialName("${apiKey}")
               .defaultEndpoint("https://identity.api.rackspacecloud.com/v2.0/")
               .documentation(URI.create("http://docs.rackspace.com/files/api/v1/cf-devguide/content/index.html"))
               .endpointName("Rackspace Cloud Identity service URL ending in /v2.0/")
View Full Code Here

   public static class Builder extends BaseProviderMetadata.Builder {

      protected Builder() {
         id("rackspace-cloudfiles-us")
         .name("Rackspace Cloud Files US")
         .apiMetadata(new CloudFilesApiMetadata().toBuilder()
               .identityName("${userName}")
               .credentialName("${apiKey}")
               .defaultEndpoint("https://identity.api.rackspacecloud.com/v2.0/")
               .documentation(URI.create("http://docs.rackspace.com/files/api/v1/cf-devguide/content/index.html"))
               .endpointName("Rackspace Cloud Identity service URL ending in /v2.0/")
View Full Code Here

import org.testng.annotations.Test;

@Test(groups = "unit", testName = "CloudFilesUSProviderTest")
public class CloudFilesUSProviderTest extends BaseProviderMetadataTest {
   public CloudFilesUSProviderTest() {
      super(new CloudFilesUSProviderMetadata(), new CloudFilesApiMetadata());
   }
View Full Code Here

   public static class Builder extends BaseProviderMetadata.Builder {

      protected Builder() {
         id("rackspace-cloudfiles-uk")
         .name("Rackspace Cloud Files UK")
         .apiMetadata(new CloudFilesApiMetadata().toBuilder()
               .identityName("${userName}")
               .credentialName("${apiKey}")
               .defaultEndpoint("https://identity.api.rackspacecloud.com/v2.0/")
               .documentation(URI.create("http://docs.rackspace.com/files/api/v1/cf-devguide/content/index.html"))
               .endpointName("Rackspace Cloud Identity service URL ending in /v2.0/")
View Full Code Here

import org.testng.annotations.Test;

@Test(groups = "unit", testName = "CloudFilesUKProviderTest")
public class CloudFilesUKProviderTest extends BaseProviderMetadataTest {
   public CloudFilesUKProviderTest() {
      super(new CloudFilesUKProviderMetadata(), new CloudFilesApiMetadata());
   }
View Full Code Here

   public void testEnable() throws Exception {
      for (String regionId : regions) {
         assertNotNull(api.getCDNApiForRegion(regionId).enable(name));
        
         CDNContainer container = api.getCDNApiForRegion(regionId).get(name);
         assertCDNContainerNotNull(container);
         assertTrue(container.isEnabled());
      }
   }
View Full Code Here

   public void testEnableWithTTL() throws Exception {
      for (String regionId : regions) {
         assertNotNull(api.getCDNApiForRegion(regionId).enable(name, 777777));

         CDNContainer container = api.getCDNApiForRegion(regionId).get(name);
         assertCDNContainerNotNull(container);
         assertTrue(container.isEnabled());
         assertTrue(container.getTtl() == 777777);
      }
   }
View Full Code Here

   public void testEnable() throws Exception {
      for (String regionId : regions) {
         assertNotNull(api.cdnApiInRegion(regionId).enable(name));
        
         CDNContainer container = api.cdnApiInRegion(regionId).get(name);
         assertCDNContainerNotNull(container);
         assertTrue(container.isEnabled());
      }
   }
View Full Code Here

   public void testEnableWithTTL() throws Exception {
      for (String regionId : regions) {
         assertNotNull(api.cdnApiInRegion(regionId).enable(name, 777777));

         CDNContainer container = api.cdnApiInRegion(regionId).get(name);
         assertCDNContainerNotNull(container);
         assertTrue(container.isEnabled());
         assertTrue(container.getTtl() == 777777);
      }
   }
View Full Code Here

TOP

Related Classes of org.jclouds.rackspace.cloudfiles.v1.features.CDNApi

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.