images

package
v4.0.3-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: UNKNOWN not legal advice Imports: 9 Imported by: 0

Documentation

Overview

Manage Images. Configure Rate limits and Placement Policies

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelPlacementTasks

type CancelPlacementTasks struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*
	  Boolean to indicate if tasks running to enforce image placement policy should be suspended.
	*/
	CancelRunningTasks *bool `json:"cancelRunningTasks,omitempty"`
}

Indicates whether the tasks running to enforce policy should be canceled. These would be checkout and uncheckout tasks to placement remove images from the cluster(s).

func NewCancelPlacementTasks

func NewCancelPlacementTasks() *CancelPlacementTasks

type CategoryReference

type CategoryReference struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`

	ExtId *string `json:"extId"`
}

Reference to a category.

func NewCategoryReference

func NewCategoryReference() *CategoryReference

func (*CategoryReference) MarshalJSON

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

type ClusterEntityFilter

type ClusterEntityFilter struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*
	  A list of category key and list of values.
	*/
	Params map[string][]string `json:"params"`

	Type *FilterMatchType `json:"type"`
}

Category based Cluster filter.

func NewClusterEntityFilter

func NewClusterEntityFilter() *ClusterEntityFilter

func (*ClusterEntityFilter) MarshalJSON

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

type ClusterIdList

type ClusterIdList struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*
	  List of cluster extIds.
	*/
	ClusterIds []string `json:"clusterIds,omitempty"`
}

List of cluster extIds.

func NewClusterIdList

func NewClusterIdList() *ClusterIdList

type ClusterImages

type ClusterImages struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`

	ClusterExtId *string `json:"clusterExtId"`

	ImagesExtIds []string `json:"imagesExtIds"`
}

Reference to a Prism Element cluster and respective retained images.

func NewClusterImages

func NewClusterImages() *ClusterImages

func (*ClusterImages) MarshalJSON

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

type ClusterRateLimitStatus

type ClusterRateLimitStatus struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*
	  Cluster extId.
	*/
	ClusterId *string `json:"clusterId,omitempty"`
	/*
	  Image rate limit extId currently enforced for a cluster.
	*/
	EffectiveRateLimitId *string `json:"effectiveRateLimitId,omitempty"`
	/*
	  The currently enforced rate limit for a cluster in KBps.
	*/
	EffectiveRateLimitKbps *int `json:"effectiveRateLimitKbps,omitempty"`
	/*
	  Name of the image rate limit currently enforced for a cluster.
	*/
	EffectiveRateLimitName *string `json:"effectiveRateLimitName,omitempty"`
}

Cluster image rate limit status.

func NewClusterRateLimitStatus

func NewClusterRateLimitStatus() *ClusterRateLimitStatus

type ClusterReference

type ClusterReference struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`

	ExtId *string `json:"extId"`
}

Reference to a cluster.

func NewClusterReference

func NewClusterReference() *ClusterReference

func (*ClusterReference) MarshalJSON

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

type ComplianceStatus

type ComplianceStatus int

Compliance status for a placement policy.

const (
	COMPLIANCESTATUS_UNKNOWN       ComplianceStatus = 0
	COMPLIANCESTATUS_REDACTED      ComplianceStatus = 1
	COMPLIANCESTATUS_COMPLIANT     ComplianceStatus = 2
	COMPLIANCESTATUS_NON_COMPLIANT ComplianceStatus = 3
)

func (ComplianceStatus) GetName

func (e ComplianceStatus) GetName() string

Returns the name of the enum

func (*ComplianceStatus) MarshalJSON

func (e *ComplianceStatus) MarshalJSON() ([]byte, error)

func (ComplianceStatus) Ref

func (*ComplianceStatus) UnmarshalJSON

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

type EffectiveRateLimit

type EffectiveRateLimit struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`

	ClusterId *string `json:"clusterId,omitempty"`

	RateLimit *RateLimit `json:"rateLimit,omitempty"`
}

The enforced rate limit on cluster when multiple image rate limit policies apply.

func NewEffectiveRateLimit

func NewEffectiveRateLimit() *EffectiveRateLimit

type EnforcementMode

type EnforcementMode int

Indicates whether placement policy enforcement is ongoing or has failed.

const (
	ENFORCEMENTMODE_UNKNOWN            EnforcementMode = 0
	ENFORCEMENTMODE_REDACTED           EnforcementMode = 1
	ENFORCEMENTMODE_ENFORCING          EnforcementMode = 2
	ENFORCEMENTMODE_ENFORCEMENT_FAILED EnforcementMode = 3
)

