Class: MicrosoftGraph::Models::CallRecords::ClientUserAgent

Inherits:
UserAgent
  • Object
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 UserAgent

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

Constructor Details

#initializeObject

Instantiates a new ClientUserAgent and sets the default values.



57
58
59
60
# File 'lib/models/call_records/client_user_agent.rb', line 57

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 client_user_agent

Raises:

  • (StandardError)


66
67
68
69
# File 'lib/models/call_records/client_user_agent.rb', line 66

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return ClientUserAgent.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



27
28
29
# File 'lib/models/call_records/client_user_agent.rb', line 27

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 azure_a_d_app_id property.

Returns:

  • a void



35
36
37
# File 'lib/models/call_records/client_user_agent.rb', line 35

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



42
43
44
# File 'lib/models/call_records/client_user_agent.rb', line 42

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 communication_service_id property.

Returns:

  • a void



50
51
52
# File 'lib/models/call_records/client_user_agent.rb', line 50

def communication_service_id=(value)
    @communication_service_id = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



74
75
76
77
78
79
80
81
# File 'lib/models/call_records/client_user_agent.rb', line 74

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::CallRecords::ClientPlatform) },
        "productFamily" => lambda {|n| @product_family = n.get_enum_value(MicrosoftGraph::Models::CallRecords::ProductFamily) },
    })
end

#platformObject

Gets the platform property value. The platform property

Returns:

  • a client_platform



86
87
88
# File 'lib/models/call_records/client_user_agent.rb', line 86

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



94
95
96
# File 'lib/models/call_records/client_user_agent.rb', line 94

def platform=(value)
    @platform = value
end

#product_familyObject

Gets the productFamily property value. The productFamily property

Returns:

  • a product_family



101
102
103
# File 'lib/models/call_records/client_user_agent.rb', line 101

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 product_family property.

Returns:

  • a void



109
110
111
# File 'lib/models/call_records/client_user_agent.rb', line 109

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)


117
118
119
120
121
122
123
124
# File 'lib/models/call_records/client_user_agent.rb', line 117

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