Commit Graph

177 Commits

Author SHA1 Message Date
Ignasi Barrera ed425c202a Remove accidentally committed file 2015-09-21 23:22:29 +02:00
Michael Wilson 962980cd9d JCLOUDS-1001. Add preemptible support to the Google Compute provider.
The Google Compute provider should support preemptible instances.
2015-09-21 22:17:18 +02:00
Ignasi Barrera 042222b647 GCE hardware profiles might not have volumes 2015-09-18 10:05:34 +02:00
Oliver Gondža edde721937 JCLOUDS-962: Make all @Provider methods final 2015-09-02 23:54:44 +02:00
rand0m86 2e1aa3c055 Fixed typo 2015-07-16 12:52:40 +02:00
Andrew Gaul 1c1cfffd5d JCLOUDS-857: remove spurious annotation
Multiple constructors annotated with @SerializedNames confuses
NamingStrategies.translateName and causes failures with newer JDK.
Since the second constructor does not need this annotation we remote
it.
2015-07-07 16:59:58 -07:00
Ignasi Barrera 647df25d90 Update Maven coordinates to the promoted naming 2015-06-26 11:32:01 +02:00
Daniel Broudy 70da397237 Update ComposeObjectTemplate and update MockTests 2015-06-22 09:37:42 -07:00
Andrew Bayer db6f6efaba JCLOUDS-936: Switch to LoadingCache for disk->image 2015-06-18 11:44:11 +02:00
Andrew Bayer f3555cba1b JCLOUDS-934. Add support for specifying boot disk type in compute service 2015-06-15 15:55:03 -07:00
Daniel Broudy c1b1cfbbea Add running GoogleComputeEngineTemplateBuilderLiveTest with Json key 2015-06-15 22:44:47 +02:00
Andrew Bayer 6d850a8aee JCLOUDS-935. Move AttachDisk.InitializeParams to URI for diskType
Note that two tests are failing right now with or without this.
2015-06-12 09:12:23 -07:00
Ignasi Barrera 012e1885e5 Image credentials and project improvements.
JCLOUDS-870: Adds the missing projects to the default project list
JCLOUDS-861 & JCLOUDS-911: Improved the way image OSFamily is parsed and
configured the default username for each image type.
2015-06-12 15:03:50 +02:00
Ignasi Barrera 3b6b73d9a1 Do not use AutoValue shaded imports 2015-06-10 13:00:33 +02:00
Daniel Broudy d8222cf0f7 Update UrlMapApiLiveTest 2015-06-09 23:59:13 +02:00
Ignasi Barrera 2e7ca20f1c JCLOUDS-925: Add support to start and stop instances in the ComputeService 2015-06-08 16:17:03 +02:00
Daniel Broudy 55348c0ddb JCLOUDS-906: Add ServiceAccounts to GoogleComputeEngineTemplateOptions 2015-06-03 01:47:54 +02:00
Daniel Broudy aa33619c92 Making tags Immutable 2015-05-26 15:53:11 +02:00
Daniel Broudy 465a62aa27 Remove firewall-tag filtering 2015-05-26 15:53:06 +02:00
Daniel Broudy 5adfce8d48 Removing network management, use default network, use fewer firewalls. 2015-05-19 15:39:55 +02:00
Ignasi Barrera 9d3b2d70e1 Fix the HealthCheck live tests 2015-04-15 23:40:32 +02:00
Ignasi Barrera 88c3c61081 Next development version 2.0.0-SNAPSHOT 2015-03-24 11:07:27 +01:00
Ignasi Barrera 121ea203d8 Apache jclouds 1.9.0 release 2015-03-24 11:06:18 +01:00
Daniel Broudy 9c3cefff16 Updated AggregatedListApiLiveTest 2015-02-18 10:58:37 +01:00
Daniel Broudy ec52bdbfb9 Updated ForwardingRuleCreationOptions to AutoValue + Builder 2015-02-18 10:58:37 +01:00
Daniel Broudy a26a721575 Updated DiskCreationOptions to AutoValue + Builder 2015-02-18 10:58:37 +01:00
Daniel Broudy adf6999899 Updated DeprecateOptions to AutoValue + Builder 2015-02-18 10:58:36 +01:00
Daniel Broudy a9eecfad81 Updated BackendServiceOptions to AutoValue + Builder 2015-02-18 10:58:36 +01:00
Daniel Broudy 7ac7197e83 adding start and stop to Instance Api 2015-02-11 17:25:44 +01:00
Daniel Broudy 19c65d8f6f Enables working with .json key files, adding GoogleCredentialsFromJson 2015-02-03 10:59:01 +01:00
Jeremy Daggett 079b4d9c5c Split Auto dependencies into auto-service and auto-value 2015-01-16 14:38:06 -08:00
Daniel Broudy da9bd0c19d Fixed InstanceApiLiveTest, made Instance.status @Nullable 2015-01-09 23:19:33 +01:00
Daniel Broudy aa3a8dff8a Added Project:setUsageExportBucket and ProjectApiMockTest 2015-01-09 23:19:15 +01:00
Daniel Broudy 0f67b62505 Updated TargetHttpProxyOptions, TargetPoolCreationOptions, UrlMapOptions to AutoValue + Builder 2015-01-09 23:14:14 +01:00
Ignasi Barrera 2ba48dc9f6 Removed the SecurityGroupExtension 2015-01-05 13:55:28 +01:00
Ignasi Barrera d6d1e7dde5 Cleanup node authentication 2015-01-05 13:48:15 +01:00
Daniel Broudy 4772587722 MockTests now support PATCH semantics 2014-12-16 00:44:33 +01:00
Daniel Broudy e4cc7282d7 New MockTests: TargetHttpProxyApi, UrlMap, ZoneApi, FirewallApi 2014-12-16 00:44:31 +01:00
Daniel Broudy 3db5cef592 Bug fixes related to LiveTest failures 2014-12-15 23:03:36 +01:00
Daniel Broudy f81e44ceb2 added CreationTimestamp to HttpHealthCheck and TargetPool + refactor Warning 2014-12-15 22:38:53 +01:00
Daniel Broudy dd5c4c5c6b Added targetPool:AggregatedList, getHealth. Updated HttpHealthCheck 2014-12-09 21:46:11 +01:00
Daniel Broudy 94d42c3c6c Updates to InstanceApi. 100% coverage 2014-12-09 17:54:08 +01:00
Daniel Broudy fd27ab1a9a Updated Network, MachineType, Region, Route, Snapshot, TargetInstance, and Zone 2014-12-08 23:50:31 +01:00
Daniel Broudy 6918ab1089 Updates to Address, Disk, Image, Operations + others 2014-12-08 23:25:59 +01:00
Daniel Broudy 1d3ad709d5 New MockTests: Network, Operation, Region, Route, Snapshot 2014-12-05 00:11:05 +01:00
Daniel Broudy 3e9612a0bc Added LicenseApi 2014-12-01 11:27:13 -08:00
Ignasi Barrera fca6022c23 Upgrade to OkHttp 2.1.0
Mockwebserver 2.1.0 does not bind the localhost address but
the public address. That makes the test to fail if we hardcode
the server URL to 'localhost'. The server.getUrl() method
should be used instead.
2014-11-27 11:43:59 +01:00
Daniel Broudy 2ccf08962e Added TargetInstanceApi 2014-11-26 17:44:46 -08:00
Daniel Broudy 81d410a588 Converting tests to Mock 2014-11-26 15:27:44 -08:00
Daniel Broudy 0c41f7afbe added InstanceApi.setScheduling 2014-11-26 13:12:44 -08:00
Daniel Broudy 1440ef2b3a Added Image.deprecate, ImageApiMockTest completed, removed ImageApiExpectTest 2014-11-25 10:54:00 -08:00
Daniel Broudy d80a8b7937 Added ForwardingRule to AggregatedListApi. 2014-11-25 10:52:49 -08:00
Daniel Broudy 87c3976c31 l7 Cont: Removed ResourceView, Converted to AutoValue and updated. 2014-11-19 17:38:16 -08:00
ashmrtnz 71862dd563 Initial commit to add l7 loadbalancing features and tests to jclouds-labs-google 2014-11-19 17:37:47 -08:00
Adrian Cole 3f9f8df3f1 * Refactor OAuth to be less complex.
* Remove oauth as a standalone api.
 * Rename redundant OAuthAuthenticationFilter to OAuthFilter.
 * Make AuthorizationApi more simple by using form semantics.
 * Simplified OAuth by only permitting RS256 and none algos.