func (EnforcementMode) GetName

func (e EnforcementMode) GetName() string

Returns the name of the enum

func (*EnforcementMode) MarshalJSON

func (e *EnforcementMode) MarshalJSON() ([]byte, error)

func (EnforcementMode) Ref

func (*EnforcementMode) UnmarshalJSON

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

type EnforcementState

type EnforcementState int

Enforcement status of the image placement policy.

const (
	ENFORCEMENTSTATE_UNKNOWN   EnforcementState = 0
	ENFORCEMENTSTATE_REDACTED  EnforcementState = 1
	ENFORCEMENTSTATE_ACTIVE    EnforcementState = 2
	ENFORCEMENTSTATE_SUSPENDED EnforcementState = 3
)

func (EnforcementState) GetName

func (e EnforcementState) GetName() string

Returns the name of the enum

func (*EnforcementState) MarshalJSON

func (e *EnforcementState) MarshalJSON() ([]byte, error)

func (EnforcementState) Ref

func (*EnforcementState) UnmarshalJSON

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

type EntityFilter

type EntityFilter struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*
	  A list of category key and list of values.
	*/
	Params map[string][]string `json:"params"`

	Type *FilterMatchType `json:"type"`
}

Category-based entity filter.

func NewEntityFilter

func NewEntityFilter() *EntityFilter

func (*EntityFilter) MarshalJSON

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

type FilterMatchType

type FilterMatchType int

The matching done by the filter.

const (
	FILTERMATCHTYPE_UNKNOWN              FilterMatchType = 0
	FILTERMATCHTYPE_REDACTED             FilterMatchType = 1
	FILTERMATCHTYPE_CATEGORIES_MATCH_ANY FilterMatchType = 2
	FILTERMATCHTYPE_CATEGORIES_MATCH_ALL FilterMatchType = 3
)

func (FilterMatchType) GetName

func (e FilterMatchType) GetName() string

Returns the name of the enum

func (*FilterMatchType) MarshalJSON

func (e *FilterMatchType) MarshalJSON() ([]byte, error)

func (FilterMatchType) Ref

func (*FilterMatchType) UnmarshalJSON

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

type Image

type Image struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*
	  Categories for an image.
	*/
	Categories []CategoryReference `json:"categories,omitempty"`

	Checksum *ImageChecksum `json:"checksum,omitempty"`

	Description *string `json:"description,omitempty"`
	/*
	  A globally unique identifier of an instance that is suitable for external consumption.
	*/
	ExtId *string `json:"extId,omitempty"`
	/*
	  Cluster details for the image location.
	*/
	InitialClusterLocations []ClusterReference `json:"initialClusterLocations,omitempty"`
	/*
	  Last update time of an image.
	*/
	LastUpdateTime *time.Time `json:"lastUpdateTime,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"`

	Metadata *import2.Metadata `json:"metadata,omitempty"`

	Name *string `json:"name"`
	/*
	  The size in bytes of an image file.
	*/
	SizeBytes *int64 `json:"sizeBytes,omitempty"`

	SourceItemDiscriminator_ *string `json:"$sourceItemDiscriminator,omitempty"`
	/*
	  The source of an image. It can be a VM disk or a URL. If not mentioned, the image will be inactive until a file is uploaded for it.
	*/
	Source *OneOfImageSource `json:"source,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"`

	Type *ImageType `json:"type"`
}

func NewImage

func NewImage() *Image

func (*Image) MarshalJSON

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

type ImageApiResponse

type ImageApiResponse 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 *OneOfImageApiResponseData `json:"data,omitempty"`

	Metadata *import1.ApiResponseMetadata `json:"metadata,omitempty"`
}

REST response for all response codes in API path /vmm/v4.0.a1/images/{extId} Get operation

func NewImageApiResponse

func NewImageApiResponse() *ImageApiResponse

func (*ImageApiResponse) GetData

func (p *ImageApiResponse) GetData() interface{}

func (*ImageApiResponse) SetData

func (p *ImageApiResponse) SetData(v interface{}) error

type ImageCategoriesApiResponse

type ImageCategoriesApiResponse 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 *OneOfImageCategoriesApiResponseData `json:"data,omitempty"`

	Metadata *import1.ApiResponseMetadata `json:"metadata,omitempty"`
}

