Class: Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::IncidentComment

Inherits:
ResourceWithEtag
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_comment.rb

Overview

Represents an incident comment

Instance Attribute Summary collapse

Attributes inherited from ResourceWithEtag

#etag, #id, #name, #type

Class Method Summary collapse

Instance Attribute Details

#authorClientInfo

Returns Describes the client that created the comment.

Returns:

  • (ClientInfo)

    Describes the client that created the comment



25
26
27
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_comment.rb', line 25

def author
  @author
end

#created_time_utcDateTime

Returns The time the comment was created.

Returns:

  • (DateTime)

    The time the comment was created



16
17
18
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_comment.rb', line 16

def created_time_utc
  @created_time_utc
end

#last_modified_time_utcDateTime

Returns The time the comment was updated.

Returns:

  • (DateTime)

    The time the comment was updated



19
20
21
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_comment.rb', line 19

def last_modified_time_utc
  @last_modified_time_utc
end

#messageString

Returns The comment message.

Returns:

  • (String)

    The comment message



22
23
24
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_comment.rb', line 22

def message
  @message
end

Class Method Details

.mapperObject

Mapper for IncidentComment class as Ruby Hash. This will be used for serialization/deserialization.



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_comment.rb', line 32

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'IncidentComment',
    type: {
      name: 'Composite',
      class_name: 'IncidentComment',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        etag: {
          client_side_validation: true,
          required: false,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        },
        created_time_utc: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.createdTimeUtc',
          type: {
            name: 'DateTime'
          }
        },
        last_modified_time_utc: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.lastModifiedTimeUtc',
          type: {
            name: 'DateTime'
          }
        },
        message: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.message',
          type: {
            name: 'String'
          }
        },
        author: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.author',
          type: {
            name: 'Composite',
            class_name: 'ClientInfo'
          }
        }
      }
    }
  }
end