2014-11-18 10:43:33 -08:00
Adrian Cole a2bdf0b484 Remove tests for default fallbacks. This helps clarify code towards what's GCE-specific. 2014-11-17 13:35:17 -08:00
Katharina Probst 24dea0fa3f Extends coverage of AggregatedList API: address, disk, disk type, global operations. 2014-11-16 07:44:56 -08:00
Daniel Broudy 977fa89045 Add setDiskAutoDelete to InstanceApi, Refactor AttachDisk. 2014-11-14 17:52:25 -08:00
Adrian Cole 4342348404 Dedupe code between google cloud products. 2014-11-13 11:02:44 -08:00
Adrian Cole 347926543e * Change OAuthScopes into an interface as opposed to boilerplating annotations.
* Fixed errors because of boilerplating annotations.
2014-11-12 20:29:16 -08:00
Adrian Cole f3d2d3571c * Refactor OAuth so that it doesn't require private keys when we aren't signing anything.
* Rename constant serviceAccountCredentials to p12PrivateKeyCredentials as this better describes the credential value.
2014-11-11 16:20:58 -08:00
Adrian Cole 65f061b0b6 * Removed the need for users to manually specify the current project name everywhere.
* Documented why we implicitly lookup project name using project id; corrected README, pom, ApiMetadata and added tests.
  * Introduced jclouds.google-compute-engine.project-name property used to adjust the project commands affect.
  * Flattened quasi-generated pagination classes into package-private members of their callers.
  * Removed invalid fallbacks for lists. List responses are empty; they don't return 4xx!
  * Adjusted test configuration to allow bearer token properly.
