Re: [jclouds/jclouds-labs] JCLOUDS-1005: Backblaze B2 object operations (#276)

2016-06-08 Thread Andrew Gaul
Addressed all outstanding review comments. --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/276#issuecomment-224812187

Re: [jclouds/jclouds-labs] JCLOUDS-1005: Backblaze B2 object operations (#276)

2016-06-08 Thread Andrew Gaul
> +import org.jclouds.b2.domain.UploadUrlResponse; > +import org.jclouds.b2.reference.B2Headers; > +import org.jclouds.rest.MapBinder; > + > +import com.google.common.base.Preconditions; > +import com.google.common.net.HttpHeaders; > +import com.google.common.net.PercentEscaper; > + > +public final

Re: [jclouds/jclouds-labs] JCLOUDS-1005: Backblaze B2 object operations (#276)

2016-06-08 Thread Andrew Gaul
> +import org.jclouds.rest.annotations.MapBinder; > +import org.jclouds.rest.annotations.PayloadParam; > +import org.jclouds.rest.annotations.RequestFilters; > +import org.jclouds.rest.annotations.ResponseParser; > +import org.jclouds.rest.binders.BindToJsonPayload; > + > +@BlobScope(CONTAINER) > +

Re: [jclouds/jclouds-labs] JCLOUDS-1005: Backblaze B2 object operations (#276)

2016-06-08 Thread Andrew Gaul
> + > assertThat(b2Object.payload().getContentMetadata().getContentLength()).isEqualTo(PAYLOAD.length()); > + > assertThat(b2Object.payload().getContentMetadata().getContentType()).isEqualTo(CONTENT_TYPE); > + > + assertThat(server.getRequestCount()).isEqualTo(2); > + > +

Re: [jclouds/jclouds-labs] JCLOUDS-1005: Backblaze B2 object operations (#276)

2016-06-08 Thread Andrew Gaul
> + @POST > + @Path("/b2api/v1/b2_delete_file_version") > + @MapBinder(BindToJsonPayload.class) > + @RequestFilters(RequestAuthorization.class) > + @Consumes(APPLICATION_JSON) > + @Produces(APPLICATION_JSON) > + DeleteFileResponse deleteFileVersion(@PayloadParam("fileName") String >

Re: [jclouds/jclouds-labs] JCLOUDS-1005: Backblaze B2 object operations (#276)

2016-06-08 Thread Andrew Gaul
> + @GET > + @Path("/b2api/v1/b2_list_file_names") > + @MapBinder(BindToJsonPayload.class) > + @RequestFilters(RequestAuthorization.class) > + @Consumes(APPLICATION_JSON) > + @Produces(APPLICATION_JSON) > + B2ObjectList listFileNames(@PayloadParam("bucketId") String bucketId, > @Payl

Re: [jclouds/jclouds-labs] JCLOUDS-1005: Backblaze B2 object operations (#276)

2016-06-08 Thread Andrew Gaul
> + UploadUrlResponse getUploadUrl(@PayloadParam("bucketId") String bucketId); > + > + @Named("b2_upload_file") > + @POST > + @MapBinder(UploadFileBinder.class) > + @Consumes(APPLICATION_JSON) > + UploadFileResponse uploadFile(@PayloadParam("uploadUrl") > UploadUrlResponse uploadUrl, @

Re: [jclouds/jclouds-labs] JCLOUDS-1005: Backblaze B2 object operations (#276)

2016-06-08 Thread Andrew Gaul
> +expected = byteSource.openStream(); > +assertThat(actual).hasContentEqualTo(expected); > + } finally { > +Closeables2.closeQuietly(expected); > +Closeables2.closeQuietly(actual); > + } > + } finally { > + if (uploadFile

[jira] [Updated] (JCLOUDS-902) GCS temporary signed URLs

2016-06-08 Thread Andrew Gaul (JIRA)
[ https://issues.apache.org/jira/browse/JCLOUDS-902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Gaul updated JCLOUDS-902: Component/s: jclouds-labs-google > GCS temporary signed URLs > - > >

Re: [jclouds/jclouds-labs] JCLOUDS-664 Azurecompute-arm compute service (#279)

2016-06-08 Thread Rita Zhang
> + public boolean apply(final String name) { > +runningNumber++; > + > +Deployment deployment = > api.getDeploymentApi(resourceGroupName).create(name, deploymentTemplate); > + > +if (deployment != null) { > + VMDeployment vmDeployment = ne

Re: [jclouds/jclouds-labs] JCLOUDS-1124 oneandone-server-api (#275)

2016-06-08 Thread alibazlamit
@nacx Removed all of the unneeded binders, i had to keep a few binders where the Json/Objects are more complex, let me know if its looks ok now. --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclo

Re: [jclouds/jclouds-examples] Example for updating the signed URLs key. (#87)

2016-06-08 Thread Zack Shoylev
> @@ -105,6 +109,19 @@ private void createContainer() throws IOException { >} > } > > + private void updatePrivateURLKey() throws IOException { > + // The key can be changed to quickly expire all existing signed URLs. > + AccountApi accountApi = blobStore > +.g

Re: [jclouds/jclouds-examples] Example for updating the signed URLs key. (#87)

2016-06-08 Thread Zack Shoylev
> @@ -105,6 +109,19 @@ private void createContainer() throws IOException { >} > } > > + private void updatePrivateURLKey() throws IOException { > + // The key can be changed to quickly expire all existing signed URLs. > + AccountApi accountApi = blobStore > +.g

Re: [jclouds/jclouds-labs] JCLOUDS-664 Azurecompute-arm compute service (#279)

2016-06-08 Thread Andrea Turli
@ritazh generally this means that jclouds couldn't ssh to the VM for the following reasons: ``` - timeout: slow provisioning - wrong password - port 22 closed ``` could you identify a test case that is likely to show the problem more often? --- You are receiving this because you are subscribed to

Re: [jclouds/jclouds-labs] JCLOUDS-664 Azurecompute-arm compute service (#279)

2016-06-08 Thread Rita Zhang
@andreaturli @nacx Occasionally I'm getting the following error now. Any idea or recommendations? org.jclouds.rest.AuthorizationException: (jclouds:pw[0cef1fb10f60529028a71f58e54ed07b]@[hostip]:22) (jclouds:pw[0cef1fb10f60529028a71f58e54ed07b]@[hostip:22) error acquiring {hostAndPort=[hostip:2

[jclouds/jclouds-labs-openstack] Added LogDelivery (#205)

2016-06-08 Thread n3llino
Added log delivery field for CDN Service creation You can view, comment on, or merge this pull request online at: https://github.com/jclouds/jclouds-labs-openstack/pull/205 -- Commit Summary -- * Added LogDelivery -- File Changes -- M openstack-poppy/src/main/java/org/jclouds/openstac

Re: [jclouds/jclouds-examples] Example for updating the signed URLs key. (#87)

2016-06-08 Thread Andrew Phillips
> @@ -105,6 +109,19 @@ private void createContainer() throws IOException { >} > } > > + private void updatePrivateURLKey() throws IOException { > + // The key can be changed to quickly expire all existing signed URLs. > + AccountApi accountApi = blobStore > +.g

Re: [jclouds/jclouds-labs] JCLOUDS-664 Azurecompute-arm compute service (#279)

2016-06-08 Thread Andrea Turli
> @@ -207,7 +208,7 @@ private void getImagesFromPublisher(String publisherName, > List osImages > > private List listImagesByLocation(String location) { >final List osImages = Lists.newArrayList(); > - String[] publishers = > this.azureComputeConstants.azureImagePublishers().sp

Re: [jclouds/jclouds-labs] JCLOUDS-664 Azurecompute-arm compute service (#279)

2016-06-08 Thread Rita Zhang
> + > + @Override > + public void destroyNode(final String id) { > + logger.debug("Destroying %s ...", id); > + String storageAccountName = id.replaceAll("[^A-Za-z0-9 ]", "") + > "storage"; > + int index = id.lastIndexOf("-"); > + String group = id.substring(0, index); > +