@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({ "timeGrain", "retention" }) public static MetricDefinition.MetricAvailability create(String timeGrain, String retention) { return new AutoValue_MetricDefinition_MetricAvailability(timeGrain, retention); } }
@SerializedNames({"timeStamp", "total", "average", "minimum", "maximum", "count"}) public static MetricData create(final Date timeStamp, final Double total, final Double average, final Double minimum, final Double maximum, final Long count) { return new AutoValue_MetricData(timeStamp, total, average, minimum, maximum, count); } }
@SerializedNames({ "code", "level", "displayStatus", "message", "time" }) public static Status create(final String code, final String level, final String displayStatus, final String message, final Date time) { return new AutoValue_Status(code, level, displayStatus, message, time); } }
@SerializedNames({"path", "keyData"}) public static SSHPublicKey create(final String path, final String keyData) { return new AutoValue_OSProfile_LinuxConfiguration_SSH_SSHPublicKey( path, keyData); } }
@SerializedNames({"disablePasswordAuthentication", "ssh"}) public static LinuxConfiguration create(final String disablePasswordAuthentication, final SSH ssh) { return new AutoValue_OSProfile_LinuxConfiguration(disablePasswordAuthentication, ssh); } }
@SerializedNames({"protocol", "certificateUrl"}) public static ProtocolListener create(final Protocol protocol, final String certificateUrl) { return new AutoValue_OSProfile_WindowsConfiguration_WinRM_ProtocolListener( protocol, certificateUrl); } }
@SerializedNames({"listeners"}) public static WinRM create(final List<ProtocolListener> listeners) { return new AutoValue_OSProfile_WindowsConfiguration_WinRM(listeners == null ? ImmutableList.<ProtocolListener>of() : ImmutableList.copyOf(listeners)); } }
@SerializedNames({"provisionVMAgent", "winRM", "additionalUnattendContent", "enableAutomaticUpdates"}) public static WindowsConfiguration create(final boolean provisionVMAgent, final WinRM winRM, final List<AdditionalUnattendContent> additionalUnattendContent, final boolean enableAutomaticUpdates) { return new AutoValue_OSProfile_WindowsConfiguration(provisionVMAgent, winRM, additionalUnattendContent, enableAutomaticUpdates); } }
@SerializedNames({ "id", "name", "location", "tags", "properties", "etag" }) public static NetworkSecurityGroup create(final String id, final String name, final String location, final Map<String, String> tags, final NetworkSecurityGroupProperties properties, final String etag) { return new AutoValue_NetworkSecurityGroup(id, name, location, (tags == null) ? null : ImmutableMap.copyOf(tags), properties, etag); } }