Class: MicrosoftGraph::Models::TargetedManagedAppConfiguration

Inherits:
ManagedAppConfiguration show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/targeted_managed_app_configuration.rb

Overview

Configuration used to deliver a set of custom settings as-is to all users in the targeted security group

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ManagedAppConfiguration

#custom_settings, #custom_settings=

Methods inherited from ManagedAppPolicy

#created_date_time, #created_date_time=, #description, #description=, #display_name, #display_name=, #last_modified_date_time, #last_modified_date_time=, #version, #version=

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new targetedManagedAppConfiguration and sets the default values.



60
61
62
63
# File 'lib/models/targeted_managed_app_configuration.rb', line 60

def initialize()
    super
    @odata_type = "#microsoft.graph.targetedManagedAppConfiguration"
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 targeted_managed_app_configuration

Raises:

  • (StandardError)


69
70
71
72
# File 'lib/models/targeted_managed_app_configuration.rb', line 69

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

Instance Method Details

#appsObject

Gets the apps property value. List of apps to which the policy is deployed.

Returns:

  • a managed_mobile_app



30
31
32
# File 'lib/models/targeted_managed_app_configuration.rb', line 30

def apps
    return @apps
end

#apps=(value) ⇒ Object

Sets the apps property value. List of apps to which the policy is deployed.

Parameters:

  • value

    Value to set for the apps property.

Returns:

  • a void



38
39
40
# File 'lib/models/targeted_managed_app_configuration.rb', line 38

def apps=(value)
    @apps = value
end

#assignmentsObject

Gets the assignments property value. Navigation property to list of inclusion and exclusion groups to which the policy is deployed.

Returns:

  • a targeted_managed_app_policy_assignment



45
46
47
# File 'lib/models/targeted_managed_app_configuration.rb', line 45

def assignments
    return @assignments
end

#assignments=(value) ⇒ Object

Sets the assignments property value. Navigation property to list of inclusion and exclusion groups to which the policy is deployed.

Parameters:

  • value

    Value to set for the assignments property.

Returns:

  • a void



53
54
55
# File 'lib/models/targeted_managed_app_configuration.rb', line 53

def assignments=(value)
    @assignments = value
end

#deployed_app_countObject

Gets the deployedAppCount property value. Count of apps to which the current policy is deployed.

Returns:

  • a integer



77
78
79
# File 'lib/models/targeted_managed_app_configuration.rb', line 77

def deployed_app_count
    return @deployed_app_count
end

#deployed_app_count=(value) ⇒ Object

Sets the deployedAppCount property value. Count of apps to which the current policy is deployed.

Parameters:

  • value

    Value to set for the deployedAppCount property.

Returns:

  • a void



85
86
87
# File 'lib/models/targeted_managed_app_configuration.rb', line 85

def deployed_app_count=(value)
    @deployed_app_count = value
end

#deployment_summaryObject

Gets the deploymentSummary property value. Navigation property to deployment summary of the configuration.

Returns:

  • a managed_app_policy_deployment_summary



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

def deployment_summary
    return @deployment_summary
end

#deployment_summary=(value) ⇒ Object

Sets the deploymentSummary property value. Navigation property to deployment summary of the configuration.

Parameters:

  • value

    Value to set for the deploymentSummary property.

Returns:

  • a void



100
101
102
# File 'lib/models/targeted_managed_app_configuration.rb', line 100

def deployment_summary=(value)
    @deployment_summary = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



107
108
109
110
111
112
113
114
115
# File 'lib/models/targeted_managed_app_configuration.rb', line 107

def get_field_deserializers()
    return super.merge({
        "apps" => lambda {|n| @apps = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedMobileApp.create_from_discriminator_value(pn) }) },
        "assignments" => lambda {|n| @assignments = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppPolicyAssignment.create_from_discriminator_value(pn) }) },
        "deployedAppCount" => lambda {|n| @deployed_app_count = n.get_number_value() },
        "deploymentSummary" => lambda {|n| @deployment_summary = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicyDeploymentSummary.create_from_discriminator_value(pn) }) },
        "isAssigned" => lambda {|n| @is_assigned = n.get_boolean_value() },
    })
end

#is_assignedObject

Gets the isAssigned property value. Indicates if the policy is deployed to any inclusion groups or not.

Returns:

  • a boolean



120
121
122
# File 'lib/models/targeted_managed_app_configuration.rb', line 120

def is_assigned
    return @is_assigned
end

#is_assigned=(value) ⇒ Object

Sets the isAssigned property value. Indicates if the policy is deployed to any inclusion groups or not.

Parameters:

  • value

    Value to set for the isAssigned property.

Returns:

  • a void



128
129
130
# File 'lib/models/targeted_managed_app_configuration.rb', line 128

def is_assigned=(value)
    @is_assigned = 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)


136
137
138
139
140
141
142
143
144
# File 'lib/models/targeted_managed_app_configuration.rb', line 136

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("apps", @apps)
    writer.write_collection_of_object_values("assignments", @assignments)
    writer.write_number_value("deployedAppCount", @deployed_app_count)
    writer.write_object_value("deploymentSummary", @deployment_summary)
    writer.write_boolean_value("isAssigned", @is_assigned)
end