Re: [jclouds] Add support for Azure Copy Blob (#514)

2015-03-29 Thread Andrew Gaul
@demobox Thanks for the feedback and sorry for my delayed responses; please see the latest commit. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/514#issuecomment-87526600

Re: [jclouds] Add support for Azure Copy Blob (#514)

2015-03-29 Thread Andrew Gaul
@@ -254,4 +257,8 @@ */ boolean blobExists(String container, String name); + /** +* @throws ContainerNotFoundException if the container is not present. +*/ + void copyBlob(URI copySource, String toContainer, String toName, OptionalCopyBlobOptions options); Changed

Re: [jclouds] Add support for Azure Copy Blob (#514)

2015-03-29 Thread Andrew Gaul
+ +import java.util.Map; + +import com.google.common.base.Optional; +import com.google.common.collect.ImmutableMap; + +/** + * @see a href=http://msdn.microsoft.com/en-us/library/dd894037.aspx; / + */ +// TODO: +// x-ms-source-if-modified-since +// x-ms-source-if-unmodified-since +//

Re: [jclouds] Add support for Azure Copy Blob (#514)

2015-03-29 Thread Andrew Gaul
+package org.jclouds.azureblob.binders; + +import java.util.Map; + +import org.jclouds.azure.storage.reference.AzureStorageHeaders; +import org.jclouds.azureblob.options.CopyBlobOptions; +import org.jclouds.http.HttpRequest; +import org.jclouds.rest.Binder; + +import

Re: [jclouds] Add support for Azure Copy Blob (#514)

2015-03-29 Thread Andrew Gaul
+public class BindAzureCopyOptionsToRequest implements Binder { + @Override + public R extends HttpRequest R bindToRequest(R request, Object input) { + OptionalCopyBlobOptions optional = (OptionalCopyBlobOptions) input; + if (!optional.isPresent()) { + return request;

Re: [jclouds] Add support for Azure Copy Blob (#514)

2015-03-29 Thread Andrew Gaul
+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + *

Re: [jclouds] Add support for Azure Copy Blob (#514)

2015-03-29 Thread Andrew Gaul
@@ -375,4 +380,23 @@ public void testBlockOperations() throws Exception { assertEquals(1, blocks.getBlocks().get(2).getContentLength()); getApi().deleteContainer(blockContainer); } + + @Test(timeOut = 5 * 60 * 1000, dependsOnMethods = { testCreateContainer,

Re: [jclouds] Add support for Azure Copy Blob (#514)

2015-03-29 Thread Andrew Gaul
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.jclouds.azureblob.options; + +import java.util.Map; + +import

Re: [jclouds] Add support for Azure Copy Blob (#514)

2015-03-24 Thread Everett Toews
Thanks for the pull request but it's release week in jclouds and that means it's time to clean up the PR queue. This PR will be over 6 months old as of April 1. If you intend to continue work on it, please make a comment by April 2. Otherwise it will be closed on April 3. --- Reply to this

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-10-03 Thread Adrian Cole
sorry that unasyncing probably screwed up this branch. let me know if you want a hand rebasing. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/514#issuecomment-57894560

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-24 Thread Andrew Phillips
+package org.jclouds.azureblob.binders; + +import java.util.Map; + +import org.jclouds.azure.storage.reference.AzureStorageHeaders; +import org.jclouds.azureblob.options.CopyBlobOptions; +import org.jclouds.http.HttpRequest; +import org.jclouds.rest.Binder; + +import

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-24 Thread Andrew Phillips
+package org.jclouds.azureblob.binders; + +import java.util.Map; + +import org.jclouds.azure.storage.reference.AzureStorageHeaders; +import org.jclouds.azureblob.options.CopyBlobOptions; +import org.jclouds.http.HttpRequest; +import org.jclouds.rest.Binder; + +import

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-24 Thread Andrew Phillips
+public class BindAzureCopyOptionsToRequest implements Binder { + @Override + public R extends HttpRequest R bindToRequest(R request, Object input) { + OptionalCopyBlobOptions optional = (OptionalCopyBlobOptions) input; + if (!optional.isPresent()) { + return request;

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-24 Thread Andrew Phillips
+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + *

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-24 Thread Andrew Phillips
+ +import java.util.Map; + +import com.google.common.base.Optional; +import com.google.common.collect.ImmutableMap; + +/** + * @see a href=http://msdn.microsoft.com/en-us/library/dd894037.aspx; / + */ +// TODO: +// x-ms-source-if-modified-since +// x-ms-source-if-unmodified-since +//

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-24 Thread Andrew Phillips
@@ -375,4 +380,23 @@ public void testBlockOperations() throws Exception { assertEquals(1, blocks.getBlocks().get(2).getContentLength()); getApi().deleteContainer(blockContainer); } + + @Test(timeOut = 5 * 60 * 1000, dependsOnMethods = { testCreateContainer,

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-09 Thread Jeremy Daggett
@@ -325,4 +330,16 @@ ListenableFutureListBlobBlocksResponse getBlockList(@PathParam(container) @ParamValidators(ContainerNameValidator.class) String container, @PathParam(name) String name); + /** +* @see

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-09 Thread Andrew Gaul
@@ -325,4 +330,16 @@ ListenableFutureListBlobBlocksResponse getBlockList(@PathParam(container) @ParamValidators(ContainerNameValidator.class) String container, @PathParam(name) String name); + /** +* @see

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-09 Thread Jeremy Daggett
@@ -325,4 +330,16 @@ ListenableFutureListBlobBlocksResponse getBlockList(@PathParam(container) @ParamValidators(ContainerNameValidator.class) String container, @PathParam(name) String name); + /** +* @see

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-09 Thread Ignasi Barrera
@@ -325,4 +330,16 @@ ListenableFutureListBlobBlocksResponse getBlockList(@PathParam(container) @ParamValidators(ContainerNameValidator.class) String container, @PathParam(name) String name); + /** +* @see

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-09 Thread Andrew Gaul
Going with a URI-based copy source. This allows copies between different accounts via signed URLs. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/514#issuecomment-55011739

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-09 Thread CloudBees pull request builder plugin
[jclouds-pull-requests-java-6 #69](https://jclouds.ci.cloudbees.com/job/jclouds-pull-requests-java-6/69/) SUCCESS This pull request looks good --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/514#issuecomment-55020580

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-09 Thread CloudBees pull request builder plugin
[jclouds-pull-requests #1158](https://jclouds.ci.cloudbees.com/job/jclouds-pull-requests/1158/) SUCCESS This pull request looks good --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/514#issuecomment-55030602

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-07 Thread CloudBees pull request builder plugin
[jclouds-pull-requests #1155](https://jclouds.ci.cloudbees.com/job/jclouds-pull-requests/1155/) FAILURE Looks like there's a problem with this pull request --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/514#issuecomment-54738511

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-07 Thread BuildHive
[jclouds » jclouds #1609](https://buildhive.cloudbees.com/job/jclouds/job/jclouds/1609/) FAILURE Looks like there's a problem with this pull request [(what's this?)](https://www.cloudbees.com/what-is-buildhive) --- Reply to this email directly or view it on GitHub:

[jclouds] Add support for Azure Copy Blob (#514)

2014-09-06 Thread Andrew Gaul
Presently lacks support for CopyBlobOptions. API reference: http://msdn.microsoft.com/en-us/library/dd894037.aspx You can merge this Pull Request by running: git pull https://github.com/andrewgaul/jclouds azure-copy-blob Or you can view, comment on it, or merge it online at:

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-06 Thread CloudBees pull request builder plugin
[jclouds-pull-requests-java-6 #66](https://jclouds.ci.cloudbees.com/job/jclouds-pull-requests-java-6/66/) SUCCESS This pull request looks good --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/514#issuecomment-54737736

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-06 Thread Andrew Gaul
@@ -325,4 +330,16 @@ ListenableFutureListBlobBlocksResponse getBlockList(@PathParam(container) @ParamValidators(ContainerNameValidator.class) String container, @PathParam(name) String name); + /** +* @see

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-06 Thread Andrew Gaul
I am still digesting the variants of `CopyBlobOptions`; it seems like Azure and S3 implement the same ETag variants and copy/replace user metadata operations. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/514#issuecomment-54737804

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-06 Thread CloudBees pull request builder plugin
[jclouds-pull-requests-java-6 #67](https://jclouds.ci.cloudbees.com/job/jclouds-pull-requests-java-6/67/) SUCCESS This pull request looks good --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/514#issuecomment-54737921

Re: [jclouds] Add support for Azure Copy Blob (#514)

2014-09-06 Thread BuildHive
[jclouds » jclouds #1608](https://buildhive.cloudbees.com/job/jclouds/job/jclouds/1608/) FAILURE Looks like there's a problem with this pull request [(what's this?)](https://www.cloudbees.com/what-is-buildhive) --- Reply to this email directly or view it on GitHub: