You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by Jeremy Daggett <no...@github.com> on 2014/08/15 19:24:39 UTC

[jclouds-labs-openstack] Swift API Updates (#129)

This PR updates the OpenStack Swift API to the latest standards. Here is what is included:

- Prefer `getSomeApi()` for all APIs
- Removed deprecated 1.8 methods
- Updated deprecations to the `*ForRegionAndBlah` methods to 3.0
- Whitespace cleanup
- Annotation reordering
You can merge this Pull Request by running:

  git pull https://github.com/rackerlabs/jclouds-labs-openstack swift/api-update

Or you can view, comment on it, or merge it online at:

  https://github.com/jclouds/jclouds-labs-openstack/pull/129

-- Commit Summary --

  * Swift API region cleanup

-- File Changes --

    M openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/CopyObjectException.java (5)
    M openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/SwiftApi.java (24)
    M openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/SwiftApiMetadata.java (6)
    M openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/blobstore/RegionScopedBlobStoreContext.java (52)
    M openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/blobstore/RegionScopedSwiftBlobStore.java (32)
    M openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/blobstore/RegionScopedTemporaryUrlBlobSigner.java (2)
    M openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/features/AccountApi.java (22)
    M openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/features/BulkApi.java (9)
    M openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/features/ContainerApi.java (84)
    M openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/features/ObjectApi.java (111)
    M openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/features/StaticLargeObjectApi.java (9)
    M openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/AuthenticationMockTest.java (2)
    M openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/TemporaryUrlSignerLiveTest.java (14)
    M openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/TemporaryUrlSignerMockTest.java (4)
    M openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/blobstore/RegionScopedBlobStoreContextLiveTest.java (8)
    M openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/features/AccountApiLiveTest.java (12)
    M openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/features/AccountApiMockTest.java (20)
    M openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/features/BulkApiLiveTest.java (16)
    M openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/features/BulkApiMockTest.java (2)
    M openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/features/ContainerApiLiveTest.java (36)
    M openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/features/ContainerApiMockTest.java (46)
    M openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/features/CreatePublicContainerLiveTest.java (6)
    M openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/features/ObjectApiLiveTest.java (46)
    M openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/features/ObjectApiMockTest.java (56)
    M openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/features/StaticLargeObjectApiLiveTest.java (20)
    M openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/features/StaticLargeObjectApiMockTest.java (8)
    M openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/internal/BaseSwiftApiLiveTest.java (2)
    M rackspace-cloudfiles/src/main/java/org/jclouds/rackspace/cloudfiles/v1/CloudFilesApi.java (12)
    M rackspace-cloudfiles/src/test/java/org/jclouds/rackspace/cloudfiles/v1/features/CloudFilesAccountApiLiveTest.java (4)
    M rackspace-cloudfiles/src/test/java/org/jclouds/rackspace/cloudfiles/v1/features/CloudFilesCDNApiLiveTest.java (56)

-- Patch Links --

https://github.com/jclouds/jclouds-labs-openstack/pull/129.patch
https://github.com/jclouds/jclouds-labs-openstack/pull/129.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/129

Re: [jclouds-labs-openstack] Swift API Updates (#129)

Posted by Jeremy Daggett <no...@github.com>.
Closed #129.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/129#event-157980233

Re: [jclouds-labs-openstack] Swift API Updates (#129)

Posted by Jeremy Daggett <no...@github.com>.
>      * @return The {@link Account} object.
>      */
>     @Named("account:get")
>     @HEAD
>     @ResponseParser(ParseAccountFromHeaders.class)
> -   @Path("/")

@zack-shoylev That is my understanding as well. According to the docs:

> A @Path value isn’t required to have leading or trailing slashes (/). The JAX-RS runtime parses URI path templates the same whether or not they have leading or trailing spaces.


---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/129/files#r16549806

Re: [jclouds-labs-openstack] Swift API Updates (#129)

Posted by CloudBees pull request builder plugin <no...@github.com>.
[jclouds-labs-openstack-pull-requests #361](https://jclouds.ci.cloudbees.com/job/jclouds-labs-openstack-pull-requests/361/) SUCCESS
This pull request looks good

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/129#issuecomment-52335571

Re: [jclouds-labs-openstack] Swift API Updates (#129)

Posted by Zack Shoylev <no...@github.com>.
>      * @return The {@link Account} object.
>      */
>     @Named("account:get")
>     @HEAD
>     @ResponseParser(ParseAccountFromHeaders.class)
> -   @Path("/")

If I remember correctly, the / is added automatically - if needed?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/129/files#r16515156

Re: [jclouds-labs-openstack] Swift API Updates (#129)

Posted by Zack Shoylev <no...@github.com>.
> @@ -60,47 +60,53 @@
>  
>     @Delegate
>     @Path("/{containerName}")
> -   ObjectApi getObjectApiForContainer(@EndpointParam(parser = RegionToEndpoint.class) String region,

That explains it, thanks.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/129/files#r16495526

Re: [jclouds-labs-openstack] Swift API Updates (#129)

Posted by Zack Shoylev <no...@github.com>.
> @@ -60,47 +60,53 @@
>  
>     @Delegate
>     @Path("/{containerName}")
> -   ObjectApi getObjectApiForContainer(@EndpointParam(parser = RegionToEndpoint.class) String region,

Is this a breaking change? Just making sure.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/129/files#r16493782

Re: [jclouds-labs-openstack] Swift API Updates (#129)

Posted by Chris Custine <no...@github.com>.
>      * @return The {@link Account} object.
>      */
>     @Named("account:get")
>     @HEAD
>     @ResponseParser(ParseAccountFromHeaders.class)
> -   @Path("/")

Ok, thanks for pointing out that UriBuilder magic.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/129/files#r16562706

Re: [jclouds-labs-openstack] Swift API Updates (#129)

Posted by Chris Custine <no...@github.com>.
>      * @return The {@link Account} object.
>      */
>     @Named("account:get")
>     @HEAD
>     @ResponseParser(ParseAccountFromHeaders.class)
> -   @Path("/")

I'm assuming "/" is default with no @Path annotation? (I looked but couldn't quickly confirm that).

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/129/files#r16502665

Re: [jclouds-labs-openstack] Swift API Updates (#129)

Posted by Jeremy Daggett <no...@github.com>.
> @@ -60,47 +60,53 @@
>  
>     @Delegate
>     @Path("/{containerName}")
> -   ObjectApi getObjectApiForContainer(@EndpointParam(parser = RegionToEndpoint.class) String region,

No, because this method was only on `master`. I decided to change it after the unified `Region` support.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/129/files#r16495071

Re: [jclouds-labs-openstack] Swift API Updates (#129)

Posted by Chris Custine <no...@github.com>.
:+1: I am not able to test thoroughly at the moment, but LGTM.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/129#issuecomment-52972076

Re: [jclouds-labs-openstack] Swift API Updates (#129)

Posted by Jeremy Daggett <no...@github.com>.
Pushed to master 23a293e

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/129#issuecomment-53606308