Class: MicrosoftGraph::Models::CallRecords::ClientUserAgent
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/call_records/client_user_agent.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#azure_a_d_app_id ⇒ Object
Gets the azureADAppId property value.
-
#azure_a_d_app_id=(value) ⇒ Object
Sets the azureADAppId property value.
-
#communication_service_id ⇒ Object
Gets the communicationServiceId property value.
-
#communication_service_id=(value) ⇒ Object
Sets the communicationServiceId property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new ClientUserAgent and sets the default values.
-
#platform ⇒ Object
Gets the platform property value.
-
#platform=(value) ⇒ Object
Sets the platform property value.
-
#product_family ⇒ Object
Gets the productFamily property value.
-
#product_family=(value) ⇒ Object
Sets the productFamily property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from UserAgent
#additional_data, #additional_data=, #application_version, #application_version=, #header_value, #header_value=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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_id ⇒ Object
Gets the azureADAppId property value. The unique identifier of the Azure AD application used by this endpoint.
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.
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_id ⇒ Object
Gets the communicationServiceId property value. Immutable resource identifier of the Azure Communication Service associated with this endpoint based on Communication Services APIs.
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.
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_deserializers ⇒ Object
The deserialization information for the current model
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 |
#platform ⇒ Object
Gets the platform property value. The platform property
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
94 95 96 |
# File 'lib/models/call_records/client_user_agent.rb', line 94 def platform=(value) @platform = value end |
#product_family ⇒ Object
Gets the productFamily property value. The productFamily property
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
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
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 |