public static final class Protos.Offer.Operation.CreateDisk extends com.google.protobuf.GeneratedMessageV3 implements Protos.Offer.Operation.CreateDiskOrBuilder
Create a `MOUNT` or `BLOCK` disk resource backed by a CSI volume from a `RAW` disk resource. In the typical case where the `RAW` disk resource has a profile and no source ID, a new CSI volume will be provisioned by Mesos to back the returned `MOUNT` or `BLOCK` disk resource. However, the `RAW` disk resource can instead have no profile but a source ID, indicating that it is already backed by a CSI volume in one of the following scenarios: (1) The CSI volume is preprovisioned out-of-band. (2) The CSI volume is provisioned by Mesos, but Mesos has lost the corresponding `MOUNT` or `BLOCK` resource metadata. This could happen if there has been a change in the agent ID or resource provider ID where the volume belongs. In the above cases, Mesos won't provision a new CSI volume, but instead will simply return a `MOUNT` or `BLOCK` disk resource backed by the same CSI volume, with the profile specified in this call. NOTE: For the time being, this API is subject to change and the related feature is experimental.Protobuf type
mesos.Offer.Operation.CreateDisk
Modifier and Type | Class and Description |
---|---|
static class |
Protos.Offer.Operation.CreateDisk.Builder
Create a `MOUNT` or `BLOCK` disk resource backed by a CSI volume from a
`RAW` disk resource.
|
Modifier and Type | Field and Description |
---|---|
static <any> |
PARSER
Deprecated.
|
static int |
SOURCE_FIELD_NUMBER |
static int |
TARGET_PROFILE_FIELD_NUMBER |
static int |
TARGET_TYPE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.Offer.Operation.CreateDisk |
getDefaultInstance() |
Protos.Offer.Operation.CreateDisk |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
<any> |
getParserForType() |
int |
getSerializedSize() |
Protos.Resource |
getSource()
required .mesos.Resource source = 1; |
Protos.ResourceOrBuilder |
getSourceOrBuilder()
required .mesos.Resource source = 1; |
java.lang.String |
getTargetProfile()
Apply the specified profile to the created disk.
|
com.google.protobuf.ByteString |
getTargetProfileBytes()
Apply the specified profile to the created disk.
|
Protos.Resource.DiskInfo.Source.Type |
getTargetType()
NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasSource()
required .mesos.Resource source = 1; |
boolean |
hasTargetProfile()
Apply the specified profile to the created disk.
|
boolean |
hasTargetType()
NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.Offer.Operation.CreateDisk.Builder |
newBuilder() |
static Protos.Offer.Operation.CreateDisk.Builder |
newBuilder(Protos.Offer.Operation.CreateDisk prototype) |
Protos.Offer.Operation.CreateDisk.Builder |
newBuilderForType() |
protected Protos.Offer.Operation.CreateDisk.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.Offer.Operation.CreateDisk |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.Offer.Operation.CreateDisk |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Offer.Operation.CreateDisk |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Offer.Operation.CreateDisk |
parseFrom(java.nio.ByteBuffer data) |
static Protos.Offer.Operation.CreateDisk |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Offer.Operation.CreateDisk |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.Offer.Operation.CreateDisk |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Offer.Operation.CreateDisk |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.Offer.Operation.CreateDisk |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Offer.Operation.CreateDisk |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.Offer.Operation.CreateDisk.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int SOURCE_FIELD_NUMBER
public static final int TARGET_TYPE_FIELD_NUMBER
public static final int TARGET_PROFILE_FIELD_NUMBER
@Deprecated public static final <any> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public boolean hasSource()
required .mesos.Resource source = 1;
hasSource
in interface Protos.Offer.Operation.CreateDiskOrBuilder
public Protos.Resource getSource()
required .mesos.Resource source = 1;
getSource
in interface Protos.Offer.Operation.CreateDiskOrBuilder
public Protos.ResourceOrBuilder getSourceOrBuilder()
required .mesos.Resource source = 1;
getSourceOrBuilder
in interface Protos.Offer.Operation.CreateDiskOrBuilder
public boolean hasTargetType()
NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
required .mesos.Resource.DiskInfo.Source.Type target_type = 2;
hasTargetType
in interface Protos.Offer.Operation.CreateDiskOrBuilder
public Protos.Resource.DiskInfo.Source.Type getTargetType()
NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
required .mesos.Resource.DiskInfo.Source.Type target_type = 2;
getTargetType
in interface Protos.Offer.Operation.CreateDiskOrBuilder
public boolean hasTargetProfile()
Apply the specified profile to the created disk. This field must be set if `source` does not have a profile, and must not be set if it has one. NOTE: The operation will fail If the specified profile is unknown to Mesos, i.e., not reported by the disk profile adaptor.
optional string target_profile = 3;
hasTargetProfile
in interface Protos.Offer.Operation.CreateDiskOrBuilder
public java.lang.String getTargetProfile()
Apply the specified profile to the created disk. This field must be set if `source` does not have a profile, and must not be set if it has one. NOTE: The operation will fail If the specified profile is unknown to Mesos, i.e., not reported by the disk profile adaptor.
optional string target_profile = 3;
getTargetProfile
in interface Protos.Offer.Operation.CreateDiskOrBuilder
public com.google.protobuf.ByteString getTargetProfileBytes()
Apply the specified profile to the created disk. This field must be set if `source` does not have a profile, and must not be set if it has one. NOTE: The operation will fail If the specified profile is unknown to Mesos, i.e., not reported by the disk profile adaptor.
optional string target_profile = 3;
getTargetProfileBytes
in interface Protos.Offer.Operation.CreateDiskOrBuilder
public final boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
java.io.IOException
public int getSerializedSize()
public boolean equals(java.lang.Object obj)
public int hashCode()
public static Protos.Offer.Operation.CreateDisk parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Offer.Operation.CreateDisk parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Offer.Operation.CreateDisk parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Offer.Operation.CreateDisk parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Offer.Operation.CreateDisk parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Offer.Operation.CreateDisk parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Offer.Operation.CreateDisk parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Offer.Operation.CreateDisk parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Offer.Operation.CreateDisk parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Offer.Operation.CreateDisk parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.Offer.Operation.CreateDisk.Builder newBuilderForType()
public static Protos.Offer.Operation.CreateDisk.Builder newBuilder()
public static Protos.Offer.Operation.CreateDisk.Builder newBuilder(Protos.Offer.Operation.CreateDisk prototype)
public Protos.Offer.Operation.CreateDisk.Builder toBuilder()
protected Protos.Offer.Operation.CreateDisk.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.Offer.Operation.CreateDisk getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.Offer.Operation.CreateDisk getDefaultInstanceForType()