public static Tags create() { return Tags.create(null, null); }
public static Tags create() { return Tags.create(null, null); }
public static Tags create() { return Tags.create(null, null); }
public static Tags create(String fingerprint) { return Tags.create(fingerprint, null); }
public static Tags create() { return Tags.create(null, null); }
@Override public Tags clone() { return Tags.create(fingerprint(), new ArrayList<String>(items())); } }
public NewInstance build() { return create(name, machineType, canIpForward, networkInterfaces, disks, description, tags != null ? tags : Tags.create(), metadata != null ? metadata : Metadata.create(), serviceAccounts, scheduling); } }
public static NewInstance create(String name, URI machineType, URI network, List<AttachDisk> disks, @Nullable String description, @Nullable Tags tags) { checkArgument(disks.get(0).boot(), "disk 0 must be a boot disk! %s", disks); boolean foundBoot = false; for (AttachDisk disk : disks) { if (disk.boot()) { checkArgument(!foundBoot, "There must be only one boot disk! %s", disks); foundBoot = true; } } return create(name, machineType, null, ImmutableList.of(NetworkInterface.create(network)), ImmutableList.copyOf(disks), description, tags != null ? tags : Tags.create(), Metadata.create(), null, null); }
public NewInstance build() { return create(name, machineType, canIpForward, networkInterfaces, disks, description, tags != null ? tags : Tags.create(), metadata != null ? metadata : Metadata.create(), serviceAccounts, scheduling); } }
@Override public Tags clone() { return Tags.create(fingerprint(), items()); } }
@Override public Tags clone() { return Tags.create(fingerprint(), items()); } }
public static NewInstance create(String name, URI machineType, URI network, @Nullable URI subnetwork, List<AttachDisk> disks, @Nullable String description, @Nullable Tags tags) { checkArgument(disks.get(0).boot(), "disk 0 must be a boot disk! %s", disks); boolean foundBoot = false; for (AttachDisk disk : disks) { if (disk.boot()) { checkArgument(!foundBoot, "There must be only one boot disk! %s", disks); foundBoot = true; } } return create(name, machineType, null, ImmutableList.of(NetworkInterface.create(network, subnetwork)), ImmutableList.copyOf(disks), description, tags != null ? tags : Tags.create(), Metadata.create(), null, null); }
public static NewInstance create(String name, URI machineType, URI network, @Nullable URI subnetwork, List<AttachDisk> disks, @Nullable String description, @Nullable Tags tags) { checkArgument(disks.get(0).boot(), "disk 0 must be a boot disk! %s", disks); boolean foundBoot = false; for (AttachDisk disk : disks) { if (disk.boot()) { checkArgument(!foundBoot, "There must be only one boot disk! %s", disks); foundBoot = true; } } return create(name, machineType, null, ImmutableList.of(NetworkInterface.create(network, subnetwork)), ImmutableList.copyOf(disks), description, tags != null ? tags : Tags.create(), Metadata.create(), null, null); }
public NewInstance build() { return create(name, machineType, canIpForward, networkInterfaces, disks, description, tags != null ? tags : Tags.create(), metadata != null ? metadata : Metadata.create(), serviceAccounts, scheduling); } }
@Override public Tags clone() { return Tags.create(fingerprint(), items()); } }
public static NewInstance create(String name, URI machineType, URI network, List<AttachDisk> disks, String description, Scheduling scheduling) { checkArgument(disks.get(0).boot(), "disk 0 must be a boot disk! %s", disks); boolean foundBoot = false; for (AttachDisk disk : disks) { if (disk.boot()) { checkArgument(!foundBoot, "There must be only one boot disk! %s", disks); foundBoot = true; } } return create(name, machineType, null, ImmutableList.of(NetworkInterface.create(network)), ImmutableList.copyOf(disks), description, Tags.create(), Metadata.create(), null, scheduling); }
"test-0", // name "desc", // description Tags.create("abcd", ImmutableList.of("aTag", "Group-port-42")), // tags URI.create(baseUrl + "/party/zones/us-central1-a/machineTypes/n1-standard-1"), // machineType
disks) .description(group) .tags(Tags.create(null, ImmutableList.copyOf(options.getTags()))) .serviceAccounts(options.serviceAccounts()) .scheduling(scheduling)
disks) .description(group) .tags(Tags.create(null, ImmutableList.copyOf(options.getTags()))) .serviceAccounts(options.serviceAccounts()) .scheduling(scheduling);
Tags.create(null, ImmutableList.of("foo", "bar")) // tags ); instance.metadata().put("mykey", "myvalue"); .tags(Tags.create(null, ImmutableList.of("tag1"))) .serviceAccounts(ImmutableList.of(ServiceAccount.create("default", ImmutableList.of("https://www.googleapis.com/auth/compute")))) .scheduling(Scheduling.create(OnHostMaintenance.MIGRATE, true, false))