REST response for all response codes in API path /vmm/v4.0.a1/images/{extId}/categories Get operation

func NewImageCategoriesApiResponse

func NewImageCategoriesApiResponse() *ImageCategoriesApiResponse

func (*ImageCategoriesApiResponse) GetData

func (p *ImageCategoriesApiResponse) GetData() interface{}

func (*ImageCategoriesApiResponse) SetData

func (p *ImageCategoriesApiResponse) SetData(v interface{}) error

type ImageChecksum

type ImageChecksum struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`

	HexDigest *string `json:"hexDigest"`

	Type *ImageChecksumType `json:"type"`
}

The checksum of an image.

func NewImageChecksum

func NewImageChecksum() *ImageChecksum

func (*ImageChecksum) MarshalJSON

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

type ImageChecksumType

type ImageChecksumType int

The checksum algorithm of an image.

const (
	IMAGECHECKSUMTYPE_UNKNOWN  ImageChecksumType = 0
	IMAGECHECKSUMTYPE_REDACTED ImageChecksumType = 1
	IMAGECHECKSUMTYPE_SHA_256  ImageChecksumType = 2
	IMAGECHECKSUMTYPE_SHA_1    ImageChecksumType = 3
)

func (ImageChecksumType) GetName

func (e ImageChecksumType) GetName() string

Returns the name of the enum

func (*ImageChecksumType) MarshalJSON

func (e *ImageChecksumType) MarshalJSON() ([]byte, error)

func (ImageChecksumType) Ref

func (*ImageChecksumType) UnmarshalJSON

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

type ImageClusterLocationListApiResponse

type ImageClusterLocationListApiResponse 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 *OneOfImageClusterLocationListApiResponseData `json:"data,omitempty"`

	Metadata *import1.ApiResponseMetadata `json:"metadata,omitempty"`
}

REST response for all response codes in API path /vmm/v4.0.a1/images/{extId}/cluster-locations Get operation

func NewImageClusterLocationListApiResponse

func NewImageClusterLocationListApiResponse() *ImageClusterLocationListApiResponse

func (*ImageClusterLocationListApiResponse) GetData

func (p *ImageClusterLocationListApiResponse) GetData() interface{}

func (*ImageClusterLocationListApiResponse) SetData

func (p *ImageClusterLocationListApiResponse) SetData(v interface{}) error

type ImageListApiResponse

type ImageListApiResponse 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 *OneOfImageListApiResponseData `json:"data,omitempty"`

	Metadata *import1.ApiResponseMetadata `json:"metadata,omitempty"`
}

REST response for all response codes in API path /vmm/v4.0.a1/images Get operation

func NewImageListApiResponse

func NewImageListApiResponse() *ImageListApiResponse

func (*ImageListApiResponse) GetData

func (p *ImageListApiResponse) GetData() interface{}

func (*ImageListApiResponse) SetData

func (p *ImageListApiResponse) SetData(v interface{}) error

type ImagePlacementPolicyListApiResponse

type ImagePlacementPolicyListApiResponse 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 *OneOfImagePlacementPolicyListApiResponseData `json:"data,omitempty"`

	Metadata *import1.ApiResponseMetadata `json:"metadata,omitempty"`
}

REST response for all response codes in API path /vmm/v4.0.a1/images/{extId}/placement-policies Get operation

func NewImagePlacementPolicyListApiResponse

func NewImagePlacementPolicyListApiResponse() *ImagePlacementPolicyListApiResponse

func (*ImagePlacementPolicyListApiResponse) GetData

func (p *ImagePlacementPolicyListApiResponse) GetData() interface{}

func (*ImagePlacementPolicyListApiResponse) SetData

func (p *ImagePlacementPolicyListApiResponse) SetData(v interface{}) error

type ImageReference

type ImageReference struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`

	ExtId *string `json:"extId"`
}

Reference to an image.

func NewImageReference

func NewImageReference() *ImageReference

func (*ImageReference) MarshalJSON

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

type ImageType

type ImageType int

The type of an image.

const (
	IMAGETYPE_UNKNOWN    ImageType = 0
	IMAGETYPE_REDACTED   ImageType = 1
	IMAGETYPE_DISK_IMAGE ImageType = 2
	IMAGETYPE_ISO_IMAGE  ImageType = 3
)

func (ImageType) GetName

func (e ImageType) GetName() string

Returns the name of the enum

func (*ImageType) MarshalJSON

func (e *ImageType) MarshalJSON() ([]byte, error)

