public final class DiskId extends ResourceId
| Modifier and Type | Method and Description |
|---|---|
String |
disk()
Returns the name of the disk.
|
boolean |
equals(Object obj) |
int |
hashCode() |
static DiskId |
of(String zone,
String disk)
Returns a disk identity given the zone and disk names.
|
static DiskId |
of(String project,
String zone,
String disk)
Returns a disk identity given project, zone and disks names.
|
static DiskId |
of(ZoneId zoneId,
String disk)
Returns a disk identity given the zone identity and the disk name.
|
String |
selfLink()
Returns a fully qualified URL to the entity.
|
String |
zone()
Returns the name of the zone this disk belongs to.
|
ZoneId |
zoneId()
Returns the identity of the zone this disk belongs to.
|
project, toStringpublic String zone()
public ZoneId zoneId()
public String disk()
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must
be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.public String selfLink()
ResourceIdselfLink in class ResourceIdpublic static DiskId of(ZoneId zoneId, String disk)
[a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a
lowercase letter, and all following characters must be a dash, lowercase letter, or digit,
except the last character, which cannot be a dash.public static DiskId of(String zone, String disk)
[a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
and all following characters must be a dash, lowercase letter, or digit, except the last
character, which cannot be a dash.public static DiskId of(String project, String zone, String disk)
[a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a
lowercase letter, and all following characters must be a dash, lowercase letter, or digit,
except the last character, which cannot be a dash.Copyright © 2016 Google. All rights reserved.