Class: MicrosoftGraph::Models::AccessPackageResourceRole
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/access_package_resource_role.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
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new accessPackageResourceRole and sets the default values.
-
#origin_id ⇒ Object
Gets the originId property value.
-
#origin_id=(value) ⇒ Object
Sets the originId property value.
-
#origin_system ⇒ Object
Gets the originSystem property value.
-
#origin_system=(value) ⇒ Object
Sets the originSystem property value.
-
#resource ⇒ Object
Gets the resource property value.
-
#resource=(value) ⇒ Object
Sets the resource property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new accessPackageResourceRole and sets the default values.
28 29 30 |
# File 'lib/models/access_package_resource_role.rb', line 28 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
36 37 38 39 |
# File 'lib/models/access_package_resource_role.rb', line 36 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AccessPackageResourceRole.new end |
Instance Method Details
#description ⇒ Object
Gets the description property value. A description for the resource role.
44 45 46 |
# File 'lib/models/access_package_resource_role.rb', line 44 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. A description for the resource role.
52 53 54 |
# File 'lib/models/access_package_resource_role.rb', line 52 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. The display name of the resource role such as the role defined by the application.
59 60 61 |
# File 'lib/models/access_package_resource_role.rb', line 59 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The display name of the resource role such as the role defined by the application.
67 68 69 |
# File 'lib/models/access_package_resource_role.rb', line 67 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
74 75 76 77 78 79 80 81 82 |
# File 'lib/models/access_package_resource_role.rb', line 74 def get_field_deserializers() return super.merge({ "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "originId" => lambda {|n| @origin_id = n.get_string_value() }, "originSystem" => lambda {|n| @origin_system = n.get_string_value() }, "resource" => lambda {|n| @resource = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }) }, }) end |
#origin_id ⇒ Object
Gets the originId property value. The unique identifier of the resource role in the origin system. For a SharePoint Online site, the originId will be the sequence number of the role in the site.
87 88 89 |
# File 'lib/models/access_package_resource_role.rb', line 87 def origin_id return @origin_id end |
#origin_id=(value) ⇒ Object
Sets the originId property value. The unique identifier of the resource role in the origin system. For a SharePoint Online site, the originId will be the sequence number of the role in the site.
95 96 97 |
# File 'lib/models/access_package_resource_role.rb', line 95 def origin_id=(value) @origin_id = value end |
#origin_system ⇒ Object
Gets the originSystem property value. The type of the resource in the origin system, such as SharePointOnline, AadApplication or AadGroup.
102 103 104 |
# File 'lib/models/access_package_resource_role.rb', line 102 def origin_system return @origin_system end |
#origin_system=(value) ⇒ Object
Sets the originSystem property value. The type of the resource in the origin system, such as SharePointOnline, AadApplication or AadGroup.
110 111 112 |
# File 'lib/models/access_package_resource_role.rb', line 110 def origin_system=(value) @origin_system = value end |
#resource ⇒ Object
Gets the resource property value. The resource property
117 118 119 |
# File 'lib/models/access_package_resource_role.rb', line 117 def resource return @resource end |
#resource=(value) ⇒ Object
Sets the resource property value. The resource property
125 126 127 |
# File 'lib/models/access_package_resource_role.rb', line 125 def resource=(value) @resource = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
133 134 135 136 137 138 139 140 141 |
# File 'lib/models/access_package_resource_role.rb', line 133 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_string_value("originId", @origin_id) writer.write_string_value("originSystem", @origin_system) writer.write_object_value("resource", @resource) end |