func (ImageType) Ref

func (e ImageType) Ref() *ImageType

func (*ImageType) UnmarshalJSON

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

type ImagesTaskApiResponse

type ImagesTaskApiResponse 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 *OneOfImagesTaskApiResponseData `json:"data,omitempty"`

	Metadata *import1.ApiResponseMetadata `json:"metadata,omitempty"`
}

REST response for all response codes in API path /vmm/v4.0.a1/images/{extId}/categories Put operation

func NewImagesTaskApiResponse

func NewImagesTaskApiResponse() *ImagesTaskApiResponse

func (*ImagesTaskApiResponse) GetData

func (p *ImagesTaskApiResponse) GetData() interface{}

func (*ImagesTaskApiResponse) SetData

func (p *ImagesTaskApiResponse) SetData(v interface{}) error

type OneOfImageApiResponseData

type OneOfImageApiResponseData struct {
	Discriminator *string `json:"-"`
	ObjectType_   *string `json:"-"`
	// contains filtered or unexported fields
}

func NewOneOfImageApiResponseData

func NewOneOfImageApiResponseData() *OneOfImageApiResponseData

func (*OneOfImageApiResponseData) GetValue

func (p *OneOfImageApiResponseData) GetValue() interface{}

func (*OneOfImageApiResponseData) MarshalJSON

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

func (*OneOfImageApiResponseData) SetValue

func (p *OneOfImageApiResponseData) SetValue(v interface{}) error

func (*OneOfImageApiResponseData) UnmarshalJSON

func (p *OneOfImageApiResponseData) UnmarshalJSON(b []byte) error

type OneOfImageCategoriesApiResponseData

type OneOfImageCategoriesApiResponseData struct {
	Discriminator *string `json:"-"`
	ObjectType_   *string `json:"-"`
	// contains filtered or unexported fields
}

func NewOneOfImageCategoriesApiResponseData

func NewOneOfImageCategoriesApiResponseData() *OneOfImageCategoriesApiResponseData

func (*OneOfImageCategoriesApiResponseData) GetValue

func (p *OneOfImageCategoriesApiResponseData) GetValue() interface{}

func (*OneOfImageCategoriesApiResponseData) MarshalJSON

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

func (*OneOfImageCategoriesApiResponseData) SetValue

func (p *OneOfImageCategoriesApiResponseData) SetValue(v interface{}) error

func (*OneOfImageCategoriesApiResponseData) UnmarshalJSON

func (p *OneOfImageCategoriesApiResponseData) UnmarshalJSON(b []byte) error

type OneOfImageClusterLocationListApiResponseData

type OneOfImageClusterLocationListApiResponseData struct {
	Discriminator *string `json:"-"`
	ObjectType_   *string `json:"-"`
	// contains filtered or unexported fields
}

func NewOneOfImageClusterLocationListApiResponseData

func NewOneOfImageClusterLocationListApiResponseData() *OneOfImageClusterLocationListApiResponseData

func (*OneOfImageClusterLocationListApiResponseData) GetValue

func (p *OneOfImageClusterLocationListApiResponseData) GetValue() interface{}

func (*OneOfImageClusterLocationListApiResponseData) MarshalJSON

func (*OneOfImageClusterLocationListApiResponseData) SetValue

func (p *OneOfImageClusterLocationListApiResponseData) SetValue(v interface{}) error

func (*OneOfImageClusterLocationListApiResponseData) UnmarshalJSON

type OneOfImageListApiResponseData

type OneOfImageListApiResponseData struct {
	Discriminator *string `json:"-"`
	ObjectType_   *string `json:"-"`
	// contains filtered or unexported fields
}

func NewOneOfImageListApiResponseData

func NewOneOfImageListApiResponseData() *OneOfImageListApiResponseData

func (*OneOfImageListApiResponseData) GetValue

func (p *OneOfImageListApiResponseData) GetValue() interface{}

func (*OneOfImageListApiResponseData) MarshalJSON

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

func (*OneOfImageListApiResponseData) SetValue

func (p *OneOfImageListApiResponseData) SetValue(v interface{}) error

func (*OneOfImageListApiResponseData) UnmarshalJSON

func (p *OneOfImageListApiResponseData) UnmarshalJSON(b []byte) error

type OneOfImagePlacementPolicyListApiResponseData

type OneOfImagePlacementPolicyListApiResponseData struct {
	Discriminator *string `json:"-"`
	ObjectType_   *string `json:"-"`
	// contains filtered or unexported fields
}

