Class CreateAssetDetails
The information about the new asset.
Inheritance
CreateAssetDetails
Inherited Members
Namespace: Oci.CloudmigrationsService.Models
Assembly: OCI.DotNetSDK.Cloudmigrations.dll
Syntax
[JsonConverter(typeof(CreateAssetDetailsModelConverter))]
public class CreateAssetDetails
Properties
AssetSourceIds
Declaration
[JsonProperty(PropertyName = "assetSourceIds")]
public List<string> AssetSourceIds { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> | List of asset source OCID. |
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The OCID of the compartment that the asset belongs to. |
Remarks
Required
DefinedTags
Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, Dictionary<string, object>> | Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace": {"bar-key": "value"}} |
DisplayName
Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Asset display name. |
ExternalAssetKey
Declaration
[Required(ErrorMessage = "ExternalAssetKey is required.")]
[JsonProperty(PropertyName = "externalAssetKey")]
public string ExternalAssetKey { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The key of the asset from the external environment. |
Remarks
Required
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> | Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example: {"bar-key": "value"} |
InventoryId
Declaration
[Required(ErrorMessage = "InventoryId is required.")]
[JsonProperty(PropertyName = "inventoryId")]
public string InventoryId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Inventory ID to which an asset belongs. |
Remarks
Required
SourceKey
Declaration
[Required(ErrorMessage = "SourceKey is required.")]
[JsonProperty(PropertyName = "sourceKey")]
public string SourceKey { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The source key to which the asset belongs. |
Remarks
Required