Share via


MetadataModel Class

Definition

Metadata resource definition.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.MetadataModelTypeConverter))]
public class MetadataModel : Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.IMetadataModel, Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.MetadataModelTypeConverter))>]
type MetadataModel = class
    interface IMetadataModel
    interface IJsonSerializable
    interface IResourceWithEtag
    interface IResource
    interface IValidates
Public Class MetadataModel
Implements IMetadataModel, IValidates
Inheritance
MetadataModel
Attributes
Implements

Constructors

MetadataModel()

Creates an new MetadataModel instance.

Properties

AuthorEmail

Email of author contact

AuthorLink

Link for author/vendor page

AuthorName

Name of the author. Company or person.

CategoryDomain

domain for the solution content item

CategoryVertical

Industry verticals for the solution content item

ContentId

Static ID for the content. Used to identify dependencies and content from solutions or community. Hard-coded/static for out of the box content and solutions. Dynamic for user-created. This is the resource name

DependencyContentId

Id of the content item we depend on

DependencyCriterion

This is the list of dependencies we must fulfill, according to the AND/OR operator

DependencyKind

Type of the content item we depend on

DependencyName

Name of the content item

DependencyOperator

Operator used for list of dependencies in criteria array.

DependencyVersion

Version of the the content item we depend on. Can be blank, * or missing to indicate any version fulfills the dependency. If version does not match our defined numeric format then an exact match is required.

Etag

Etag of the azure resource

FirstPublishDate

first publish date solution content item

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

Kind

The kind of content the metadata is for.

LastPublishDate

last publish date for the solution content item

Name

The name of the resource

ParentId

Full parent resource ID of the content item the metadata is for. This is the full resource ID including the scope (subscription and resource group)

Provider

Providers for the solution content item

SourceId

ID of the content source. The solution ID, workspace ID, etc

SourceKind

Source type of the content

SourceName

Name of the content source. The repo name, solution name, LA workspace name etc.

SupportEmail

Email of support contact

SupportLink

Link for support help, like to support page to open a ticket etc.

SupportName

Name of the support contact. Company or person.

SupportTier

Type of support for content item

SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

SystemDataCreatedAt

The timestamp of resource creation (UTC).

SystemDataCreatedBy

The identity that created the resource.

SystemDataCreatedByType

The type of identity that created the resource.

SystemDataLastModifiedAt

The timestamp of resource last modification (UTC)

SystemDataLastModifiedBy

The identity that last modified the resource.

SystemDataLastModifiedByType

The type of identity that last modified the resource.

Type

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Version

Version of the content. Default and recommended format is numeric (e.g. 1, 1.0, 1.0.0, 1.0.0.0), following ARM template best practices. Can also be any string, but then we cannot guarantee any version checks

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of MetadataModel.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of MetadataModel.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.IMetadataModel.

FromJsonString(String)

Creates a new instance of MetadataModel, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of MetadataModel into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to