Class: MicrosoftGraph::Models::ManagedAppRegistration
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/managed_app_registration.rb
Overview
The ManagedAppEntity is the base entity type for all other entity types under app management workflow.
Direct Known Subclasses
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
-
#app_identifier ⇒ Object
Gets the appIdentifier property value.
-
#app_identifier=(value) ⇒ Object
Sets the appIdentifier property value.
-
#application_version ⇒ Object
Gets the applicationVersion property value.
-
#application_version=(value) ⇒ Object
Sets the applicationVersion property value.
-
#applied_policies ⇒ Object
Gets the appliedPolicies property value.
-
#applied_policies=(value) ⇒ Object
Sets the appliedPolicies property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#device_name ⇒ Object
Gets the deviceName property value.
-
#device_name=(value) ⇒ Object
Sets the deviceName property value.
-
#device_tag ⇒ Object
Gets the deviceTag property value.
-
#device_tag=(value) ⇒ Object
Sets the deviceTag property value.
-
#device_type ⇒ Object
Gets the deviceType property value.
-
#device_type=(value) ⇒ Object
Sets the deviceType property value.
-
#flagged_reasons ⇒ Object
Gets the flaggedReasons property value.
-
#flagged_reasons=(value) ⇒ Object
Sets the flaggedReasons property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new managedAppRegistration and sets the default values.
-
#intended_policies ⇒ Object
Gets the intendedPolicies property value.
-
#intended_policies=(value) ⇒ Object
Sets the intendedPolicies property value.
-
#last_sync_date_time ⇒ Object
Gets the lastSyncDateTime property value.
-
#last_sync_date_time=(value) ⇒ Object
Sets the lastSyncDateTime property value.
-
#management_sdk_version ⇒ Object
Gets the managementSdkVersion property value.
-
#management_sdk_version=(value) ⇒ Object
Sets the managementSdkVersion property value.
-
#operations ⇒ Object
Gets the operations property value.
-
#operations=(value) ⇒ Object
Sets the operations property value.
-
#platform_version ⇒ Object
Gets the platformVersion property value.
-
#platform_version=(value) ⇒ Object
Sets the platformVersion property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#user_id ⇒ Object
Gets the userId property value.
-
#user_id=(value) ⇒ Object
Sets the userId property value.
-
#version ⇒ Object
Gets the version property value.
-
#version=(value) ⇒ Object
Sets the version property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new managedAppRegistration and sets the default values.
106 107 108 |
# File 'lib/models/managed_app_registration.rb', line 106 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/models/managed_app_registration.rb', line 129 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? mapping_value_node = parse_node.get_child_node("@odata.type") unless mapping_value_node.nil? then mapping_value = mapping_value_node.get_string_value case mapping_value when "#microsoft.graph.androidManagedAppRegistration" return AndroidManagedAppRegistration.new when "#microsoft.graph.iosManagedAppRegistration" return IosManagedAppRegistration.new end end return ManagedAppRegistration.new end |
Instance Method Details
#app_identifier ⇒ Object
Gets the appIdentifier property value. The app package Identifier
61 62 63 |
# File 'lib/models/managed_app_registration.rb', line 61 def app_identifier return @app_identifier end |
#app_identifier=(value) ⇒ Object
Sets the appIdentifier property value. The app package Identifier
69 70 71 |
# File 'lib/models/managed_app_registration.rb', line 69 def app_identifier=(value) @app_identifier = value end |
#application_version ⇒ Object
Gets the applicationVersion property value. App version
76 77 78 |
# File 'lib/models/managed_app_registration.rb', line 76 def application_version return @application_version end |
#application_version=(value) ⇒ Object
Sets the applicationVersion property value. App version
84 85 86 |
# File 'lib/models/managed_app_registration.rb', line 84 def application_version=(value) @application_version = value end |
#applied_policies ⇒ Object
Gets the appliedPolicies property value. Zero or more policys already applied on the registered app when it last synchronized with managment service.
91 92 93 |
# File 'lib/models/managed_app_registration.rb', line 91 def applied_policies return @applied_policies end |
#applied_policies=(value) ⇒ Object
Sets the appliedPolicies property value. Zero or more policys already applied on the registered app when it last synchronized with managment service.
99 100 101 |
# File 'lib/models/managed_app_registration.rb', line 99 def applied_policies=(value) @applied_policies = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. Date and time of creation
113 114 115 |
# File 'lib/models/managed_app_registration.rb', line 113 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. Date and time of creation
121 122 123 |
# File 'lib/models/managed_app_registration.rb', line 121 def created_date_time=(value) @created_date_time = value end |
#device_name ⇒ Object
Gets the deviceName property value. Host device name
147 148 149 |
# File 'lib/models/managed_app_registration.rb', line 147 def device_name return @device_name end |
#device_name=(value) ⇒ Object
Sets the deviceName property value. Host device name
155 156 157 |
# File 'lib/models/managed_app_registration.rb', line 155 def device_name=(value) @device_name = value end |
#device_tag ⇒ Object
Gets the deviceTag property value. App management SDK generated tag, which helps relate apps hosted on the same device. Not guaranteed to relate apps in all conditions.
162 163 164 |
# File 'lib/models/managed_app_registration.rb', line 162 def device_tag return @device_tag end |
#device_tag=(value) ⇒ Object
Sets the deviceTag property value. App management SDK generated tag, which helps relate apps hosted on the same device. Not guaranteed to relate apps in all conditions.
170 171 172 |
# File 'lib/models/managed_app_registration.rb', line 170 def device_tag=(value) @device_tag = value end |
#device_type ⇒ Object
Gets the deviceType property value. Host device type
177 178 179 |
# File 'lib/models/managed_app_registration.rb', line 177 def device_type return @device_type end |
#device_type=(value) ⇒ Object
Sets the deviceType property value. Host device type
185 186 187 |
# File 'lib/models/managed_app_registration.rb', line 185 def device_type=(value) @device_type = value end |
#flagged_reasons ⇒ Object
Gets the flaggedReasons property value. Zero or more reasons an app registration is flagged. E.g. app running on rooted device
192 193 194 |
# File 'lib/models/managed_app_registration.rb', line 192 def flagged_reasons return @flagged_reasons end |
#flagged_reasons=(value) ⇒ Object
Sets the flaggedReasons property value. Zero or more reasons an app registration is flagged. E.g. app running on rooted device
200 201 202 |
# File 'lib/models/managed_app_registration.rb', line 200 def flagged_reasons=(value) @flagged_reasons = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 |
# File 'lib/models/managed_app_registration.rb', line 207 def get_field_deserializers() return super.merge({ "appIdentifier" => lambda {|n| @app_identifier = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::MobileAppIdentifier.create_from_discriminator_value(pn) }) }, "applicationVersion" => lambda {|n| @application_version = n.get_string_value() }, "appliedPolicies" => lambda {|n| @applied_policies = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicy.create_from_discriminator_value(pn) }) }, "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "deviceName" => lambda {|n| @device_name = n.get_string_value() }, "deviceTag" => lambda {|n| @device_tag = n.get_string_value() }, "deviceType" => lambda {|n| @device_type = n.get_string_value() }, "flaggedReasons" => lambda {|n| @flagged_reasons = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedAppFlaggedReason.create_from_discriminator_value(pn) }) }, "intendedPolicies" => lambda {|n| @intended_policies = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicy.create_from_discriminator_value(pn) }) }, "lastSyncDateTime" => lambda {|n| @last_sync_date_time = n.get_date_time_value() }, "managementSdkVersion" => lambda {|n| @management_sdk_version = n.get_string_value() }, "operations" => lambda {|n| @operations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedAppOperation.create_from_discriminator_value(pn) }) }, "platformVersion" => lambda {|n| @platform_version = n.get_string_value() }, "userId" => lambda {|n| @user_id = n.get_string_value() }, "version" => lambda {|n| @version = n.get_string_value() }, }) end |
#intended_policies ⇒ Object
Gets the intendedPolicies property value. Zero or more policies admin intended for the app as of now.
230 231 232 |
# File 'lib/models/managed_app_registration.rb', line 230 def intended_policies return @intended_policies end |
#intended_policies=(value) ⇒ Object
Sets the intendedPolicies property value. Zero or more policies admin intended for the app as of now.
238 239 240 |
# File 'lib/models/managed_app_registration.rb', line 238 def intended_policies=(value) @intended_policies = value end |
#last_sync_date_time ⇒ Object
Gets the lastSyncDateTime property value. Date and time of last the app synced with management service.
245 246 247 |
# File 'lib/models/managed_app_registration.rb', line 245 def last_sync_date_time return @last_sync_date_time end |
#last_sync_date_time=(value) ⇒ Object
Sets the lastSyncDateTime property value. Date and time of last the app synced with management service.
253 254 255 |
# File 'lib/models/managed_app_registration.rb', line 253 def last_sync_date_time=(value) @last_sync_date_time = value end |
#management_sdk_version ⇒ Object
Gets the managementSdkVersion property value. App management SDK version
260 261 262 |
# File 'lib/models/managed_app_registration.rb', line 260 def management_sdk_version return @management_sdk_version end |
#management_sdk_version=(value) ⇒ Object
Sets the managementSdkVersion property value. App management SDK version
268 269 270 |
# File 'lib/models/managed_app_registration.rb', line 268 def management_sdk_version=(value) @management_sdk_version = value end |
#operations ⇒ Object
Gets the operations property value. Zero or more long running operations triggered on the app registration.
275 276 277 |
# File 'lib/models/managed_app_registration.rb', line 275 def operations return @operations end |
#operations=(value) ⇒ Object
Sets the operations property value. Zero or more long running operations triggered on the app registration.
283 284 285 |
# File 'lib/models/managed_app_registration.rb', line 283 def operations=(value) @operations = value end |
#platform_version ⇒ Object
Gets the platformVersion property value. Operating System version
290 291 292 |
# File 'lib/models/managed_app_registration.rb', line 290 def platform_version return @platform_version end |
#platform_version=(value) ⇒ Object
Sets the platformVersion property value. Operating System version
298 299 300 |
# File 'lib/models/managed_app_registration.rb', line 298 def platform_version=(value) @platform_version = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 |
# File 'lib/models/managed_app_registration.rb', line 306 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("appIdentifier", @app_identifier) writer.write_string_value("applicationVersion", @application_version) writer.write_collection_of_object_values("appliedPolicies", @applied_policies) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_string_value("deviceName", @device_name) writer.write_string_value("deviceTag", @device_tag) writer.write_string_value("deviceType", @device_type) writer.write_collection_of_object_values("flaggedReasons", @flagged_reasons) writer.write_collection_of_object_values("intendedPolicies", @intended_policies) writer.write_date_time_value("lastSyncDateTime", @last_sync_date_time) writer.write_string_value("managementSdkVersion", @management_sdk_version) writer.write_collection_of_object_values("operations", @operations) writer.write_string_value("platformVersion", @platform_version) writer.write_string_value("userId", @user_id) writer.write_string_value("version", @version) end |
#user_id ⇒ Object
Gets the userId property value. The user Id to who this app registration belongs.
329 330 331 |
# File 'lib/models/managed_app_registration.rb', line 329 def user_id return @user_id end |
#user_id=(value) ⇒ Object
Sets the userId property value. The user Id to who this app registration belongs.
337 338 339 |
# File 'lib/models/managed_app_registration.rb', line 337 def user_id=(value) @user_id = value end |
#version ⇒ Object
Gets the version property value. Version of the entity.
344 345 346 |
# File 'lib/models/managed_app_registration.rb', line 344 def version return @version end |
#version=(value) ⇒ Object
Sets the version property value. Version of the entity.
352 353 354 |
# File 'lib/models/managed_app_registration.rb', line 352 def version=(value) @version = value end |