class Azure::Support::Mgmt::V2020_04_01::Models::CommunicationDetails

Object that represents a Communication resource.

Attributes

body[RW]

@return [String] Body of the communication.

communication_direction[RW]

@return [CommunicationDirection] Direction of communication. Possible values include: 'inbound', 'outbound'

communication_type[RW]

@return [CommunicationType] Communication type. Possible values include: 'web', 'phone'

created_date[RW]

@return [DateTime] Time in UTC (ISO 8601 format) when the communication was created.

id[RW]

@return [String] Id of the resource.

name[RW]

@return [String] Name of the resource.

sender[RW]

@return [String] Email address of the sender. This property is required if called by a service principal.

subject[RW]

@return [String] Subject of the communication.

type[RW]

@return [String] Type of the resource 'Microsoft.Support/communications'.

Private Class Methods

mapper() click to toggle source

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

# 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