@SerializedNames({"port_id", "net_id", "port_state", "fixed_ips"}) public static PortInterface create(String portId, String netId, State portState, List<FixedIP> fixedIPS) { return new AutoValue_PortInterface(portId, netId, portState, fixedIPS == null ? ImmutableList.<FixedIP> of() : ImmutableList.copyOf(fixedIPS) ); }
@SerializedNames({ "id", "hypervisor_hostname", "current_workload", "disk_available_least", "free_disk_gb", "free_ram_mb", "hypervisor_type", "hypervisor_version", "local_gb", "local_gb_used", "memory_mb", "memory_mb_used", "running_vms", "vcpus", "vcpus_used", "cpu_info" }) private static HypervisorDetails create(String id, String name, int currentWorkload, int diskAvailableLeast, int freeDiskGb, int freeRamMb, String hypervisorType, int hypervisorVersion, int localGb, int localGbUsed, int memoryMb, int memoryMbUsed, int runningVms, int vcpus, int vcpusUsed, String cpuInfo) { return new AutoValue_HypervisorDetails(id, name, currentWorkload, diskAvailableLeast, freeDiskGb, freeRamMb, hypervisorType, hypervisorVersion, localGb, localGbUsed, memoryMb, memoryMbUsed, runningVms, vcpus, vcpusUsed, cpuInfo); }
@SerializedNames({"name", "description", "sourceType", "rawDisk", "deprecated", "sourceDisk"}) static ImageCreationOptions create(String name, String description, String sourceType, RawDisk rawDisk, Deprecated deprecated, String sourceDisk){ return new AutoValue_ImageCreationOptions(name, description, sourceType, rawDisk, deprecated, sourceDisk); }
@SerializedNames({"description", "ipAddress", "ipProtocol", "portRange", "target"}) static ForwardingRuleCreationOptions create( String description, String ipAddress, ForwardingRule.IPProtocol ipProtocol, String portRange, URI target){ return new AutoValue_ForwardingRuleCreationOptions(description, ipAddress, ipProtocol, portRange, target); }
@SerializedNames( { "host", "requestPath", "port", "checkIntervalSec", "timeoutSec", "unhealthyThreshold", "healthyThreshold", "description"}) static HttpHealthCheckCreationOptions create(String host, String requestPath, Integer port, Integer checkIntervalSec, Integer timeoutSec, Integer unhealthyThreshold, Integer healthyThreshold, String description) { return new AutoValue_HttpHealthCheckCreationOptions(host, requestPath, port, checkIntervalSec, timeoutSec, unhealthyThreshold, healthyThreshold, description); }
@SerializedNames({ "id", "selfLink", "name", "creationTimestamp", "description", "status", "users", "region", "address" }) public static Address create(String id, URI selfLink, String name, Date creationTimestamp, String description, Status status, List<URI> users, URI region, String address) { return new AutoValue_Address(id, selfLink, name, creationTimestamp, description, status, users, region, address); }
@SerializedNames({ "name", "machineType", "canIpForward", "networkInterfaces", "disks", "description", "tags", "metadata", "serviceAccounts", "scheduling" }) static NewInstance create(String name, URI machineType, Boolean canIpForward, List<NetworkInterface> networkInterfaces, List<AttachDisk> disks, String description, Tags tags, Metadata metadata, List<ServiceAccount> serviceAccounts, Scheduling scheduling) { return new AutoValue_NewInstance(name, machineType, canIpForward, networkInterfaces, disks, description, tags, metadata, serviceAccounts, scheduling); }
@SerializedNames({ "id", "creationTimestamp", "zone", "status", "name", "description", "sizeGb", "sourceSnapshot", "sourceSnapshotId", "selfLink", "sourceImage", "sourceImageId", "type", "licenses" }) public static Disk create(String id, Date creationTimestamp, URI zone, Status status, String name, String description, int sizeGb, String sourceSnapshot, String sourceSnapshotId, URI selfLink, String sourceImage, String sourceImageId, URI type, List<String> licenses) { return new AutoValue_Disk(id, creationTimestamp, zone, status, name, description, sizeGb, sourceSnapshot, sourceSnapshotId, selfLink, sourceImage, sourceImageId, type, licenses); }
@SerializedNames({"name", "description", "healthChecks", "backends", "timeoutSec", "port", "protocol", "fingerprint", "portName"}) static BackendServiceOptions create(String name, String description, List<URI> healthChecks, List<Backend> backends, Integer timeoutSec, Integer port, String protocol, String fingerprint, String portName){ return new AutoValue_BackendServiceOptions(name, description, healthChecks, backends, timeoutSec, port, protocol, fingerprint, portName); }
@SerializedNames({"id" , "hypervisor_hostname"}) private static Hypervisor create(String id, String name) { return new AutoValue_Hypervisor(id, name); } }
@SerializedNames({ "Resource" }) public static Resource create(String resource) { return new AutoValue_Resource(resource); } }
@SerializedNames({ "ID", "Running", "ExitCode"}) public static ExecInspect create(String id, boolean running, int exitCode) { return new AutoValue_ExecInspect(id, running, exitCode); } }
@SerializedNames({ "IP", "PrivatePort", "PublicPort", "Type" }) public static Port create(String ip, int privatePort, Integer publicPort, String type) { return new AutoValue_Port(ip, privatePort, publicPort, type); } }
@SerializedNames({ "id", "creationTimestamp", "selfLink", "name", "description", "targetLink", "targetId", "clientOperationId", "status", "statusMessage", "user", "progress", "insertTime", "startTime", "endTime", "httpErrorStatusCode", "httpErrorMessage", "operationType", "error", "warnings", "region", "zone" }) public static Operation create(String id, Date creationTimestamp, URI selfLink, String name, String description, URI targetLink, String targetId, String clientOperationId, Status status, String statusMessage, String user, Integer progress, Date insertTime, Date startTime, Date endTime, Integer httpErrorStatusCode, String httpErrorMessage, String operationType, Error error, List<Warning> warnings, URI region, URI zone) { return new AutoValue_Operation(id, creationTimestamp, selfLink, name, description, targetLink, targetId, clientOperationId, status, statusMessage, user, progress, insertTime, startTime, endTime, httpErrorStatusCode, httpErrorMessage, operationType, error != null ? error : Error.empty(), warnings, region, zone); }
@SerializedNames({ "Id", "Author", "Comment", "Config", "ContainerConfig", "Parent", "Created", "Container", "DockerVersion", "Architecture", "Os", "Size", "VirtualSize", "RepoTags" }) public static Image create(String id, String author, String comment, Config config, Config containerConfig, String parent, Date created, String container, String dockerVersion, String architecture, String os, long size, long virtualSize, List<String> repoTags) { return new AutoValue_Image(id, author, comment, config, containerConfig, parent, created, container, dockerVersion, architecture, os, size, virtualSize, copyOf(repoTags)); }
@SerializedNames({ "PortAndProtocol", "HostPorts" }) public static ExposedPorts create(String portAndProtocol, List<String> hostPorts) { return new AutoValue_ExposedPorts(portAndProtocol, copyOf(hostPorts)); } }
@SerializedNames({"routeTableAssociationId", "routeTableId", "subnetId", "main"}) public static RouteTableAssociation create(String id, String routeTableId, String subnetId, Boolean main) { return builder() .id(id) .routeTableId(routeTableId) .subnetId(subnetId) .main(main) .build(); }
@SerializedNames({ "ContainerIDFile", "Binds", "LxcConf", "Privileged", "Dns", "DnsSearch", "PortBindings", "Links", "ExtraHosts", "PublishAllPorts", "VolumesFrom", "NetworkMode" }) public static HostConfig create(String containerIDFile, List<String> binds, List<Map<String, String>> lxcConf, boolean privileged, List<String> dns, List<String> dnsSearch, Map<String, List<Map<String, String>>> portBindings, List<String> links, List<String> extraHosts, boolean publishAllPorts, List<String> volumesFrom, String networkMode) { return new AutoValue_HostConfig(containerIDFile, copyWithNullOf(binds), copyOf(lxcConf), privileged, copyWithNullOf(dns), copyWithNullOf(dnsSearch), copyOf(portBindings), copyWithNullOf(links), copyWithNullOf(extraHosts), publishAllPorts, copyWithNullOf(volumesFrom), networkMode); }
@SerializedNames({ "EndpointID", "Gateway", "IPAddress", "IPPrefixLen", "IPv6Gateway", "GlobalIPv6Address", "GlobalIPv6PrefixLen", "MacAddress" }) public static Details create(String endpointId, String gateway, String ipAddress, int ipPrefixLen, String ipv6Gateway, String globalIPv6Address, int globalIPv6PrefixLen, String macAddress) { return builder().endpoint(endpointId).gateway(gateway).ipAddress(ipAddress).ipPrefixLen(ipPrefixLen) .ipv6Gateway(ipv6Gateway).globalIPv6Address(globalIPv6Address) .globalIPv6PrefixLen(globalIPv6PrefixLen).macAddress(macAddress) .build(); }
@SerializedNames({ "frontendIPConfiguration", "backendAddressPool", "protocol", "frontendPort", "backendPort", "probe", "enableFloatingIP", "idleTimeoutInMinutes", "loadDistribution", "provisioningState" }) public static LoadBalancingRuleProperties create(final IdReference frontendIPConfiguration, final IdReference backendAddressPool, final Protocol protocol, final int frontendPort, final int backendPort, final IdReference probe, final Boolean enableFloatingIP, final Integer idleTimeoutInMinutes, final LoadDistribution loadDistribution, final String provisioningState) { return builder().frontendIPConfiguration(frontendIPConfiguration).backendAddressPool(backendAddressPool) .protocol(protocol).frontendPort(frontendPort).backendPort(backendPort).probe(probe) .enableFloatingIP(enableFloatingIP).idleTimeoutInMinutes(idleTimeoutInMinutes) .loadDistribution(loadDistribution).build(); }