Package org.jclouds.googlecloudstorage.domain

Examples of org.jclouds.googlecloudstorage.domain.DefaultObjectAccessControlsTemplate


                        MediaType.APPLICATION_JSON)).build();

      DefaultObjectAccessControlsApi api = requestsSendResponses(requestForScopes(STORAGE_FULLCONTROL_SCOPE),
               TOKEN_RESPONSE, insertRequest, CREATE_DEFAULT_OBJECTACL_RESPONSE).getDefaultObjectAccessControlsApi();

      DefaultObjectAccessControlsTemplate template = new DefaultObjectAccessControlsTemplate().entity("allUsers").role(
               ObjectRole.OWNER);

      assertEquals(api.createDefaultObjectAccessControls(EXPECTED_TEST_BUCKET, template),
               new DefaultObjectAclInsertTest().expected());
   }
View Full Code Here


   @Inject
   private BindToJsonPayload jsonBinder;

   @Override
   public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) {
      DefaultObjectAccessControlsTemplate template = (DefaultObjectAccessControlsTemplate) postParams.get("template");
      return bindToRequest(request, template);
   }
View Full Code Here

TOP

Related Classes of org.jclouds.googlecloudstorage.domain.DefaultObjectAccessControlsTemplate

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.