func NewOneOfImagePlacementPolicyListApiResponseData

func NewOneOfImagePlacementPolicyListApiResponseData() *OneOfImagePlacementPolicyListApiResponseData

func (*OneOfImagePlacementPolicyListApiResponseData) GetValue

func (p *OneOfImagePlacementPolicyListApiResponseData) GetValue() interface{}

func (*OneOfImagePlacementPolicyListApiResponseData) MarshalJSON

func (*OneOfImagePlacementPolicyListApiResponseData) SetValue

func (p *OneOfImagePlacementPolicyListApiResponseData) SetValue(v interface{}) error

func (*OneOfImagePlacementPolicyListApiResponseData) UnmarshalJSON

type OneOfImageSource

type OneOfImageSource struct {
	Discriminator *string `json:"-"`
	ObjectType_   *string `json:"-"`
	// contains filtered or unexported fields
}

func NewOneOfImageSource

func NewOneOfImageSource() *OneOfImageSource

func (*OneOfImageSource) GetValue

func (p *OneOfImageSource) GetValue() interface{}

func (*OneOfImageSource) MarshalJSON

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

func (*OneOfImageSource) SetValue

func (p *OneOfImageSource) SetValue(v interface{}) error

func (*OneOfImageSource) UnmarshalJSON

func (p *OneOfImageSource) UnmarshalJSON(b []byte) error

type OneOfImagesTaskApiResponseData

type OneOfImagesTaskApiResponseData struct {
	Discriminator *string `json:"-"`
	ObjectType_   *string `json:"-"`
	// contains filtered or unexported fields
}

func NewOneOfImagesTaskApiResponseData

func NewOneOfImagesTaskApiResponseData() *OneOfImagesTaskApiResponseData

func (*OneOfImagesTaskApiResponseData) GetValue

func (p *OneOfImagesTaskApiResponseData) GetValue() interface{}

func (*OneOfImagesTaskApiResponseData) MarshalJSON

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

func (*OneOfImagesTaskApiResponseData) SetValue

func (p *OneOfImagesTaskApiResponseData) SetValue(v interface{}) error

func (*OneOfImagesTaskApiResponseData) UnmarshalJSON

func (p *OneOfImagesTaskApiResponseData) UnmarshalJSON(b []byte) error

type OneOfPlacementPolicyApiResponseData

type OneOfPlacementPolicyApiResponseData struct {
	Discriminator *string `json:"-"`
	ObjectType_   *string `json:"-"`
	// contains filtered or unexported fields
}

func NewOneOfPlacementPolicyApiResponseData

func NewOneOfPlacementPolicyApiResponseData() *OneOfPlacementPolicyApiResponseData

func (*OneOfPlacementPolicyApiResponseData) GetValue

func (p *OneOfPlacementPolicyApiResponseData) GetValue() interface{}

func (*OneOfPlacementPolicyApiResponseData) MarshalJSON

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

func (*OneOfPlacementPolicyApiResponseData) SetValue

func (p *OneOfPlacementPolicyApiResponseData) SetValue(v interface{}) error

func (*OneOfPlacementPolicyApiResponseData) UnmarshalJSON

func (p *OneOfPlacementPolicyApiResponseData) UnmarshalJSON(b []byte) error

type OneOfPlacementPolicyListApiResponseData

type OneOfPlacementPolicyListApiResponseData struct {
	Discriminator *string `json:"-"`
	ObjectType_   *string `json:"-"`
	// contains filtered or unexported fields
}

func NewOneOfPlacementPolicyListApiResponseData

func NewOneOfPlacementPolicyListApiResponseData() *OneOfPlacementPolicyListApiResponseData

func (*OneOfPlacementPolicyListApiResponseData) GetValue

func (p *OneOfPlacementPolicyListApiResponseData) GetValue() interface{}

func (*OneOfPlacementPolicyListApiResponseData) MarshalJSON

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

func (*OneOfPlacementPolicyListApiResponseData) SetValue

func (p *OneOfPlacementPolicyListApiResponseData) SetValue(v interface{}) error

func (*OneOfPlacementPolicyListApiResponseData) UnmarshalJSON

func (p *OneOfPlacementPolicyListApiResponseData) UnmarshalJSON(b []byte) error

type OneOfRateLimitApiResponseData

type OneOfRateLimitApiResponseData struct {
	Discriminator *string `json:"-"`
	ObjectType_   *string `json:"-"`
	// contains filtered or unexported fields
}

