Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the MetadataPatch class.
 /// </summary>
 /// <param name="id">Fully qualified resource ID for the resource. Ex -
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource. E.g.
 /// "Microsoft.Compute/virtualMachines" or
 /// "Microsoft.Storage/storageAccounts"</param>
 /// <param name="systemData">Azure Resource Manager metadata containing
 /// createdBy and modifiedBy information.</param>
 /// <param name="etag">Etag of the azure resource</param>
 /// <param name="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</param>
 /// <param name="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)</param>
 /// <param name="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</param>
 /// <param name="kind">The kind of content the metadata is for.
 /// Possible values include: 'DataConnector', 'DataType', 'Workbook',
 /// 'WorkbookTemplate', 'Playbook', 'PlaybookTemplate',
 /// 'AnalyticsRuleTemplate', 'AnalyticsRule', 'HuntingQuery',
 /// 'InvestigationQuery', 'Parser', 'Watchlist', 'WatchlistTemplate',
 /// 'Solution'</param>
 /// <param name="source">Source of the content.  This is where/how it
 /// was created.</param>
 /// <param name="author">The creator of the content item.</param>
 /// <param name="support">Support information for the metadata - type,
 /// name, contact information</param>
 /// <param name="dependencies">Dependencies for the content item, what
 /// other content items it requires to work.  Can describe more complex
 /// dependencies using a recursive/nested structure. For a single
 /// dependency an id/kind/version can be supplied or operator/criteria
 /// for complex formats.</param>
 /// <param name="categories">Categories for the solution content
 /// item</param>
 /// <param name="providers">Providers for the solution content
 /// item</param>
 /// <param name="firstPublishDate">first publish date solution content
 /// item</param>
 /// <param name="lastPublishDate">last publish date for the solution
 /// content item</param>
 public MetadataPatch(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string etag = default(string), string contentId = default(string), string parentId = default(string), string version = default(string), string kind = default(string), MetadataSource source = default(MetadataSource), MetadataAuthor author = default(MetadataAuthor), MetadataSupport support = default(MetadataSupport), MetadataDependencies dependencies = default(MetadataDependencies), MetadataCategories categories = default(MetadataCategories), IList <string> providers = default(IList <string>), System.DateTime?firstPublishDate = default(System.DateTime?), System.DateTime?lastPublishDate = default(System.DateTime?))
     : base(id, name, type, systemData, etag)
 {
     ContentId        = contentId;
     ParentId         = parentId;
     Version          = version;
     Kind             = kind;
     Source           = source;
     Author           = author;
     Support          = support;
     Dependencies     = dependencies;
     Categories       = categories;
     Providers        = providers;
     FirstPublishDate = firstPublishDate;
     LastPublishDate  = lastPublishDate;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the MetadataPatch class.
 /// </summary>
 /// <param name="id">Fully qualified resource ID for the resource. Ex -
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource. E.g.
 /// "Microsoft.Compute/virtualMachines" or
 /// "Microsoft.Storage/storageAccounts"</param>
 /// <param name="systemData">Azure Resource Manager metadata containing
 /// createdBy and modifiedBy information.</param>
 /// <param name="etag">Etag of the azure resource</param>
 /// <param name="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</param>
 /// <param name="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)</param>
 /// <param name="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</param>
 /// <param name="kind">The kind of content the metadata is for.
 /// Possible values include: 'DataConnector', 'DataType', 'Workbook',
 /// 'WorkbookTemplate', 'Playbook', 'PlaybookTemplate',
 /// 'AnalyticsRuleTemplate', 'AnalyticsRule', 'HuntingQuery',
 /// 'InvestigationQuery', 'Parser', 'Watchlist', 'WatchlistTemplate',
 /// 'Solution', 'AzureFunction', 'LogicAppsCustomConnector',
 /// 'AutomationRule'</param>
 /// <param name="source">Source of the content.  This is where/how it
 /// was created.</param>
 /// <param name="author">The creator of the content item.</param>
 /// <param name="support">Support information for the metadata - type,
 /// name, contact information</param>
 /// <param name="dependencies">Dependencies for the content item, what
 /// other content items it requires to work.  Can describe more complex
 /// dependencies using a recursive/nested structure. For a single
 /// dependency an id/kind/version can be supplied or operator/criteria
 /// for complex formats.</param>
 /// <param name="categories">Categories for the solution content
 /// item</param>
 /// <param name="providers">Providers for the solution content
 /// item</param>
 /// <param name="firstPublishDate">first publish date solution content
 /// item</param>
 /// <param name="lastPublishDate">last publish date for the solution
 /// content item</param>
 /// <param name="customVersion">The custom version of the content. A
 /// optional free text</param>
 /// <param name="contentSchemaVersion">Schema version of the content.
 /// Can be used to distinguish between different flow based on the
 /// schema version</param>
 /// <param name="icon">the icon identifier. this id can later be
 /// fetched from the solution template</param>
 /// <param name="threatAnalysisTactics">the tactics the resource
 /// covers</param>
 /// <param name="threatAnalysisTechniques">the techniques the resource
 /// covers, these have to be aligned with the tactics being
 /// used</param>
 /// <param name="previewImages">preview image file names. These will be
 /// taken from the solution artifacts</param>
 /// <param name="previewImagesDark">preview image file names. These
 /// will be taken from the solution artifacts. used for dark theme
 /// support</param>
 public MetadataPatch(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string etag = default(string), string contentId = default(string), string parentId = default(string), string version = default(string), string kind = default(string), MetadataSource source = default(MetadataSource), MetadataAuthor author = default(MetadataAuthor), MetadataSupport support = default(MetadataSupport), MetadataDependencies dependencies = default(MetadataDependencies), MetadataCategories categories = default(MetadataCategories), IList <string> providers = default(IList <string>), System.DateTime?firstPublishDate = default(System.DateTime?), System.DateTime?lastPublishDate = default(System.DateTime?), string customVersion = default(string), string contentSchemaVersion = default(string), string icon = default(string), IList <string> threatAnalysisTactics = default(IList <string>), IList <string> threatAnalysisTechniques = default(IList <string>), IList <string> previewImages = default(IList <string>), IList <string> previewImagesDark = default(IList <string>))
     : base(id, name, type, systemData, etag)
 {
     ContentId                = contentId;
     ParentId                 = parentId;
     Version                  = version;
     Kind                     = kind;
     Source                   = source;
     Author                   = author;
     Support                  = support;
     Dependencies             = dependencies;
     Categories               = categories;
     Providers                = providers;
     FirstPublishDate         = firstPublishDate;
     LastPublishDate          = lastPublishDate;
     CustomVersion            = customVersion;
     ContentSchemaVersion     = contentSchemaVersion;
     Icon                     = icon;
     ThreatAnalysisTactics    = threatAnalysisTactics;
     ThreatAnalysisTechniques = threatAnalysisTechniques;
     PreviewImages            = previewImages;
     PreviewImagesDark        = previewImagesDark;
     CustomInit();
 }