Class: MicrosoftGraph::Models::SecurityUserSource

Inherits:
SecurityDataSource show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/security_user_source.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SecurityDataSource

#created_by, #created_by=, #created_date_time, #created_date_time=, #display_name, #display_name=, #hold_status, #hold_status=

Methods inherited from Entity

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

Constructor Details

#initializeObject

Instantiates a new securityUserSource and sets the default values.



22
23
24
25
# File 'lib/models/security_user_source.rb', line 22

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

Raises:

  • (StandardError)


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

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

Instance Method Details

#emailObject

Gets the email property value. Email address of the user’s mailbox.

Returns:

  • a string



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

def email
    return @email
end

#email=(value) ⇒ Object

Sets the email property value. Email address of the user’s mailbox.

Parameters:

  • value

    Value to set for the email property.

Returns:

  • a void



47
48
49
# File 'lib/models/security_user_source.rb', line 47

def email=(value)
    @email = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



54
55
56
57
58
59
60
# File 'lib/models/security_user_source.rb', line 54

def get_field_deserializers()
    return super.merge({
        "email" => lambda {|n| @email = n.get_string_value() },
        "includedSources" => lambda {|n| @included_sources = n.get_enum_value(MicrosoftGraph::Models::SecuritySourceType) },
        "siteWebUrl" => lambda {|n| @site_web_url = n.get_string_value() },
    })
end

#included_sourcesObject

Gets the includedSources property value. Specifies which sources are included in this group. Possible values are: mailbox, site.

Returns:

  • a security_source_type



65
66
67
# File 'lib/models/security_user_source.rb', line 65

def included_sources
    return @included_sources
end

#included_sources=(value) ⇒ Object

Sets the includedSources property value. Specifies which sources are included in this group. Possible values are: mailbox, site.

Parameters:

  • value

    Value to set for the includedSources property.

Returns:

  • a void



73
74
75
# File 'lib/models/security_user_source.rb', line 73

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


81
82
83
84
85
86
87
# File 'lib/models/security_user_source.rb', line 81

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("email", @email)
    writer.write_enum_value("includedSources", @included_sources)
    writer.write_string_value("siteWebUrl", @site_web_url)
end

#site_web_urlObject

Gets the siteWebUrl property value. The URL of the user’s OneDrive for Business site. Read-only.

Returns:

  • a string



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

def site_web_url
    return @site_web_url
end

#site_web_url=(value) ⇒ Object

Sets the siteWebUrl property value. The URL of the user’s OneDrive for Business site. Read-only.

Parameters:

  • value

    Value to set for the siteWebUrl property.

Returns:

  • a void



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

def site_web_url=(value)
    @site_web_url = value
end