Class: MicrosoftGraph::Models::CallRecordsClientUserAgent

Inherits:
CallRecordsUserAgent show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/call_records_client_user_agent.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from CallRecordsUserAgent

#additional_data, #additional_data=, #application_version, #application_version=, #header_value, #header_value=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new callRecordsClientUserAgent and sets the default values.



55
56
57
58
# File 'lib/models/call_records_client_user_agent.rb', line 55

def initialize()
    super
    @odata_type = "#microsoft.graph.callRecords.clientUserAgent"
end

Class Method Details

.create_from_discriminator_value(parse_node) ⇒ Object

Creates a new instance of the appropriate class based on discriminator value

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a call_records_client_user_agent

Raises:

  • (StandardError)


64
65
66
67
# File 'lib/models/call_records_client_user_agent.rb', line 64

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return CallRecordsClientUserAgent.new
end

Instance Method Details

#azure_a_d_app_idObject

Gets the azureADAppId property value. The unique identifier of the Azure AD application used by this endpoint.

Returns:

  • a string



25
26
27
# File 'lib/models/call_records_client_user_agent.rb', line 25

def azure_a_d_app_id
    return @azure_a_d_app_id
end

#azure_a_d_app_id=(value) ⇒ Object

Sets the azureADAppId property value. The unique identifier of the Azure AD application used by this endpoint.

Parameters:

  • value

    Value to set for the azureADAppId property.

Returns:

  • a void



33
34
35
# File 'lib/models/call_records_client_user_agent.rb', line 33

def azure_a_d_app_id=(value)
    @azure_a_d_app_id = value
end

#communication_service_idObject

Gets the communicationServiceId property value. Immutable resource identifier of the Azure Communication Service associated with this endpoint based on Communication Services APIs.

Returns:

  • a string



40
41
42
# File 'lib/models/call_records_client_user_agent.rb', line 40

def communication_service_id
    return @communication_service_id
end

#communication_service_id=(value) ⇒ Object

Sets the communicationServiceId property value. Immutable resource identifier of the Azure Communication Service associated with this endpoint based on Communication Services APIs.

Parameters:

  • value

    Value to set for the communicationServiceId property.

Returns:

  • a void



48
49
50
# File 'lib/models/call_records_client_user_agent.rb', line 48

def communication_service_id=(value)
    @communication_service_id = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



72
73
74
75
76
77
78
79
# File 'lib/models/call_records_client_user_agent.rb', line 72

def get_field_deserializers()
    return super.merge({
        "azureADAppId" => lambda {|n| @azure_a_d_app_id = n.get_string_value() },
        "communicationServiceId" => lambda {|n| @communication_service_id = n.get_string_value() },
        "platform" => lambda {|n| @platform = n.get_enum_value(MicrosoftGraph::Models::CallRecordsClientPlatform) },
        "productFamily" => lambda {|n| @product_family = n.get_enum_value(MicrosoftGraph::Models::CallRecordsProductFamily) },
    })
end

#platformObject

Gets the platform property value. The platform property

Returns:

  • a call_records_client_platform



84
85
86
# File 'lib/models/call_records_client_user_agent.rb', line 84

def platform
    return @platform
end

#platform=(value) ⇒ Object

Sets the platform property value. The platform property

Parameters:

  • value

    Value to set for the platform property.

Returns:

  • a void



92
93
94
# File 'lib/models/call_records_client_user_agent.rb', line 92

def platform=(value)
    @platform = value
end

#product_familyObject

Gets the productFamily property value. The productFamily property

Returns:

  • a call_records_product_family



99
100
101
# File 'lib/models/call_records_client_user_agent.rb', line 99

def product_family
    return @product_family
end

#product_family=(value) ⇒ Object

Sets the productFamily property value. The productFamily property

Parameters:

  • value

    Value to set for the productFamily property.

Returns:

  • a void



107
108
109
# File 'lib/models/call_records_client_user_agent.rb', line 107

def product_family=(value)
    @product_family = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


115
116
117
118
119
120
121
122
# File 'lib/models/call_records_client_user_agent.rb', line 115

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("azureADAppId", @azure_a_d_app_id)
    writer.write_string_value("communicationServiceId", @communication_service_id)
    writer.write_enum_value("platform", @platform)
    writer.write_enum_value("productFamily", @product_family)
end