config

package
v4.0.2-alpha.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2023 License: UNKNOWN not legal advice Imports: 8 Imported by: 0

Documentation

Overview

Configure storage entities such as containers

Index

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"`
	/**
	  Id of the storage container instance.
	*/
	ContainerId *string `json:"containerId,omitempty"`
	/**
	  Name of the storage container.
	*/
	ContainerName *string `json:"containerName"`
	/**
	  Name of the datastore.
	*/
	DatastoreName *string `json:"datastoreName,omitempty"`
	/**
	  A globally unique identifier of an instance that is suitable for external consumption.
	*/
	ExtId *string `json:"extId,omitempty"`
	/**
	  freeSpace in the datastore.
	*/
	FreeSpace *int64 `json:"freeSpace,omitempty"`
	/**
	  Uuid of the host for datastore.
	*/
	HostExtId *string `json:"hostExtId,omitempty"`
	/**
	  Uuid of the host for datastore.
	*/
	HostId *string `json:"hostId,omitempty"`
	/**
	  Ip of the host for datastore.
	*/
	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 datastore.
	*/
	VmNames []string `json:"vmNames,omitempty"`
}

func NewDataStore

func NewDataStore() *DataStore

func (*DataStore) MarshalJSON

func (p *DataStore) MarshalJSON() ([]byte, error)

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 datastore.
	*/
	DatastoreName *string `json:"datastoreName,omitempty"`
	/**
	  The Uuids of the nodes where the NFS datastore have to be created.
	*/
	NodeExtIds []string `json:"nodeExtIds,omitempty"`
	/**
	  The Zeus config ids of the nodes where the NFS datastore have to be created.
	*/
	NodeIds []string `json:"nodeIds,omitempty"`
	/**
	  if the host system have only read-only access to the NFS share (container).
	*/
	ReadOnly *bool `json:"readOnly,omitempty"`
	/**
	  The target path on which to mount the NFS datastore. KVM-only.
	*/
	TargetPath *string `json:"targetPath,omitempty"`
}

* create NFS datastores 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.a3/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.a3/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 datastore.
	*/
	DatastoreName *string `json:"datastoreName"`
	/**
	  The Uuids of the nodes where the NFS datastore have to be created.
	*/
	NodeExtIds []string `json:"nodeExtIds,omitempty"`
	/**
	  The Zeus config ids of the nodes where the NFS datastore have to be created.
	*/
	NodeIds []string `json:"nodeIds,omitempty"`
}

* create NFS datastores on the ESX hosts.

func NewDataStoreUnmount

func NewDataStoreUnmount() *DataStoreUnmount

func (*DataStoreUnmount) MarshalJSON

func (p *DataStoreUnmount) MarshalJSON() ([]byte, error)

type ErasureCodeStatus

type ErasureCodeStatus int

* Indicates possbile values for 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 (*ErasureCodeStatus) UnmarshalJSON

func (e *ErasureCodeStatus) UnmarshalJSON(b []byte) error

type FingerPrintOnWrite

type FingerPrintOnWrite int

* Indicates possbile values which 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 (*FingerPrintOnWrite) UnmarshalJSON

func (e *FingerPrintOnWrite) UnmarshalJSON(b []byte) error

type OnDiskDedup

type OnDiskDedup int

* Indicates possbile 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 container.
	*/
	AffinityHostUuid *string `json:"affinityHostUuid,omitempty"`
	/**
	  Owning cluster uuid of storage container.
	*/
	ClusterExtId *string `json:"clusterExtId,omitempty"`
	/**
	  Compression delay in seconds.
	*/
	CompressionDelayInSecs *int `json:"compressionDelayInSecs,omitempty"`
	/**
	  Whether compression is enabled.
	*/
	CompressionEnabled *bool `json:"compressionEnabled,omitempty"`
	/**
	  Uuid of the storage container.
	*/
	ContainerExtId *string `json:"containerExtId,omitempty"`
	/**
	  Id of the storage container instance.
	*/
	ContainerId *string `json:"containerId,omitempty"`
	/**
	  Map of down migrate time in seconds for random io preference tier.
	*/
	DownMigrateTimesInSecs map[string]int `json:"downMigrateTimesInSecs,omitempty"`
	/**
	  Whether container to enable software encryption.
	*/
	EnableSoftwareEncryption *bool `json:"enableSoftwareEncryption,omitempty"`
	/**
	  Whether 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"`
	/**
	  Whether inline erasure coding is enabled.
	*/
	InlineEcEnabled *bool `json:"inlineEcEnabled,omitempty"`
	/**
	  Whether Nfs whitelist inherited from global config.
	*/
	IsNfsWhitelistInherited *bool `json:"isNfsWhitelistInherited,omitempty"`
	/**
	  Whether 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 containers.
	*/
	MappedRemoteContainers map[string]string `json:"mappedRemoteContainers,omitempty"`
	/**
	  Whether 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"`
	/**
	  Uuid of the storage container.
	*/
	OwnerUuid *string `json:"ownerUuid,omitempty"`
	/**
	  Whether to prefer 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 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 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.a3/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.a3/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.a3/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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL