Class: MicrosoftGraph::Models::PrincipalResourceMembershipsScope
- Inherits:
-
AccessReviewScope
- Object
- AccessReviewScope
- MicrosoftGraph::Models::PrincipalResourceMembershipsScope
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/principal_resource_memberships_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 principalResourceMembershipsScope and sets the default values.
-
#principal_scopes ⇒ Object
Gets the principalScopes property value.
-
#principal_scopes=(value) ⇒ Object
Sets the principalScopes property value.
-
#resource_scopes ⇒ Object
Gets the resourceScopes property value.
-
#resource_scopes=(value) ⇒ Object
Sets the resourceScopes 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 principalResourceMembershipsScope and sets the default values.
19 20 21 22 |
# File 'lib/models/principal_resource_memberships_scope.rb', line 19 def initialize() super @odata_type = "#microsoft.graph.principalResourceMembershipsScope" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
28 29 30 31 |
# File 'lib/models/principal_resource_memberships_scope.rb', line 28 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return PrincipalResourceMembershipsScope.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
36 37 38 39 40 41 |
# File 'lib/models/principal_resource_memberships_scope.rb', line 36 def get_field_deserializers() return super.merge({ "principalScopes" => lambda {|n| @principal_scopes = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessReviewScope.create_from_discriminator_value(pn) }) }, "resourceScopes" => lambda {|n| @resource_scopes = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessReviewScope.create_from_discriminator_value(pn) }) }, }) end |
#principal_scopes ⇒ Object
Gets the principalScopes property value. Defines the scopes of the principals whose access to resources are reviewed in the access review.
46 47 48 |
# File 'lib/models/principal_resource_memberships_scope.rb', line 46 def principal_scopes return @principal_scopes end |
#principal_scopes=(value) ⇒ Object
Sets the principalScopes property value. Defines the scopes of the principals whose access to resources are reviewed in the access review.
54 55 56 |
# File 'lib/models/principal_resource_memberships_scope.rb', line 54 def principal_scopes=(value) @principal_scopes = value end |
#resource_scopes ⇒ Object
Gets the resourceScopes property value. Defines the scopes of the resources for which access is reviewed.
61 62 63 |
# File 'lib/models/principal_resource_memberships_scope.rb', line 61 def resource_scopes return @resource_scopes end |
#resource_scopes=(value) ⇒ Object
Sets the resourceScopes property value. Defines the scopes of the resources for which access is reviewed.
69 70 71 |
# File 'lib/models/principal_resource_memberships_scope.rb', line 69 def resource_scopes=(value) @resource_scopes = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
77 78 79 80 81 82 |
# File 'lib/models/principal_resource_memberships_scope.rb', line 77 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("principalScopes", @principal_scopes) writer.write_collection_of_object_values("resourceScopes", @resource_scopes) end |