Class CreateNewsReportDetails
The information about the news report to be created.
Inherited Members
Namespace: Oci.OpsiService.Models
Assembly: OCI.DotNetSDK.Opsi.dll
Syntax
public class CreateNewsReportDetailsProperties
AreChildCompartmentsIncluded
Declaration
[JsonProperty(PropertyName = "areChildCompartmentsIncluded")]
public bool? AreChildCompartmentsIncluded { get; set; }Property Value
| Type | Description | 
|---|---|
| bool? | A flag to consider the resources within a given compartment and all sub-compartments. | 
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }Property Value
| Type | Description | 
|---|---|
| string | Compartment Identifier where the news report will be created. | 
Remarks
Required
ContentTypes
Declaration
[Required(ErrorMessage = "ContentTypes is required.")]
[JsonProperty(PropertyName = "contentTypes")]
public NewsContentTypes ContentTypes { get; set; }Property Value
| Type | Description | 
|---|---|
| NewsContentTypes | 
Remarks
Required
DayOfWeek
Declaration
[JsonProperty(PropertyName = "dayOfWeek")]
[JsonConverter(typeof(StringEnumConverter))]
public DayOfWeek? DayOfWeek { get; set; }Property Value
| Type | Description | 
|---|---|
| DayOfWeek? | Day of the week in which the news report will be sent if the frequency is set to WEEKLY. | 
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"}} | 
Description
Declaration
[Required(ErrorMessage = "Description is required.")]
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }Property Value
| Type | Description | 
|---|---|
| string | The description of the news report. | 
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. Exists for cross-compatibility only. Example: {"bar-key": "value"} | 
Locale
Declaration
[Required(ErrorMessage = "Locale is required.")]
[JsonProperty(PropertyName = "locale")]
[JsonConverter(typeof(StringEnumConverter))]
public NewsLocale? Locale { get; set; }Property Value
| Type | Description | 
|---|---|
| NewsLocale? | Language of the news report. | 
Remarks
Required
MatchRule
Declaration
[JsonProperty(PropertyName = "matchRule")]
[JsonConverter(typeof(StringEnumConverter))]
public MatchRule? MatchRule { get; set; }Property Value
| Type | Description | 
|---|---|
| MatchRule? | Match rule used for tag filters. | 
Name
Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }Property Value
| Type | Description | 
|---|---|
| string | The news report name. | 
Remarks
Required
NewsFrequency
Declaration
[Required(ErrorMessage = "NewsFrequency is required.")]
[JsonProperty(PropertyName = "newsFrequency")]
[JsonConverter(typeof(StringEnumConverter))]
public NewsFrequency? NewsFrequency { get; set; }Property Value
| Type | Description | 
|---|---|
| NewsFrequency? | News report frequency. | 
Remarks
Required
OnsTopicId
Declaration
[Required(ErrorMessage = "OnsTopicId is required.")]
[JsonProperty(PropertyName = "onsTopicId")]
public string OnsTopicId { get; set; }Property Value
| Type | Description | 
|---|---|
| string | The OCID of the ONS topic. | 
Remarks
Required
Status
Declaration
[JsonProperty(PropertyName = "status")]
[JsonConverter(typeof(StringEnumConverter))]
public ResourceStatus? Status { get; set; }Property Value
| Type | Description | 
|---|---|
| ResourceStatus? | Defines if the news report will be enabled or disabled. | 
TagFilters
Declaration
[JsonProperty(PropertyName = "tagFilters")]
public List<string> TagFilters { get; set; }Property Value
| Type | Description | 
|---|---|
| List<string> |