Class: Azure::Support::Mgmt::V2020_04_01::Models::CommunicationDetails

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-04-01/generated/azure_mgmt_support/models/communication_details.rb

Overview

Object that represents a Communication resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#bodyString

Returns Body of the communication.

Returns:

  • (String)

    Body of the communication.



41
42
43
# File 'lib/2020-04-01/generated/azure_mgmt_support/models/communication_details.rb', line 41

def body
  @body
end

#communication_directionCommunicationDirection

values include: ‘inbound’, ‘outbound’

Returns:



31
32
33
# File 'lib/2020-04-01/generated/azure_mgmt_support/models/communication_details.rb', line 31

def communication_direction
  @communication_direction
end

#communication_typeCommunicationType

include: ‘web’, ‘phone’

Returns:



27
28
29
# File 'lib/2020-04-01/generated/azure_mgmt_support/models/communication_details.rb', line 27

def communication_type
  @communication_type
end

#created_dateDateTime

was created.

Returns:

  • (DateTime)

    Time in UTC (ISO 8601 format) when the communication



45
46
47
# File 'lib/2020-04-01/generated/azure_mgmt_support/models/communication_details.rb', line 45

def created_date
  @created_date
end

#idString

Returns Id of the resource.

Returns:

  • (String)

    Id of the resource.



16
17
18
# File 'lib/2020-04-01/generated/azure_mgmt_support/models/communication_details.rb', line 16

def id
  @id
end

#nameString

Returns Name of the resource.

Returns:

  • (String)

    Name of the resource.



19
20
21
# File 'lib/2020-04-01/generated/azure_mgmt_support/models/communication_details.rb', line 19

def name
  @name
end

#senderString

if called by a service principal.

Returns:

  • (String)

    Email address of the sender. This property is required



35
36
37
# File 'lib/2020-04-01/generated/azure_mgmt_support/models/communication_details.rb', line 35

def sender
  @sender
end

#subjectString

Returns Subject of the communication.

Returns:

  • (String)

    Subject of the communication.



38
39
40
# File 'lib/2020-04-01/generated/azure_mgmt_support/models/communication_details.rb', line 38

def subject
  @subject
end

#typeString

‘Microsoft.Support/communications’.

Returns:

  • (String)

    Type of the resource



23
24
25
# File 'lib/2020-04-01/generated/azure_mgmt_support/models/communication_details.rb', line 23

def type
  @type
end

Class Method Details

.mapperObject

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



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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/2020-04-01/generated/azure_mgmt_support/models/communication_details.rb', line 52

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CommunicationDetails',
    type: {
      name: 'Composite',
      class_name: 'CommunicationDetails',
      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'
          }
        },
        communication_type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.communicationType',
          type: {
            name: 'String'
          }
        },
        communication_direction: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.communicationDirection',
          type: {
            name: 'String'
          }
        },
        sender: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.sender',
          type: {
            name: 'String'
          }
        },
        subject: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.subject',
          type: {
            name: 'String'
          }
        },
        body: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.body',
          type: {
            name: 'String'
          }
        },
        created_date: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.createdDate',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end