2014-11-10 09:19:14 -08:00
Adrian Cole 7af2fc2081 * Rewrites InstanceTemplate as NewInstance, strictly from docs.
* Rewrites Metadata to have the same shape as in json, avoid really complicated json parser.
 * Rewrites GoogleComputeEngineServiceAdapter.createNodeWithGroupEncodedIntoName to use less network requests.
 * Removes untested aspects of TemplateOptions, except additional disks.
 * Removes complexity around location by using aggregate apis, which removes custom location module
 * Switches to uris as ids, which removes the InstanceInZone and MachineTypeInZone class
 * Stop using metadata to temporarily store jclouds image id as it is reachable via disks[0].source -> disk.sourceImage
 * Starts using MWS, which makes it possible to read the offline tests for compute service
 * Reduces newlines needed in tests by switching mock project name to "party"
2014-11-09 10:14:45 -08:00
Adrian Cole 6af7d7a269 Use InstanceTemplate.name as opposed to ignoring it. 2014-11-07 07:57:33 -08:00
Adrian Cole 804acb3fda Consolidate operation state management. 2014-11-07 07:57:33 -08:00
Adrian Cole 8e8f9662e1 Add GoogleComputeEngineProviderMetadata and implement dynamic Location suppliers. 2014-11-06 11:43:04 -08:00
Adrian Cole c7bb9f8b17 standardize listPage across all GCE resources. 2014-11-05 11:26:31 -08:00
Ignasi Barrera d788766cb0 Use images from all public projects and filter deprecated ones 2014-11-05 18:15:29 +01:00
Adrian Cole 382dc0d236 Make instance api prettier. 2014-11-04 17:14:09 -08:00
Adrian Cole a85dd6e0f9 Migrate off PaginatedIterable to Iterator. Fix some live test bugs. 2014-11-04 14:21:36 -08:00
Adrian Cole a5ac88f1d7 Cleanup ListPage in google apis. 2014-11-04 08:25:03 -08:00
Daniel Broudy 1772ea896b Adding fix to Project.get fallback. Returns 400 or 404. 2014-11-03 15:20:20 -08:00
Adrian Cole 19245ec18b JCLOUDS-750 Convert GoogleComputeEngine to AutoValue + general cleanup. 2014-11-03 15:20:20 -08:00
Adrian Cole c318612f60 JCLOUDS-750 Remove need for custom json type adapters on OAuth. 2014-11-02 08:28:42 -08:00
Daniel Broudy 1bd75d7c59 Improved live tests for Load Balancing. 2014-10-31 15:59:42 -07:00
Daniel Broudy 290543d93e Added options and binders for LB apis. 2014-10-30 18:54:43 -07:00
Andrea Turli 4a9255a00a initial commit to support GCE LB
add support targetPools, forwardingRules and httpHealthChecks API
add expectedTests and LiveTests for the above API
2014-10-30 18:54:43 -07:00
Adrian Cole d9649c7e1e JCLOUDS-750 At the cost of fiddling with type hierarchy adapters, remove lots of junk with google auto. 2014-10-27 09:27:54 -07:00
Adrian Cole 143b5e7e1d Iteration order of HashSet/Map changes between JRE 7 and JRE 8, breaking tests. Switch to LinkedHashSet/Map. 2014-10-25 11:38:01 -07:00
Adrian Cole 354fee9c42 Cleanup binders in GCE: don't use sneaky injection. don't redundantly check null. 2014-10-25 11:29:36 -07:00
Adrian Cole 6595a8fc69 Revert "JCLOUDS-653: Address Guava 18 deprecations"
This reverts commit e2e288ee86d537d249c7e58c782a66b0201f2134.

