Class: MicrosoftGraph::Models::AccessReviewQueryScope
- Inherits:
-
AccessReviewScope
- Object
- AccessReviewScope
- MicrosoftGraph::Models::AccessReviewQueryScope
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/access_review_query_scope.rb
Direct Known Subclasses
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 accessReviewQueryScope 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 AccessReviewScope
#additional_data, #additional_data=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new accessReviewQueryScope and sets the default values.
22 23 24 25 |
# File 'lib/models/access_review_query_scope.rb', line 22 def initialize() super @odata_type = "#microsoft.graph.accessReviewQueryScope" 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 35 36 37 38 39 40 41 42 |
# File 'lib/models/access_review_query_scope.rb', line 31 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? mapping_value_node = parse_node.get_child_node("@odata.type") unless mapping_value_node.nil? then mapping_value = mapping_value_node.get_string_value case mapping_value when "#microsoft.graph.accessReviewInactiveUsersQueryScope" return AccessReviewInactiveUsersQueryScope.new end end return AccessReviewQueryScope.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
47 48 49 50 51 52 53 |
# File 'lib/models/access_review_query_scope.rb', line 47 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. The query representing what will be reviewed in an access review.
58 59 60 |
# File 'lib/models/access_review_query_scope.rb', line 58 def query return @query end |
#query=(value) ⇒ Object
Sets the query property value. The query representing what will be reviewed in an access review.
66 67 68 |
# File 'lib/models/access_review_query_scope.rb', line 66 def query=(value) @query = value end |
#query_root ⇒ Object
Gets the queryRoot property value. In the scenario where reviewers need to be specified dynamically, this property is used to indicate the relative source of the query. This property is only required if a relative query is specified. For example, ./manager.
73 74 75 |
# File 'lib/models/access_review_query_scope.rb', line 73 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, this property is used to indicate the relative source of the query. This property is only required if a relative query is specified. For example, ./manager.
81 82 83 |
# File 'lib/models/access_review_query_scope.rb', line 81 def query_root=(value) @query_root = value end |
#query_type ⇒ Object
Gets the queryType property value. Indicates the type of query. Types include MicrosoftGraph and ARM.
88 89 90 |
# File 'lib/models/access_review_query_scope.rb', line 88 def query_type return @query_type end |
#query_type=(value) ⇒ Object
Sets the queryType property value. Indicates the type of query. Types include MicrosoftGraph and ARM.
96 97 98 |
# File 'lib/models/access_review_query_scope.rb', line 96 def query_type=(value) @query_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
104 105 106 107 108 109 110 |
# File 'lib/models/access_review_query_scope.rb', line 104 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 |