Class: MicrosoftGraph::Models::SecurityUserSource
- Inherits:
-
SecurityDataSource
- Object
- Entity
- SecurityDataSource
- MicrosoftGraph::Models::SecurityUserSource
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_user_source.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
-
#email ⇒ Object
Gets the email property value.
-
#email=(value) ⇒ Object
Sets the email property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#included_sources ⇒ Object
Gets the includedSources property value.
-
#included_sources=(value) ⇒ Object
Sets the includedSources property value.
-
#initialize ⇒ Object
constructor
Instantiates a new securityUserSource and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#site_web_url ⇒ Object
Gets the siteWebUrl property value.
-
#site_web_url=(value) ⇒ Object
Sets the siteWebUrl property value.
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
#initialize ⇒ Object
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
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
#email ⇒ Object
Gets the email property value. Email address of the user’s mailbox.
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.
47 48 49 |
# File 'lib/models/security_user_source.rb', line 47 def email=(value) @email = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_sources ⇒ Object
Gets the includedSources property value. Specifies which sources are included in this group. Possible values are: mailbox, site.
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.
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
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_url ⇒ Object
Gets the siteWebUrl property value. The URL of the user’s OneDrive for Business site. Read-only.
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.
100 101 102 |
# File 'lib/models/security_user_source.rb', line 100 def site_web_url=(value) @site_web_url = value end |