Skip to content

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.

DirectoryRequired

  • 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.

ArtifactIdRequired

  • Type: string

The artifact ID of the nested assembly.


GetNestedAssemblyArtifact

private NestedCloudAssemblyArtifact GetNestedAssemblyArtifact(string ArtifactId)

Returns a nested assembly artifact.

ArtifactIdRequired

  • 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)')

StackNameRequired

  • 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.

ArtifactIdRequired

  • 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.

StackNameRequired

  • 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

IdRequired

  • 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.

ArtifactsRequired

public CloudArtifact[] Artifacts { get; }

All artifacts included in this assembly.


DirectoryRequired

public string Directory { get; }
  • Type: string

The root directory of the cloud assembly.


ManifestRequired

public AssemblyManifest Manifest { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Assembly.Schema.AssemblyManifest

The raw assembly manifest.


RuntimeRequired

public RuntimeInfo Runtime { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Assembly.Schema.RuntimeInfo

Runtime information such as module versions used to synthesize this assembly.


StacksRequired

public RosStackArtifact[] Stacks { get; }

VersionRequired

public string Version { get; }
  • Type: string

The schema version of the assembly manifest.