CloudAssembly
Represents a deployable cloud application.
Initializers
using AlibabaCloud.SDK.ROS.CDK.Cxapi;
new CloudAssembly(string Directory);
Name | Type | Description |
---|---|---|
Directory |
string |
The root directory of the assembly. |
Directory
Required
- Type: string
The root directory of the assembly.
Methods
Name | Description |
---|---|
GetNestedAssembly |
Returns a nested assembly. |
GetNestedAssemblyArtifact |
Returns a nested assembly artifact. |
GetStack |
Returns a ROS stack artifact by name from this assembly. |
GetStackArtifact |
Returns a ROS stack artifact from this assembly. |
GetStackByName |
Returns a ROS stack artifact from this assembly. |
Tree |
Returns the tree metadata artifact from this assembly. |
TryGetArtifact |
Attempts to find an artifact with a specific identity. |
GetNestedAssembly
private CloudAssembly GetNestedAssembly(string ArtifactId)
Returns a nested assembly.
- Type: string
The artifact ID of the nested assembly.
GetNestedAssemblyArtifact
private NestedCloudAssemblyArtifact GetNestedAssemblyArtifact(string ArtifactId)
Returns a nested assembly artifact.
- Type: string
The artifact ID of the nested assembly.
GetStack
private RosStackArtifact GetStack(string StackName)
Returns a ROS stack artifact by name from this assembly.
Deprecated renamed to 'getStackByName' (or 'getStackArtifact(id)')
- Type: string
GetStackArtifact
private RosStackArtifact GetStackArtifact(string ArtifactId)
Returns a ROS stack artifact from this assembly.
Param artifactId the artifact id of the stack (can be obtained through 'stack.artifactId'). Throws if there is no stack artifact with that id Returns a 'RosStackArtifact' object.
- Type: string
GetStackByName
private RosStackArtifact GetStackByName(string StackName)
Returns a ROS stack artifact from this assembly.
Will only search the current assembly.
Param stackName the name of the ROS stack. Throws if there is no stack artifact by that name Throws if there is more than one stack with the same stack name. You can use 'getStackArtifact - stack.artifactId' instead. Returns a 'RosStackArtifact' object.
- Type: string
Tree
private TreeCloudArtifact Tree()
Returns the tree metadata artifact from this assembly.
Throws if there is no metadata artifact by that name Returns a 'TreeCloudArtifact' object if there is one defined in the manifest, 'undefined' otherwise.
TryGetArtifact
private CloudArtifact TryGetArtifact(string Id)
Attempts to find an artifact with a specific identity.
Returns A 'CloudArtifact' object or 'undefined' if the artifact does not exist in this assembly. Param id The artifact ID
- Type: string
Properties
Name | Type | Description |
---|---|---|
Artifacts |
CloudArtifact[] |
All artifacts included in this assembly. |
Directory |
string |
The root directory of the cloud assembly. |
Manifest |
AlibabaCloud.SDK.ROS.CDK.Assembly.Schema.AssemblyManifest |
The raw assembly manifest. |
Runtime |
AlibabaCloud.SDK.ROS.CDK.Assembly.Schema.RuntimeInfo |
Runtime information such as module versions used to synthesize this assembly. |
Stacks |
RosStackArtifact[] |
No description. |
Version |
string |
The schema version of the assembly manifest. |
Artifacts
Required
public CloudArtifact[] Artifacts { get; }
- Type: CloudArtifact[]
All artifacts included in this assembly.
Directory
Required
public string Directory { get; }
- Type: string
The root directory of the cloud assembly.
Manifest
Required
public AssemblyManifest Manifest { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Assembly.Schema.AssemblyManifest
The raw assembly manifest.
Runtime
Required
public RuntimeInfo Runtime { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Assembly.Schema.RuntimeInfo
Runtime information such as module versions used to synthesize this assembly.
Stacks
Required
public RosStackArtifact[] Stacks { get; }
- Type: RosStackArtifact[]
Version
Required
public string Version { get; }
- Type: string
The schema version of the assembly manifest.