Class: MicrosoftGraph::Models::UserRegistrationMethodSummary

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/user_registration_method_summary.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new userRegistrationMethodSummary and sets the default values.



46
47
48
# File 'lib/models/user_registration_method_summary.rb', line 46

def initialize()
    @additional_data = Hash.new
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 user_registration_method_summary

Raises:

  • (StandardError)


54
55
56
57
# File 'lib/models/user_registration_method_summary.rb', line 54

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

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



31
32
33
# File 'lib/models/user_registration_method_summary.rb', line 31

def additional_data
    return @additional_data
end

#additional_data=(value) ⇒ Object

Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



39
40
41
# File 'lib/models/user_registration_method_summary.rb', line 39

def additional_data=(value)
    @additional_data = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



62
63
64
65
66
67
68
69
70
# File 'lib/models/user_registration_method_summary.rb', line 62

def get_field_deserializers()
    return {
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "totalUserCount" => lambda {|n| @total_user_count = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "userRegistrationMethodCounts" => lambda {|n| @user_registration_method_counts = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::UserRegistrationMethodCount.create_from_discriminator_value(pn) }) },
        "userRoles" => lambda {|n| @user_roles = n.get_enum_value(MicrosoftGraph::Models::IncludedUserRoles) },
        "userTypes" => lambda {|n| @user_types = n.get_enum_value(MicrosoftGraph::Models::IncludedUserTypes) },
    }
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



75
76
77
# File 'lib/models/user_registration_method_summary.rb', line 75

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



83
84
85
# File 'lib/models/user_registration_method_summary.rb', line 83

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


91
92
93
94
95
96
97
98
99
# File 'lib/models/user_registration_method_summary.rb', line 91

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_object_value("totalUserCount", @total_user_count)
    writer.write_collection_of_object_values("userRegistrationMethodCounts", @user_registration_method_counts)
    writer.write_enum_value("userRoles", @user_roles)
    writer.write_enum_value("userTypes", @user_types)
    writer.write_additional_data(@additional_data)
end

#total_user_countObject

Gets the totalUserCount property value. Total number of users in the tenant.

Returns:

  • a int64



104
105
106
# File 'lib/models/user_registration_method_summary.rb', line 104

def total_user_count
    return @total_user_count
end

#total_user_count=(value) ⇒ Object

Sets the totalUserCount property value. Total number of users in the tenant.

Parameters:

  • value

    Value to set for the totalUserCount property.

Returns:

  • a void



112
113
114
# File 'lib/models/user_registration_method_summary.rb', line 112

def total_user_count=(value)
    @total_user_count = value
end

#user_registration_method_countsObject

Gets the userRegistrationMethodCounts property value. Number of users registered for each authentication method.

Returns:

  • a user_registration_method_count



119
120
121
# File 'lib/models/user_registration_method_summary.rb', line 119

def user_registration_method_counts
    return @user_registration_method_counts
end

#user_registration_method_counts=(value) ⇒ Object

Sets the userRegistrationMethodCounts property value. Number of users registered for each authentication method.

Parameters:

  • value

    Value to set for the userRegistrationMethodCounts property.

Returns:

  • a void



127
128
129
# File 'lib/models/user_registration_method_summary.rb', line 127

def user_registration_method_counts=(value)
    @user_registration_method_counts = value
end

#user_rolesObject

Gets the userRoles property value. The role type of the user. Possible values are: all, privilegedAdmin, admin, user, unknownFutureValue.

Returns:

  • a included_user_roles



134
135
136
# File 'lib/models/user_registration_method_summary.rb', line 134

def user_roles
    return @user_roles
end

#user_roles=(value) ⇒ Object

Sets the userRoles property value. The role type of the user. Possible values are: all, privilegedAdmin, admin, user, unknownFutureValue.

Parameters:

  • value

    Value to set for the userRoles property.

Returns:

  • a void



142
143
144
# File 'lib/models/user_registration_method_summary.rb', line 142

def user_roles=(value)
    @user_roles = value
end

#user_typesObject

Gets the userTypes property value. User type. Possible values are: all, member, guest, unknownFutureValue.

Returns:

  • a included_user_types



149
150
151
# File 'lib/models/user_registration_method_summary.rb', line 149

def user_types
    return @user_types
end

#user_types=(value) ⇒ Object

Sets the userTypes property value. User type. Possible values are: all, member, guest, unknownFutureValue.

Parameters:

  • value

    Value to set for the userTypes property.

Returns:

  • a void



157
158
159
# File 'lib/models/user_registration_method_summary.rb', line 157

def user_types=(value)
    @user_types = value
end