func NewOneOfRateLimitApiResponseData

func NewOneOfRateLimitApiResponseData() *OneOfRateLimitApiResponseData

func (*OneOfRateLimitApiResponseData) GetValue

func (p *OneOfRateLimitApiResponseData) GetValue() interface{}

func (*OneOfRateLimitApiResponseData) MarshalJSON

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

func (*OneOfRateLimitApiResponseData) SetValue

func (p *OneOfRateLimitApiResponseData) SetValue(v interface{}) error

func (*OneOfRateLimitApiResponseData) UnmarshalJSON

func (p *OneOfRateLimitApiResponseData) UnmarshalJSON(b []byte) error

type OneOfRateLimitListApiResponseData

type OneOfRateLimitListApiResponseData struct {
	Discriminator *string `json:"-"`
	ObjectType_   *string `json:"-"`
	// contains filtered or unexported fields
}

func NewOneOfRateLimitListApiResponseData

func NewOneOfRateLimitListApiResponseData() *OneOfRateLimitListApiResponseData

func (*OneOfRateLimitListApiResponseData) GetValue

func (p *OneOfRateLimitListApiResponseData) GetValue() interface{}

func (*OneOfRateLimitListApiResponseData) MarshalJSON

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

func (*OneOfRateLimitListApiResponseData) SetValue

func (p *OneOfRateLimitListApiResponseData) SetValue(v interface{}) error

func (*OneOfRateLimitListApiResponseData) UnmarshalJSON

func (p *OneOfRateLimitListApiResponseData) UnmarshalJSON(b []byte) error

type OneOfRateLimitTaskListApiResponseData

type OneOfRateLimitTaskListApiResponseData struct {
	Discriminator *string `json:"-"`
	ObjectType_   *string `json:"-"`
	// contains filtered or unexported fields
}

func NewOneOfRateLimitTaskListApiResponseData

func NewOneOfRateLimitTaskListApiResponseData() *OneOfRateLimitTaskListApiResponseData

func (*OneOfRateLimitTaskListApiResponseData) GetValue

func (p *OneOfRateLimitTaskListApiResponseData) GetValue() interface{}

func (*OneOfRateLimitTaskListApiResponseData) MarshalJSON

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

func (*OneOfRateLimitTaskListApiResponseData) SetValue

func (p *OneOfRateLimitTaskListApiResponseData) SetValue(v interface{}) error

func (*OneOfRateLimitTaskListApiResponseData) UnmarshalJSON

func (p *OneOfRateLimitTaskListApiResponseData) UnmarshalJSON(b []byte) error

type OneOfResolveRateLimitsApiResponseData

type OneOfResolveRateLimitsApiResponseData struct {
	Discriminator *string `json:"-"`
	ObjectType_   *string `json:"-"`
	// contains filtered or unexported fields
}

func NewOneOfResolveRateLimitsApiResponseData

func NewOneOfResolveRateLimitsApiResponseData() *OneOfResolveRateLimitsApiResponseData

func (*OneOfResolveRateLimitsApiResponseData) GetValue

func (p *OneOfResolveRateLimitsApiResponseData) GetValue() interface{}

func (*OneOfResolveRateLimitsApiResponseData) MarshalJSON

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

func (*OneOfResolveRateLimitsApiResponseData) SetValue

func (p *OneOfResolveRateLimitsApiResponseData) SetValue(v interface{}) error

func (*OneOfResolveRateLimitsApiResponseData) UnmarshalJSON

func (p *OneOfResolveRateLimitsApiResponseData) UnmarshalJSON(b []byte) error

type PlacementPolicy

