This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
forked from jclouds/jclouds
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JCLOUDS-934. Add support for specifying boot disk type in compute ser…
…vice
- Loading branch information
Showing
7 changed files
with
195 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
providers/google-compute-engine/src/test/resources/disktype_ssd.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"kind": "compute#diskType", | ||
"creationTimestamp": "2014-06-02T11:07:28.529-07:00", | ||
"name": "pd-ssd", | ||
"description": "SSD Persistent Disk", | ||
"validDiskSize": "10GB-1TB", | ||
"zone": "https://content.googleapis.com/compute/v1/projects/party/zones/us-central1-a", | ||
"selfLink": "https://content.googleapis.com/compute/v1/projects/party/zones/us-central1-a/diskTypes/pd-ssd", | ||
"defaultDiskSizeGb": "100" | ||
} | ||
|
40 changes: 40 additions & 0 deletions
40
providers/google-compute-engine/src/test/resources/instance_insert_ssd.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"machineType": "%s", | ||
"name": "test-1", | ||
"networkInterfaces": [ | ||
{ | ||
"network": "https://www.googleapis.com/compute/v1/projects/party/networks/default", | ||
"accessConfigs": [ | ||
{ | ||
"type": "ONE_TO_ONE_NAT" | ||
} | ||
] | ||
} | ||
], | ||
"disks": [ | ||
{ | ||
"type": "PERSISTENT", | ||
"initializeParams": { | ||
"sourceImage": "%s", | ||
"diskType": "https://content.googleapis.com/compute/v1/projects/party/zones/us-central1-a/diskTypes/pd-ssd" | ||
}, | ||
"boot": true, | ||
"autoDelete": true | ||
} | ||
], | ||
"description": "test", | ||
"tags": { | ||
"items": [ | ||
"aTag", | ||
"jclouds-test-65f" | ||
] | ||
}, | ||
"metadata": { | ||
"items": [ | ||
{ | ||
"key": "jclouds-group", | ||
"value": "test" | ||
} | ||
] | ||
} | ||
} |