Documentation
¶
Overview ¶
Configure storage entities such as containers
Index ¶
- type DataStore
- type DataStoreMount
- type DataStoreResponse
- type DataStoreTaskResponse
- type DataStoreUnmount
- type ErasureCodeStatus
- type FingerPrintOnWrite
- type OnDiskDedup
- type OneOfDataStoreResponseData
- type OneOfDataStoreTaskResponseData
- type OneOfStorageContainerResponseData
- type OneOfStorageContainerTaskResponseData
- func (p *OneOfStorageContainerTaskResponseData) GetValue() interface{}
- func (p *OneOfStorageContainerTaskResponseData) MarshalJSON() ([]byte, error)
- func (p *OneOfStorageContainerTaskResponseData) SetValue(v interface{}) error
- func (p *OneOfStorageContainerTaskResponseData) UnmarshalJSON(b []byte) error
- type OneOfStorageContainersResponseData
- type StorageContainer
- type StorageContainerResponse
- type StorageContainerTaskResponse
- type StorageContainersResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataStore ¶
type DataStore struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** Maximum capacity of the Storage container. */ Capacity *int64 `json:"capacity,omitempty"` /** Uuid of the Storage container. */ ContainerExtId *string `json:"containerExtId,omitempty"` /** Storage container instance Id. */ ContainerId *string `json:"containerId,omitempty"` /** Name of the Storage container. */ ContainerName *string `json:"containerName"` /** Name of the Data Store. */ DatastoreName *string `json:"datastoreName,omitempty"` /** A globally unique identifier of an instance that is suitable for external consumption. */ ExtId *string `json:"extId,omitempty"` /** The free space in the Data Store. */ FreeSpace *int64 `json:"freeSpace,omitempty"` /** ExtId of the host for Data Store. */ HostExtId *string `json:"hostExtId,omitempty"` /** Uuid of the host for Data Store. */ HostId *string `json:"hostId,omitempty"` /** Host IP for Data Store. */ HostIpAddress *string `json:"hostIpAddress,omitempty"` /** A HATEOAS style link for the response. Each link contains a user friendly name identifying the link and an address for retrieving the particular resource. */ Links []import1.ApiLink `json:"links,omitempty"` /** A globally unique identifier that represents the tenant that owns this entity. It is automatically assigned by the system and is immutable from an API consumer perspective (some use cases may cause this Id to change - for instance a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). */ TenantId *string `json:"tenantId,omitempty"` /** List of VMs name in the Data Store. */ VmNames []string `json:"vmNames,omitempty"` }
func NewDataStore ¶
func NewDataStore() *DataStore
func (*DataStore) MarshalJSON ¶
type DataStoreMount ¶
type DataStoreMount struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** Name of the Storage container. */ ContainerName *string `json:"containerName"` /** Name of the Data Store. */ DatastoreName *string `json:"datastoreName,omitempty"` /** The uuids of the nodes where the NFS Data Store have to be created. */ NodeExtIds []string `json:"nodeExtIds,omitempty"` /** The Zeus config Ids of the nodes where the NFS Data Store has to be created. */ NodeIds []string `json:"nodeIds,omitempty"` /** Indicates if the host system has only the read-only access to the NFS share. */ ReadOnly *bool `json:"readOnly,omitempty"` /** The target path on which to mount the NFS Data Store. */ TargetPath *string `json:"targetPath,omitempty"` }
* create NFS Data Stores on the ESX hosts.
func NewDataStoreMount ¶
func NewDataStoreMount() *DataStoreMount
func (*DataStoreMount) MarshalJSON ¶
func (p *DataStoreMount) MarshalJSON() ([]byte, error)
type DataStoreResponse ¶
type DataStoreResponse struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** */ DataItemDiscriminator_ *string `json:"$dataItemDiscriminator,omitempty"` Data *OneOfDataStoreResponseData `json:"data,omitempty"` Metadata *import1.ApiResponseMetadata `json:"metadata,omitempty"` }
* REST response for all response codes in api path /storage/v4.0.a2/config/storage-containers/datastores Get operation
func NewDataStoreResponse ¶
func NewDataStoreResponse() *DataStoreResponse
func (*DataStoreResponse) GetData ¶
func (p *DataStoreResponse) GetData() interface{}
func (*DataStoreResponse) SetData ¶
func (p *DataStoreResponse) SetData(v interface{}) error
type DataStoreTaskResponse ¶
type DataStoreTaskResponse struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** */ DataItemDiscriminator_ *string `json:"$dataItemDiscriminator,omitempty"` Data *OneOfDataStoreTaskResponseData `json:"data,omitempty"` Metadata *import1.ApiResponseMetadata `json:"metadata,omitempty"` }
* REST response for all response codes in api path /storage/v4.0.a2/config/storage-containers/{containerExtId}/$actions/unmount Post operation
func NewDataStoreTaskResponse ¶
func NewDataStoreTaskResponse() *DataStoreTaskResponse
func (*DataStoreTaskResponse) GetData ¶
func (p *DataStoreTaskResponse) GetData() interface{}
func (*DataStoreTaskResponse) SetData ¶
func (p *DataStoreTaskResponse) SetData(v interface{}) error
type DataStoreUnmount ¶
type DataStoreUnmount struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** Name of the Data Store. */ DatastoreName *string `json:"datastoreName"` /** The uuids of the nodes where the NFS Data Store have to be created. */ NodeExtIds []string `json:"nodeExtIds,omitempty"` /** The Zeus config Ids of the nodes where the NFS Data Store has to be created. */ NodeIds []string `json:"nodeIds,omitempty"` }
* create NFS Data Stores on the ESX hosts.
func NewDataStoreUnmount ¶
func NewDataStoreUnmount() *DataStoreUnmount
func (*DataStoreUnmount) MarshalJSON ¶
func (p *DataStoreUnmount) MarshalJSON() ([]byte, error)
type ErasureCodeStatus ¶
type ErasureCodeStatus int
* Indicates the possible values for the erasure code.
const ( ERASURECODESTATUS_UNKNOWN ErasureCodeStatus = 0 ERASURECODESTATUS_REDACTED ErasureCodeStatus = 1 ERASURECODESTATUS_NONE ErasureCodeStatus = 2 ERASURECODESTATUS_FALSE ErasureCodeStatus = 3 ERASURECODESTATUS_TRUE ErasureCodeStatus = 4 )
func (*ErasureCodeStatus) MarshalJSON ¶
func (e *ErasureCodeStatus) MarshalJSON() ([]byte, error)
func (ErasureCodeStatus) Ref ¶
func (e ErasureCodeStatus) Ref() *ErasureCodeStatus
func (*ErasureCodeStatus) UnmarshalJSON ¶
func (e *ErasureCodeStatus) UnmarshalJSON(b []byte) error
type FingerPrintOnWrite ¶
type FingerPrintOnWrite int
* Indicates the possible values that can be set to finger print on write.
const ( FINGERPRINTONWRITE_UNKNOWN FingerPrintOnWrite = 0 FINGERPRINTONWRITE_REDACTED FingerPrintOnWrite = 1 FINGERPRINTONWRITE_NONE FingerPrintOnWrite = 2 FINGERPRINTONWRITE_FALSE FingerPrintOnWrite = 3 FINGERPRINTONWRITE_TRUE FingerPrintOnWrite = 4 )
func (*FingerPrintOnWrite) MarshalJSON ¶
func (e *FingerPrintOnWrite) MarshalJSON() ([]byte, error)
func (FingerPrintOnWrite) Ref ¶
func (e FingerPrintOnWrite) Ref() *FingerPrintOnWrite
func (*FingerPrintOnWrite) UnmarshalJSON ¶
func (e *FingerPrintOnWrite) UnmarshalJSON(b []byte) error
type OnDiskDedup ¶
type OnDiskDedup int
* Indicates the possible values for on disk deduplication.
const ( ONDISKDEDUP_UNKNOWN OnDiskDedup = 0 ONDISKDEDUP_REDACTED OnDiskDedup = 1 ONDISKDEDUP_NONE OnDiskDedup = 2 ONDISKDEDUP_FALSE OnDiskDedup = 3 ONDISKDEDUP_POST_PROCESS OnDiskDedup = 4 )
func (*OnDiskDedup) MarshalJSON ¶
func (e *OnDiskDedup) MarshalJSON() ([]byte, error)
func (OnDiskDedup) Ref ¶
func (e OnDiskDedup) Ref() *OnDiskDedup
func (*OnDiskDedup) UnmarshalJSON ¶
func (e *OnDiskDedup) UnmarshalJSON(b []byte) error
type OneOfDataStoreResponseData ¶
type OneOfDataStoreResponseData struct { Discriminator *string `json:"-"` ObjectType_ *string `json:"-"` // contains filtered or unexported fields }
func NewOneOfDataStoreResponseData ¶
func NewOneOfDataStoreResponseData() *OneOfDataStoreResponseData
func (*OneOfDataStoreResponseData) GetValue ¶
func (p *OneOfDataStoreResponseData) GetValue() interface{}
func (*OneOfDataStoreResponseData) MarshalJSON ¶
func (p *OneOfDataStoreResponseData) MarshalJSON() ([]byte, error)
func (*OneOfDataStoreResponseData) SetValue ¶
func (p *OneOfDataStoreResponseData) SetValue(v interface{}) error
func (*OneOfDataStoreResponseData) UnmarshalJSON ¶
func (p *OneOfDataStoreResponseData) UnmarshalJSON(b []byte) error
type OneOfDataStoreTaskResponseData ¶
type OneOfDataStoreTaskResponseData struct { Discriminator *string `json:"-"` ObjectType_ *string `json:"-"` // contains filtered or unexported fields }
func NewOneOfDataStoreTaskResponseData ¶
func NewOneOfDataStoreTaskResponseData() *OneOfDataStoreTaskResponseData
func (*OneOfDataStoreTaskResponseData) GetValue ¶
func (p *OneOfDataStoreTaskResponseData) GetValue() interface{}
func (*OneOfDataStoreTaskResponseData) MarshalJSON ¶
func (p *OneOfDataStoreTaskResponseData) MarshalJSON() ([]byte, error)
func (*OneOfDataStoreTaskResponseData) SetValue ¶
func (p *OneOfDataStoreTaskResponseData) SetValue(v interface{}) error
func (*OneOfDataStoreTaskResponseData) UnmarshalJSON ¶
func (p *OneOfDataStoreTaskResponseData) UnmarshalJSON(b []byte) error
type OneOfStorageContainerResponseData ¶
type OneOfStorageContainerResponseData struct { Discriminator *string `json:"-"` ObjectType_ *string `json:"-"` // contains filtered or unexported fields }
func NewOneOfStorageContainerResponseData ¶
func NewOneOfStorageContainerResponseData() *OneOfStorageContainerResponseData
func (*OneOfStorageContainerResponseData) GetValue ¶
func (p *OneOfStorageContainerResponseData) GetValue() interface{}
func (*OneOfStorageContainerResponseData) MarshalJSON ¶
func (p *OneOfStorageContainerResponseData) MarshalJSON() ([]byte, error)
func (*OneOfStorageContainerResponseData) SetValue ¶
func (p *OneOfStorageContainerResponseData) SetValue(v interface{}) error
func (*OneOfStorageContainerResponseData) UnmarshalJSON ¶
func (p *OneOfStorageContainerResponseData) UnmarshalJSON(b []byte) error
type OneOfStorageContainerTaskResponseData ¶
type OneOfStorageContainerTaskResponseData struct { Discriminator *string `json:"-"` ObjectType_ *string `json:"-"` // contains filtered or unexported fields }
func NewOneOfStorageContainerTaskResponseData ¶
func NewOneOfStorageContainerTaskResponseData() *OneOfStorageContainerTaskResponseData
func (*OneOfStorageContainerTaskResponseData) GetValue ¶
func (p *OneOfStorageContainerTaskResponseData) GetValue() interface{}
func (*OneOfStorageContainerTaskResponseData) MarshalJSON ¶
func (p *OneOfStorageContainerTaskResponseData) MarshalJSON() ([]byte, error)
func (*OneOfStorageContainerTaskResponseData) SetValue ¶
func (p *OneOfStorageContainerTaskResponseData) SetValue(v interface{}) error
func (*OneOfStorageContainerTaskResponseData) UnmarshalJSON ¶
func (p *OneOfStorageContainerTaskResponseData) UnmarshalJSON(b []byte) error
type OneOfStorageContainersResponseData ¶
type OneOfStorageContainersResponseData struct { Discriminator *string `json:"-"` ObjectType_ *string `json:"-"` // contains filtered or unexported fields }
func NewOneOfStorageContainersResponseData ¶
func NewOneOfStorageContainersResponseData() *OneOfStorageContainersResponseData
func (*OneOfStorageContainersResponseData) GetValue ¶
func (p *OneOfStorageContainersResponseData) GetValue() interface{}
func (*OneOfStorageContainersResponseData) MarshalJSON ¶
func (p *OneOfStorageContainersResponseData) MarshalJSON() ([]byte, error)
func (*OneOfStorageContainersResponseData) SetValue ¶
func (p *OneOfStorageContainersResponseData) SetValue(v interface{}) error
func (*OneOfStorageContainersResponseData) UnmarshalJSON ¶
func (p *OneOfStorageContainersResponseData) UnmarshalJSON(b []byte) error
type StorageContainer ¶
type StorageContainer struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** Total advertised capacity of the Storage container. */ AdvertisedCapacity *int64 `json:"advertisedCapacity,omitempty"` /** Affinity host Id for RF 1 Storage container. */ AffinityHostUuid *string `json:"affinityHostUuid,omitempty"` /** Owning cluster uuid of ctorage Container. */ ClusterExtId *string `json:"clusterExtId,omitempty"` /** The compression delay in seconds. */ CompressionDelayInSecs *int `json:"compressionDelayInSecs,omitempty"` /** Indicates whether the compression is enabled. */ CompressionEnabled *bool `json:"compressionEnabled,omitempty"` /** Uuid of the Storage container. */ ContainerExtId *string `json:"containerExtId,omitempty"` /** Storage container instance Id. */ ContainerId *string `json:"containerId,omitempty"` /** Migrate down time in seconds for random IO preference tier. */ DownMigrateTimesInSecs map[string]int `json:"downMigrateTimesInSecs,omitempty"` /** Indicates whether the Storage container has enabled software encryption. */ EnableSoftwareEncryption *bool `json:"enableSoftwareEncryption,omitempty"` /** Indicates whether the Storage container is encrypted or not. */ Encrypted *bool `json:"encrypted,omitempty"` ErasureCode *ErasureCodeStatus `json:"erasureCode,omitempty"` /** Erasure code delay in seconds. */ ErasureCodeDelaySecs *int `json:"erasureCodeDelaySecs,omitempty"` /** A globally unique identifier of an instance that is suitable for external consumption. */ ExtId *string `json:"extId,omitempty"` FingerPrintOnWrite *FingerPrintOnWrite `json:"fingerPrintOnWrite,omitempty"` /** Indicates whether the inline erasure coding is enabled. */ InlineEcEnabled *bool `json:"inlineEcEnabled,omitempty"` /** Indicates whether the NFS whitelist is inherited from global config. */ IsNfsWhitelistInherited *bool `json:"isNfsWhitelistInherited,omitempty"` /** Indicates whether the Storage container is managed by Nutanix. */ IsNutanixManaged *bool `json:"isNutanixManaged,omitempty"` /** A HATEOAS style link for the response. Each link contains a user friendly name identifying the link and an address for retrieving the particular resource. */ Links []import1.ApiLink `json:"links,omitempty"` /** Map of remote Storage containers. */ MappedRemoteContainers map[string]string `json:"mappedRemoteContainers,omitempty"` /** Indicates whether the Storage container is marked for removal. */ MarkedForRemoval *bool `json:"markedForRemoval,omitempty"` /** Maximum capacity of the Storage container. */ MaxCapacity *int64 `json:"maxCapacity,omitempty"` /** Name of the Storage container. */ Name *string `json:"name"` /** List of NFS addresses which needs to be whitelisted. */ NfsWhitelistAddress []import2.IPAddressOrFQDN `json:"nfsWhitelistAddress,omitempty"` OnDiskDedup *OnDiskDedup `json:"onDiskDedup,omitempty"` /** Oplog replication factor of the Storage container. */ OplogReplicationFactor *int `json:"oplogReplicationFactor,omitempty"` /** Id of the owner. */ OwnerUuid *string `json:"ownerUuid,omitempty"` /** Indicates whether to prefer a higher erasure code fault domain. */ PreferHigherECFaultDomain *bool `json:"preferHigherECFaultDomain,omitempty"` /** List of random IO preference tier. */ RandomIoPreference []string `json:"randomIoPreference,omitempty"` /** Replication factor of the Storage container. */ ReplicationFactor *int `json:"replicationFactor,omitempty"` /** List of sequential IO preference tier. */ SeqIoPreference []string `json:"seqIoPreference,omitempty"` /** Owning storage pool uuid of the Storage container instance. */ StoragePoolUuid *string `json:"storagePoolUuid,omitempty"` /** A globally unique identifier that represents the tenant that owns this entity. It is automatically assigned by the system and is immutable from an API consumer perspective (some use cases may cause this Id to change - for instance a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). */ TenantId *string `json:"tenantId,omitempty"` /** Total explicit reserved capacity of the Storage container. */ TotalExplicitReservedCapacity *int64 `json:"totalExplicitReservedCapacity,omitempty"` /** Total implicit reserved capacity of the Storage container. */ TotalImplicitReservedCapacity *int64 `json:"totalImplicitReservedCapacity,omitempty"` /** List of volume stores in the Storage container. */ VstoreNameList []string `json:"vstoreNameList,omitempty"` }
func NewStorageContainer ¶
func NewStorageContainer() *StorageContainer
func (*StorageContainer) MarshalJSON ¶
func (p *StorageContainer) MarshalJSON() ([]byte, error)
type StorageContainerResponse ¶
type StorageContainerResponse struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** */ DataItemDiscriminator_ *string `json:"$dataItemDiscriminator,omitempty"` Data *OneOfStorageContainerResponseData `json:"data,omitempty"` Metadata *import1.ApiResponseMetadata `json:"metadata,omitempty"` }
* REST response for all response codes in api path /storage/v4.0.a2/config/storage-containers/{containerExtId} Get operation
func NewStorageContainerResponse ¶
func NewStorageContainerResponse() *StorageContainerResponse
func (*StorageContainerResponse) GetData ¶
func (p *StorageContainerResponse) GetData() interface{}
func (*StorageContainerResponse) SetData ¶
func (p *StorageContainerResponse) SetData(v interface{}) error
type StorageContainerTaskResponse ¶
type StorageContainerTaskResponse struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** */ DataItemDiscriminator_ *string `json:"$dataItemDiscriminator,omitempty"` Data *OneOfStorageContainerTaskResponseData `json:"data,omitempty"` Metadata *import1.ApiResponseMetadata `json:"metadata,omitempty"` }
* REST response for all response codes in api path /storage/v4.0.a2/config/storage-containers/{containerExtId}/$actions/mount Post operation
func NewStorageContainerTaskResponse ¶
func NewStorageContainerTaskResponse() *StorageContainerTaskResponse
func (*StorageContainerTaskResponse) GetData ¶
func (p *StorageContainerTaskResponse) GetData() interface{}
func (*StorageContainerTaskResponse) SetData ¶
func (p *StorageContainerTaskResponse) SetData(v interface{}) error
type StorageContainersResponse ¶
type StorageContainersResponse struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** */ DataItemDiscriminator_ *string `json:"$dataItemDiscriminator,omitempty"` Data *OneOfStorageContainersResponseData `json:"data,omitempty"` Metadata *import1.ApiResponseMetadata `json:"metadata,omitempty"` }
* REST response for all response codes in api path /storage/v4.0.a2/config/storage-containers Get operation
func NewStorageContainersResponse ¶
func NewStorageContainersResponse() *StorageContainersResponse
func (*StorageContainersResponse) GetData ¶
func (p *StorageContainersResponse) GetData() interface{}
func (*StorageContainersResponse) SetData ¶
func (p *StorageContainersResponse) SetData(v interface{}) error