Class: MicrosoftGraph::Models::AccessReviewNotificationRecipientQueryScope

Inherits:
AccessReviewNotificationRecipientScope show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/access_review_notification_recipient_query_scope.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AccessReviewNotificationRecipientScope

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

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a access_review_notification_recipient_query_scope

Raises:

  • (StandardError)


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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#queryObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the query property.

Returns:

  • a void



58
59
60
# File 'lib/models/access_review_notification_recipient_query_scope.rb', line 58

def query=(value)
    @query = value
end

#query_rootObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the queryRoot property.

Returns:

  • a void



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

def query_root=(value)
    @query_root = value
end

#query_typeObject

Gets the queryType property value. Indicates the type of query. Allowed value is MicrosoftGraph.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the queryType property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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