Skip to content

Commit e9fbff5

Browse files
Fixed code
1 parent 4af7c89 commit e9fbff5

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

compute/cloud-client/src/main/java/compute/reservation/ConsumeAnyMatchingReservation.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ public static void createReservation(String projectId, String reservationName,
6363
int numberOfVms, String zone)
6464
throws IOException, ExecutionException, InterruptedException, TimeoutException {
6565
// Minimum CPU platform of the instances.
66-
String minCpuPlatform = "Intel Cascade Lake";
66+
String minCpuPlatform = "Intel Skylake";
6767
// Machine type of the instances.
68-
String machineType = "n2-standard-32";
68+
String machineType = "n1-standard-4";
6969
// Initialize client that will be used to send requests. This client only needs to be created
7070
// once, and can be reused for multiple requests.
7171
try (ReservationsClient reservationsClient = ReservationsClient.create()) {
@@ -112,12 +112,12 @@ public static void createInstance(String projectId, String zone, String instance
112112
// diskSizeGb: storage size of the boot disk to attach to the instance.
113113
// networkName: network interface to associate with the instance.
114114
// Minimum CPU platform of the instances.
115-
String machineType = String.format("zones/%s/machineTypes/n2-standard-32", zone);
115+
String machineType = String.format("zones/%s/machineTypes/n1-standard-4", zone);
116116
String sourceImage = String
117117
.format("projects/debian-cloud/global/images/family/%s", "debian-11");
118118
long diskSizeGb = 10L;
119119
String networkName = "default";
120-
String minCpuPlatform = "Intel Cascade Lake";
120+
String minCpuPlatform = "Intel Skylake";
121121

122122
// Initialize client that will be used to send requests. This client only needs to be created
123123
// once, and can be reused for multiple requests.

compute/cloud-client/src/main/java/compute/reservation/ConsumeSingleProjectReservation.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ public static void createReservation(
6262
String projectId, String reservationName, int numberOfVms, String zone)
6363
throws IOException, ExecutionException, InterruptedException, TimeoutException {
6464
// Machine type of the instances.
65-
String machineType = "n2-standard-32";
65+
String machineType = "n1-standard-4";
6666
// Minimum CPU platform of the instances.
67-
String minCpuPlatform = "Intel Cascade Lake";
67+
String minCpuPlatform = "Intel Skylake";
6868
boolean specificReservationRequired = true;
6969

7070
// Initialize client that will be used to send requests. This client only needs to be created
@@ -114,8 +114,8 @@ public static void createInstance(
114114
.format("projects/debian-cloud/global/images/family/%s", "debian-11");
115115
long diskSizeGb = 10L;
116116
String networkName = "default";
117-
String machineType = String.format("zones/%s/machineTypes/n2-standard-32", zone);
118-
String minCpuPlatform = "Intel Cascade Lake";
117+
String machineType = String.format("zones/%s/machineTypes/n1-standard-4", zone);
118+
String minCpuPlatform = "Intel Skylake";
119119

120120
// Initialize client that will be used to send requests. This client only needs to be created
121121
// once, and can be reused for multiple requests.

compute/cloud-client/src/main/java/compute/reservation/ConsumeSpecificSharedReservation.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ public static void createReservation(
6262
String projectId, String reservationName, int numberOfVms, String zone)
6363
throws IOException, ExecutionException, InterruptedException, TimeoutException {
6464
// Machine type of the instances.
65-
String machineType = "n2-standard-32";
65+
String machineType = "n1-standard-4";
6666
// Minimum CPU platform of the instances.
67-
String minCpuPlatform = "Intel Cascade Lake";
67+
String minCpuPlatform = "Intel Skylake";
6868
boolean specificReservationRequired = true;
6969

7070
// Initialize client that will be used to send requests. This client only needs to be created
@@ -115,8 +115,8 @@ public static void createInstance(
115115
.format("projects/debian-cloud/global/images/family/%s", "debian-11");
116116
long diskSizeGb = 10L;
117117
String networkName = "default";
118-
String machineType = String.format("zones/%s/machineTypes/n2-standard-32", zone);
119-
String minCpuPlatform = "Intel Cascade Lake";
118+
String machineType = String.format("zones/%s/machineTypes/n1-standard-4", zone);
119+
String minCpuPlatform = "Intel Skylake";
120120
// To consume this reservation from any consumer projects that this reservation is shared with,
121121
// you must also specify the owner project of the reservation - the path to the reservation.
122122
String reservationPath =

0 commit comments

Comments
 (0)