Many conflicts on account of lots of changes since the original commit.
2014-10-24 10:54:47 -07:00
Daniel Broudy 47ee9634a9 Adding SSD support and added DiskCreationOptions. 2014-10-21 14:43:42 -07:00
Daniel Broudy b46460035c Adding support for DiskTypes Api. 2014-10-20 09:50:50 -07:00
Daniel Broudy 57ea3b987c minor bug fix to InstanceApiLiveTest 2014-10-17 16:05:54 -07:00
Ignasi Barrera 609982747f JCLOUDS-678: Do not silently return null in POST operations 2014-10-16 23:20:29 +02:00
Daniel Broudy 324f443856 JCLOUDS-649: Added image creation from pd and made Image rawDisk Optional<T> 2014-10-16 10:21:08 -07:00
Ignasi Barrera dab34c6e21 Fix indentation 2014-10-12 22:32:36 +02:00
Ignasi Barrera 65f29d1802 Implemented the supports exclusion CIDR new method 2014-10-11 13:19:00 +02:00
Stuart Hendren f4f86edd4d JCLOUDS-703: Google Hardware no longer supports images 2014-10-06 15:27:07 -06:00
Adrian Cole 611c21ba69 JCLOUDS-740 GCE doesn't always return id, selfLink on lists. Also, internally buffering an Iterable with a Set < with a List. 2014-10-03 15:45:28 -07:00
Andrew Gaul ee31c02454 Add missing @Override annotations
Also remove bogus inheritDoc on base methods.
2014-08-31 20:00:52 -07:00
Andrew Gaul 1f44b9d822 Avoid primitive wrapper constructors 2014-08-26 17:53:50 -07:00
Chris Custine bb0b816a91 Fixing whitespace for checkstyle violation 2014-08-15 12:37:29 -06:00
Stuart Hendren bc52da8a73 JCLOUDS-661: Supporting single port firewall rules in GCE
Corresponding test added in
https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=f3778b6
2014-08-14 12:57:49 -04:00
Chris Custine 5ec9bdb3f3 JCLOUDS-633: Support passing bearer token directly for OAuth2 2014-08-13 16:11:44 -06:00
Chris Custine f907f5223c JCLOUDS-643: Fix Google and OAuth tests 2014-08-13 13:47:55 -06:00
Andrew Gaul 61b78441d6 JCLOUDS-653: Address Guava 18 deprecations
Mostly renaming Objects.toStringHelper to MoreObjects.toStringHelper.
2014-08-08 11:55:25 -07:00
Andrew Phillips b9858851ed Updating project and jclouds.version to 2.0.0-SNAPSHOT 2014-08-05 11:46:53 +02:00
Andrea Turli 8fd946c93d [JCLOUDS-550] fix for obsolete machineTypes 2014-07-15 16:19:26 +02:00
Marek Wieczorek 40b65c5d39 Fixing other Checkstyle violations in GCE. 2014-07-03 11:10:14 -04:00