type PlacementPolicy struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`

	ClusterEntityFilter *EntityFilter `json:"clusterEntityFilter"`
	/*
	  Description of the image placement policy.
	*/
	Description *string `json:"description,omitempty"`

	EnforcementState *EnforcementState `json:"enforcementState,omitempty"`
	/*
	  A globally unique identifier of an instance that is suitable for external consumption.
	*/
	ExtId *string `json:"extId,omitempty"`

	ImageEntityFilter *EntityFilter `json:"imageEntityFilter"`
	/*
	  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"`

	Metadata *import2.Metadata `json:"metadata,omitempty"`
	/*
	  Name of the image placement policy.
	*/
	Name *string `json:"name"`

	PlacementType *PlacementType `json:"placementType"`
	/*
	  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"`
}

func NewPlacementPolicy

func NewPlacementPolicy() *PlacementPolicy

func (*PlacementPolicy) MarshalJSON

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

type PlacementPolicyApiResponse

type PlacementPolicyApiResponse 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 *OneOfPlacementPolicyApiResponseData `json:"data,omitempty"`

	Metadata *import1.ApiResponseMetadata `json:"metadata,omitempty"`
}

REST response for all response codes in API path /vmm/v4.0.a1/images/placement-policies/{extId} Get operation

func NewPlacementPolicyApiResponse

func NewPlacementPolicyApiResponse() *PlacementPolicyApiResponse

func (*PlacementPolicyApiResponse) GetData

func (p *PlacementPolicyApiResponse) GetData() interface{}

func (*PlacementPolicyApiResponse) SetData

func (p *PlacementPolicyApiResponse) SetData(v interface{}) error

type PlacementPolicyListApiResponse

type PlacementPolicyListApiResponse 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 *OneOfPlacementPolicyListApiResponseData `json:"data,omitempty"`

	Metadata *import1.ApiResponseMetadata `json:"metadata,omitempty"`
}

REST response for all response codes in API path /vmm/v4.0.a1/images/placement-policies Get operation

func NewPlacementPolicyListApiResponse

func NewPlacementPolicyListApiResponse() *PlacementPolicyListApiResponse

func (*PlacementPolicyListApiResponse) GetData

func (p *PlacementPolicyListApiResponse) GetData() interface{}

func (*PlacementPolicyListApiResponse) SetData

func (p *PlacementPolicyListApiResponse) SetData(v interface{}) error

type PlacementPolicyReference

type PlacementPolicyReference struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`

	ExtId *string `json:"extId"`
}

Reference to a placement policy.

func NewPlacementPolicyReference

func NewPlacementPolicyReference() *PlacementPolicyReference

func (*PlacementPolicyReference) MarshalJSON

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

type PlacementPolicyStatus

type PlacementPolicyStatus struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`

	ComplianceStatus *ComplianceStatus `json:"complianceStatus"`
	/*
	  Placement policies that conflict with the current one.
	*/
	ConflictingPolicies []PlacementPolicyReference `json:"conflictingPolicies,omitempty"`
	/*
	  Clusters for the enforced placement policy.
	*/
	EnforcedClusters []ClusterReference `json:"enforcedClusters,omitempty"`

	EnforcementMode *EnforcementMode `json:"enforcementMode"`

	ExtId *string `json:"extId"`
	/*
	  Clusters details of the image location for the enforced placement policy.
	*/
	PolicyClusters []ClusterReference `json:"policyClusters,omitempty"`
}

Status of an image placement policy.

func NewPlacementPolicyStatus

func NewPlacementPolicyStatus() *PlacementPolicyStatus

func (*PlacementPolicyStatus) MarshalJSON

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

type PlacementType

type PlacementType int

Type of the image placement policy.

const (
	PLACEMENTTYPE_UNKNOWN  PlacementType = 0
	PLACEMENTTYPE_REDACTED PlacementType = 1
	PLACEMENTTYPE_AT_LEAST PlacementType = 2
	PLACEMENTTYPE_EXACTLY  PlacementType = 3
)

func (PlacementType) GetName

func (e PlacementType) GetName() string

Returns the name of the enum

func (*PlacementType) MarshalJSON

func (e *PlacementType) MarshalJSON() ([]byte, error)

func (PlacementType) Ref

func (e PlacementType) Ref() *PlacementType

func (*PlacementType) UnmarshalJSON

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

type RateLimit

