Class: MicrosoftGraph::Models::AccessReviewNotificationRecipientQueryScope
- Inherits:
-
AccessReviewNotificationRecipientScope
- Object
- AccessReviewNotificationRecipientScope
- MicrosoftGraph::Models::AccessReviewNotificationRecipientQueryScope
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/access_review_notification_recipient_query_scope.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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new accessReviewNotificationRecipientQueryScope and sets the default values.
-
#query ⇒ Object
Gets the query property value.
-
#query=(value) ⇒ Object
Sets the query property value.
-
#query_root ⇒ Object
Gets the queryRoot property value.
-
#query_root=(value) ⇒ Object
Sets the queryRoot property value.
-
#query_type ⇒ Object
Gets the queryType property value.
-
#query_type=(value) ⇒ Object
Sets the queryType property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from AccessReviewNotificationRecipientScope
#additional_data, #additional_data=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new accessReviewNotificationRecipientQueryScope and sets the default values.
22 23 24 25 |
# File 'lib/models/access_review_notification_recipient_query_scope.rb', line 22 def initialize() super @odata_type = "#microsoft.graph.accessReviewNotificationRecipientQueryScope" 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/access_review_notification_recipient_query_scope.rb', line 31 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AccessReviewNotificationRecipientQueryScope.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
39 40 41 42 43 44 45 |
# File 'lib/models/access_review_notification_recipient_query_scope.rb', line 39 def get_field_deserializers() return super.merge({ "query" => lambda {|n| @query = n.get_string_value() }, "queryRoot" => lambda {|n| @query_root = n.get_string_value() }, "queryType" => lambda {|n| @query_type = n.get_string_value() }, }) end |
#query ⇒ Object
Gets the query property value. Represents the query for who the recipients are. For example, /groups/id/members for group members and /users/id for a specific user.
50 51 52 |
# File 'lib/models/access_review_notification_recipient_query_scope.rb', line 50 def query return @query end |
#query=(value) ⇒ Object
Sets the query property value. Represents the query for who the recipients are. For example, /groups/id/members for group members and /users/id for a specific user.
58 59 60 |
# File 'lib/models/access_review_notification_recipient_query_scope.rb', line 58 def query=(value) @query = value end |
#query_root ⇒ Object
Gets the queryRoot property value. In the scenario where reviewers need to be specified dynamically, indicates the relative source of the query. This property is only required if a relative query (that is, ./manager) is specified.
65 66 67 |
# File 'lib/models/access_review_notification_recipient_query_scope.rb', line 65 def query_root return @query_root end |
#query_root=(value) ⇒ Object
Sets the queryRoot property value. In the scenario where reviewers need to be specified dynamically, indicates the relative source of the query. This property is only required if a relative query (that is, ./manager) is specified.
73 74 75 |
# File 'lib/models/access_review_notification_recipient_query_scope.rb', line 73 def query_root=(value) @query_root = value end |
#query_type ⇒ Object
Gets the queryType property value. Indicates the type of query. Allowed value is MicrosoftGraph.
80 81 82 |
# File 'lib/models/access_review_notification_recipient_query_scope.rb', line 80 def query_type return @query_type end |
#query_type=(value) ⇒ Object
Sets the queryType property value. Indicates the type of query. Allowed value is MicrosoftGraph.
88 89 90 |
# File 'lib/models/access_review_notification_recipient_query_scope.rb', line 88 def query_type=(value) @query_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
96 97 98 99 100 101 102 |
# File 'lib/models/access_review_notification_recipient_query_scope.rb', line 96 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("query", @query) writer.write_string_value("queryRoot", @query_root) writer.write_string_value("queryType", @query_type) end |