ModelVersion
- Implements: IModelVersion
This class encapsulates and extends the ROS resource type ALIYUN::PAI::ModelVersion.
Initializers
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkpai"
alicloudroscdkpai.NewModelVersion(scope Construct, id *string, props ModelVersionProps, enableResourcePropertyConstraint *bool) ModelVersion
| Name | Type | Description |
|---|---|---|
scope | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct | No description. |
id | *string | No description. |
props | ModelVersionProps | No description. |
enableResourcePropertyConstraint | *bool | No description. |
scopeRequired
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct
idRequired
- Type: *string
propsRequired
- Type: ModelVersionProps
enableResourcePropertyConstraintOptional
- Type: *bool
Methods
| Name | Description |
|---|---|
ToString | Returns a string representation of this construct. |
Synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. |
AddCondition | No description. |
AddCount | No description. |
AddDependency | No description. |
AddResourceDesc | No description. |
ApplyRemovalPolicy | No description. |
FetchCondition | No description. |
FetchDependency | No description. |
FetchResourceDesc | No description. |
GetAtt | No description. |
SetMetadata | No description. |
ToString
func ToString() *string
Returns a string representation of this construct.
Synthesize
func Synthesize(session ISynthesisSession)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession
The synthesis session.
AddCondition
func AddCondition(condition RosCondition)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition
AddCount
func AddCount(count interface{})
- Type: interface{}
AddDependency
func AddDependency(resource Resource)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Resource
AddResourceDesc
func AddResourceDesc(desc *string)
- Type: *string
ApplyRemovalPolicy
func ApplyRemovalPolicy(policy RemovalPolicy)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy
FetchCondition
func FetchCondition() RosCondition
FetchDependency
func FetchDependency() *[]*string
FetchResourceDesc
func FetchResourceDesc() *string
GetAtt
func GetAtt(name *string) IResolvable
- Type: *string
SetMetadata
func SetMetadata(key *string, value interface{})
- Type: *string
- Type: interface{}
Static Functions
| Name | Description |
|---|---|
IsConstruct | Return whether the given object is a Construct. |
IsConstruct
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkpai"
alicloudroscdkpai.ModelVersion_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
- Type: interface{}
Properties
| Name | Type | Description |
|---|---|---|
Node | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode | The construct tree node associated with this construct. |
Env | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResourceEnvironment | The environment this resource belongs to. |
Ref | *string | No description. |
Stack | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack | The stack in which this resource is defined. |
Resource | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource | No description. |
AttrApprovalStatus | interface{} | Attribute ApprovalStatus: Admission status, with values as follows:. |
AttrExtraInfo | interface{} | Attribute ExtraInfo: Other information. |
AttrFormatType | interface{} | Attribute FormatType: Model format, possible values:. |
AttrFrameworkType | interface{} | Attribute FrameworkType: Model framework, possible values:. |
AttrGmtCreateTime | interface{} | Attribute GmtCreateTime: Create a model UTC time in the format ISO8601. |
AttrGmtModifiedTime | interface{} | Attribute GmtModifiedTime: Finally, update the model UTC time in the format iso8601. |
AttrInferenceSpec | interface{} | Attribute InferenceSpec: Describes how to apply to downstream inference services, such as processors and containers of EAS. |
AttrLabels | interface{} | Attribute Labels: List of model version labels. |
AttrMetrics | interface{} | Attribute Metrics: Model indicators. |
AttrOptions | interface{} | Attribute Options: Extension field. |
AttrOwnerId | interface{} | Attribute OwnerId: The Alibaba Cloud account ID. |
AttrSourceId | interface{} | Attribute SourceId: Source ID. |
AttrSourceType | interface{} | Attribute SourceType: Model source type, possible values:. |
AttrTrainingSpec | interface{} | Attribute TrainingSpec: Training configuration. |
AttrUri | interface{} | Attribute Uri: Model version URI, that is, the location where the model is stored. |
AttrUserId | interface{} | Attribute UserId: The user ID. |
AttrVersionDescription | interface{} | Attribute VersionDescription: Model version description. |
AttrVersionName | interface{} | Attribute VersionName: Model version. |
Props | ModelVersionProps | No description. |
NodeRequired
func Node() ConstructNode
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode
The construct tree node associated with this construct.
EnvRequired
func Env() IResourceEnvironment
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
RefRequired
func Ref() *string
- Type: *string
StackRequired
func Stack() Stack
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack
The stack in which this resource is defined.
ResourceOptional
func Resource() RosResource
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource
AttrApprovalStatusRequired
func AttrApprovalStatus() interface{}
- Type: interface{}
Attribute ApprovalStatus: Admission status, with values as follows:.
AttrExtraInfoRequired
func AttrExtraInfo() interface{}
- Type: interface{}
Attribute ExtraInfo: Other information.
AttrFormatTypeRequired
func AttrFormatType() interface{}
- Type: interface{}
Attribute FormatType: Model format, possible values:.
AttrFrameworkTypeRequired
func AttrFrameworkType() interface{}
- Type: interface{}
Attribute FrameworkType: Model framework, possible values:.
AttrGmtCreateTimeRequired
func AttrGmtCreateTime() interface{}
- Type: interface{}
Attribute GmtCreateTime: Create a model UTC time in the format ISO8601.
AttrGmtModifiedTimeRequired
func AttrGmtModifiedTime() interface{}
- Type: interface{}
Attribute GmtModifiedTime: Finally, update the model UTC time in the format iso8601.
AttrInferenceSpecRequired
func AttrInferenceSpec() interface{}
- Type: interface{}
Attribute InferenceSpec: Describes how to apply to downstream inference services, such as processors and containers of EAS.
AttrLabelsRequired
func AttrLabels() interface{}
- Type: interface{}
Attribute Labels: List of model version labels.
AttrMetricsRequired
func AttrMetrics() interface{}
- Type: interface{}
Attribute Metrics: Model indicators.
AttrOptionsRequired
func AttrOptions() interface{}
- Type: interface{}
Attribute Options: Extension field.
The JsonString type.
AttrOwnerIdRequired
func AttrOwnerId() interface{}
- Type: interface{}
Attribute OwnerId: The Alibaba Cloud account ID.
AttrSourceIdRequired
func AttrSourceId() interface{}
- Type: interface{}
Attribute SourceId: Source ID.
AttrSourceTypeRequired
func AttrSourceType() interface{}
- Type: interface{}
Attribute SourceType: Model source type, possible values:.
AttrTrainingSpecRequired
func AttrTrainingSpec() interface{}
- Type: interface{}
Attribute TrainingSpec: Training configuration.
Configuration for fine-tuning, incremental training.
AttrUriRequired
func AttrUri() interface{}
- Type: interface{}
Attribute Uri: Model version URI, that is, the location where the model is stored.
AttrUserIdRequired
func AttrUserId() interface{}
- Type: interface{}
Attribute UserId: The user ID.
AttrVersionDescriptionRequired
func AttrVersionDescription() interface{}
- Type: interface{}
Attribute VersionDescription: Model version description.
AttrVersionNameRequired
func AttrVersionName() interface{}
- Type: interface{}
Attribute VersionName: Model version.
PropsRequired
func Props() ModelVersionProps
- Type: ModelVersionProps