type RateLimit struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`

	ClusterEntityFilter *ClusterEntityFilter `json:"clusterEntityFilter"`
	/*
	  Image rate limit status of each affected cluster.
	*/
	ClusterStatusList []ClusterRateLimitStatus `json:"clusterStatusList,omitempty"`
	/*
	  A description for the current image rate limit.
	*/
	Description *string `json:"description,omitempty"`
	/*
	  A globally unique identifier of an instance that is suitable for external consumption.
	*/
	ExtId *string `json:"extId,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"`

	Metadata *import2.Metadata `json:"metadata,omitempty"`
	/*
	  Name of the image rate limit policy.
	*/
	Name *string `json:"name"`
	/*
	  Network bandwidth in KBps that the rate limited image operation can utilize.
	*/
	RateLimitKbps *int `json:"rateLimitKbps"`
	/*
	  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 cluster extIds matched by the policy which do not support image rate limits.
	*/
	UnsupportedClustersIdList []string `json:"unsupportedClustersIdList,omitempty"`
}

func NewRateLimit

func NewRateLimit() *RateLimit

func (*RateLimit) MarshalJSON

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

type RateLimitApiResponse

type RateLimitApiResponse 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 *OneOfRateLimitApiResponseData `json:"data,omitempty"`

	Metadata *import1.ApiResponseMetadata `json:"metadata,omitempty"`
}

REST response for all response codes in API path /vmm/v4.0.a1/images/rate-limits/{extId} Get operation

func NewRateLimitApiResponse

func NewRateLimitApiResponse() *RateLimitApiResponse

func (*RateLimitApiResponse) GetData

func (p *RateLimitApiResponse) GetData() interface{}

func (*RateLimitApiResponse) SetData

func (p *RateLimitApiResponse) SetData(v interface{}) error

type RateLimitIdList

type RateLimitIdList struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*
	  List of image rate limits extIds.
	*/
	RateLimitIds []string `json:"rateLimitIds,omitempty"`
}

List of image rate limits extIds.

func NewRateLimitIdList

func NewRateLimitIdList() *RateLimitIdList

type RateLimitListApiResponse

type RateLimitListApiResponse 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 *OneOfRateLimitListApiResponseData `json:"data,omitempty"`

	Metadata *import1.ApiResponseMetadata `json:"metadata,omitempty"`
}

REST response for all response codes in API path /vmm/v4.0.a1/images/rate-limits Get operation

func NewRateLimitListApiResponse

func NewRateLimitListApiResponse() *RateLimitListApiResponse

func (*RateLimitListApiResponse) GetData

func (p *RateLimitListApiResponse) GetData() interface{}

func (*RateLimitListApiResponse) SetData

func (p *RateLimitListApiResponse) SetData(v interface{}) error

type RateLimitTask

type RateLimitTask struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*
	  Image rate limit extId.
	*/
	RateLimitId *string `json:"rateLimitId,omitempty"`

	TaskReference *import4.TaskReference `json:"taskReference,omitempty"`
}

Object with a rate limit and task extIds.

func NewRateLimitTask

func NewRateLimitTask() *RateLimitTask

type RateLimitTaskListApiResponse

type RateLimitTaskListApiResponse 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 *OneOfRateLimitTaskListApiResponseData `json:"data,omitempty"`

	Metadata *import1.ApiResponseMetadata `json:"metadata,omitempty"`
}

REST response for all response codes in API path /vmm/v4.0.a1/images/rate-limits/$actions/delete Post operation

func NewRateLimitTaskListApiResponse

func NewRateLimitTaskListApiResponse() *RateLimitTaskListApiResponse

func (*RateLimitTaskListApiResponse) GetData

func (p *RateLimitTaskListApiResponse) GetData() interface{}

func (*RateLimitTaskListApiResponse) SetData

func (p *RateLimitTaskListApiResponse) SetData(v interface{}) error

type ResolveRateLimitsApiResponse

type ResolveRateLimitsApiResponse 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 *OneOfResolveRateLimitsApiResponseData `json:"data,omitempty"`

	Metadata *import1.ApiResponseMetadata `json:"metadata,omitempty"`
}

REST response for all response codes in API path /vmm/v4.0.a1/images/rate-limits/$actions/resolve Post operation

func NewResolveRateLimitsApiResponse

func NewResolveRateLimitsApiResponse() *ResolveRateLimitsApiResponse

func (*ResolveRateLimitsApiResponse) GetData

func (p *ResolveRateLimitsApiResponse) GetData() interface{}

func (*ResolveRateLimitsApiResponse) SetData

func (p *ResolveRateLimitsApiResponse) SetData(v interface{}) error

type UrlSource

type UrlSource struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*
	  Ignore the certificate errors, if the value is true. Default is false.
	*/
	AllowInsecure *bool `json:"allowInsecure,omitempty"`

	Url *string `json:"url"`
}

URL for creating an image.

func NewUrlSource

func NewUrlSource() *UrlSource

func (*UrlSource) MarshalJSON

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

type VmDiskSource

type VmDiskSource struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`

	ExtId *string `json:"extId"`
}

VM disk for creating an image. VM disk extId is available from the `disks` list in VMs APIs.

func NewVmDiskSource

func NewVmDiskSource() *VmDiskSource

func (*VmDiskSource) MarshalJSON

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

Jump to

Keyboard shortcuts

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