Documentation
¶
Overview ¶
Manage Images. Configure Rate limits and Placement Policies
Index ¶
- type CancelPlacementTasks
- type CategoryReference
- type ClusterEntityFilter
- type ClusterIdList
- type ClusterImages
- type ClusterRateLimitStatus
- type ClusterReference
- type ComplianceStatus
- type EffectiveRateLimit
- type EnforcementMode
- type EnforcementState
- type EntityFilter
- type FilterMatchType
- type Image
- type ImageApiResponse
- type ImageCategoriesApiResponse
- type ImageChecksum
- type ImageChecksumType
- type ImageClusterLocationListApiResponse
- type ImageListApiResponse
- type ImagePlacementPolicyListApiResponse
- type ImageReference
- type ImageType
- type ImagesTaskApiResponse
- type OneOfImageApiResponseData
- type OneOfImageCategoriesApiResponseData
- type OneOfImageClusterLocationListApiResponseData
- func (p *OneOfImageClusterLocationListApiResponseData) GetValue() interface{}
- func (p *OneOfImageClusterLocationListApiResponseData) MarshalJSON() ([]byte, error)
- func (p *OneOfImageClusterLocationListApiResponseData) SetValue(v interface{}) error
- func (p *OneOfImageClusterLocationListApiResponseData) UnmarshalJSON(b []byte) error
- type OneOfImageListApiResponseData
- type OneOfImagePlacementPolicyListApiResponseData
- func (p *OneOfImagePlacementPolicyListApiResponseData) GetValue() interface{}
- func (p *OneOfImagePlacementPolicyListApiResponseData) MarshalJSON() ([]byte, error)
- func (p *OneOfImagePlacementPolicyListApiResponseData) SetValue(v interface{}) error
- func (p *OneOfImagePlacementPolicyListApiResponseData) UnmarshalJSON(b []byte) error
- type OneOfImageSource
- type OneOfImagesTaskApiResponseData
- type OneOfPlacementPolicyApiResponseData
- type OneOfPlacementPolicyListApiResponseData
- func (p *OneOfPlacementPolicyListApiResponseData) GetValue() interface{}
- func (p *OneOfPlacementPolicyListApiResponseData) MarshalJSON() ([]byte, error)
- func (p *OneOfPlacementPolicyListApiResponseData) SetValue(v interface{}) error
- func (p *OneOfPlacementPolicyListApiResponseData) UnmarshalJSON(b []byte) error
- type OneOfRateLimitApiResponseData
- type OneOfRateLimitListApiResponseData
- type OneOfRateLimitTaskListApiResponseData
- func (p *OneOfRateLimitTaskListApiResponseData) GetValue() interface{}
- func (p *OneOfRateLimitTaskListApiResponseData) MarshalJSON() ([]byte, error)
- func (p *OneOfRateLimitTaskListApiResponseData) SetValue(v interface{}) error
- func (p *OneOfRateLimitTaskListApiResponseData) UnmarshalJSON(b []byte) error
- type OneOfResolveRateLimitsApiResponseData
- func (p *OneOfResolveRateLimitsApiResponseData) GetValue() interface{}
- func (p *OneOfResolveRateLimitsApiResponseData) MarshalJSON() ([]byte, error)
- func (p *OneOfResolveRateLimitsApiResponseData) SetValue(v interface{}) error
- func (p *OneOfResolveRateLimitsApiResponseData) UnmarshalJSON(b []byte) error
- type PlacementPolicy
- type PlacementPolicyApiResponse
- type PlacementPolicyListApiResponse
- type PlacementPolicyReference
- type PlacementPolicyStatus
- type PlacementType
- type RateLimit
- type RateLimitApiResponse
- type RateLimitIdList
- type RateLimitListApiResponse
- type RateLimitTask
- type RateLimitTaskListApiResponse
- type ResolveRateLimitsApiResponse
- type UrlSource
- type VmDiskSource
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) MarshalJSON ¶
func (e *ComplianceStatus) MarshalJSON() ([]byte, error)
func (ComplianceStatus) Ref ¶
func (e ComplianceStatus) Ref() *ComplianceStatus
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) MarshalJSON ¶
func (e *EnforcementMode) MarshalJSON() ([]byte, error)
func (EnforcementMode) Ref ¶
func (e EnforcementMode) Ref() *EnforcementMode
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) MarshalJSON ¶
func (e *EnforcementState) MarshalJSON() ([]byte, error)
func (EnforcementState) Ref ¶
func (e EnforcementState) Ref() *EnforcementState
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) MarshalJSON ¶
func (e *FilterMatchType) MarshalJSON() ([]byte, error)
func (FilterMatchType) Ref ¶
func (e FilterMatchType) Ref() *FilterMatchType
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"` /** 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"` 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 (*Image) MarshalJSON ¶
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) MarshalJSON ¶
func (e *ImageChecksumType) MarshalJSON() ([]byte, error)
func (ImageChecksumType) Ref ¶
func (e ImageChecksumType) Ref() *ImageChecksumType
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.
func (*ImageType) MarshalJSON ¶
func (*ImageType) UnmarshalJSON ¶
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 (p *OneOfImageClusterLocationListApiResponseData) MarshalJSON() ([]byte, error)
func (*OneOfImageClusterLocationListApiResponseData) SetValue ¶
func (p *OneOfImageClusterLocationListApiResponseData) SetValue(v interface{}) error
func (*OneOfImageClusterLocationListApiResponseData) UnmarshalJSON ¶
func (p *OneOfImageClusterLocationListApiResponseData) UnmarshalJSON(b []byte) error
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 (p *OneOfImagePlacementPolicyListApiResponseData) MarshalJSON() ([]byte, error)
func (*OneOfImagePlacementPolicyListApiResponseData) SetValue ¶
func (p *OneOfImagePlacementPolicyListApiResponseData) SetValue(v interface{}) error
func (*OneOfImagePlacementPolicyListApiResponseData) UnmarshalJSON ¶
func (p *OneOfImagePlacementPolicyListApiResponseData) UnmarshalJSON(b []byte) error
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"` /** 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) 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"` /** 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 ¶
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 *import3.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 ¶
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)