Skip to content

WorkspaceResourceProps

Properties for defining a WorkspaceResource.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-pai-workspaceresource

Initializer

using AlibabaCloud.SDK.ROS.CDK.Pai;
new WorkspaceResourceProps {
    object EnvType,
    object ResourceType,
    object WorkspaceId,
    object WorkspaceResourceName,
    object GroupName = null,
    object IsDefault = null,
    object Spec = null
};

Properties

Name Type Description
EnvType object Property envType: Environment type, possible values: - dev: Development environment.
ResourceType object Property resourceType: The resource types.
WorkspaceId object Property workspaceId: The ID of the workspace to which the workspace belongs.
WorkspaceResourceName object Property workspaceResourceName: The resource name.
GroupName object Property groupName: Resource group name.
IsDefault object Property isDefault: Whether it is the default resource, each resource type has a default resource.
Spec object Property spec: Resource configuration, required for public resource groups of DLC, enter the content: {"clusterType": "share"}.

EnvTypeRequired

public object EnvType { get; set; }
  • Type: object

Property envType: Environment type, possible values: - dev: Development environment.

  • prod: Production environment.

ResourceTypeRequired

public object ResourceType { get; set; }
  • Type: object

Property resourceType: The resource types.

Valid values: MaxCompute ECS Lingjun ACS FLINK


WorkspaceIdRequired

public object WorkspaceId { get; set; }
  • Type: object

Property workspaceId: The ID of the workspace to which the workspace belongs.


WorkspaceResourceNameRequired

public object WorkspaceResourceName { get; set; }
  • Type: object

Property workspaceResourceName: The resource name.


GroupNameOptional

public object GroupName { get; set; }
  • Type: object

Property groupName: Resource group name.

If you want to obtain a resource group name, see ListResources.


IsDefaultOptional

public object IsDefault { get; set; }
  • Type: object

Property isDefault: Whether it is the default resource, each resource type has a default resource.

Possible values:

  • true: is the default resource.
  • false: Not the default resource.

SpecOptional

public object Spec { get; set; }
  • Type: object

Property spec: Resource configuration, required for public resource groups of DLC, enter the content: {"clusterType": "share"}.