Class: MicrosoftGraph::Models::AccessPackageResourceScope
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/access_package_resource_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
-
#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 accessPackageResourceScope and sets the default values.
-
#is_root_scope ⇒ Object
Gets the isRootScope property value.
-
#is_root_scope=(value) ⇒ Object
Sets the isRootScope property value.
-
#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 accessPackageResourceScope and sets the default values.
31 32 33 |
# File 'lib/models/access_package_resource_scope.rb', line 31 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
39 40 41 42 |
# File 'lib/models/access_package_resource_scope.rb', line 39 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AccessPackageResourceScope.new end |
Instance Method Details
#description ⇒ Object
Gets the description property value. The description of the scope.
47 48 49 |
# File 'lib/models/access_package_resource_scope.rb', line 47 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. The description of the scope.
55 56 57 |
# File 'lib/models/access_package_resource_scope.rb', line 55 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. The display name of the scope.
62 63 64 |
# File 'lib/models/access_package_resource_scope.rb', line 62 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The display name of the scope.
70 71 72 |
# File 'lib/models/access_package_resource_scope.rb', line 70 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
77 78 79 80 81 82 83 84 85 86 |
# File 'lib/models/access_package_resource_scope.rb', line 77 def get_field_deserializers() return super.merge({ "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "isRootScope" => lambda {|n| @is_root_scope = n.get_boolean_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 |
#is_root_scope ⇒ Object
Gets the isRootScope property value. True if the scopes are arranged in a hierarchy and this is the top or root scope of the resource.
91 92 93 |
# File 'lib/models/access_package_resource_scope.rb', line 91 def is_root_scope return @is_root_scope end |
#is_root_scope=(value) ⇒ Object
Sets the isRootScope property value. True if the scopes are arranged in a hierarchy and this is the top or root scope of the resource.
99 100 101 |
# File 'lib/models/access_package_resource_scope.rb', line 99 def is_root_scope=(value) @is_root_scope = value end |
#origin_id ⇒ Object
Gets the originId property value. The unique identifier for the scope in the resource as defined in the origin system.
106 107 108 |
# File 'lib/models/access_package_resource_scope.rb', line 106 def origin_id return @origin_id end |
#origin_id=(value) ⇒ Object
Sets the originId property value. The unique identifier for the scope in the resource as defined in the origin system.
114 115 116 |
# File 'lib/models/access_package_resource_scope.rb', line 114 def origin_id=(value) @origin_id = value end |
#origin_system ⇒ Object
Gets the originSystem property value. The origin system for the scope.
121 122 123 |
# File 'lib/models/access_package_resource_scope.rb', line 121 def origin_system return @origin_system end |
#origin_system=(value) ⇒ Object
Sets the originSystem property value. The origin system for the scope.
129 130 131 |
# File 'lib/models/access_package_resource_scope.rb', line 129 def origin_system=(value) @origin_system = value end |
#resource ⇒ Object
Gets the resource property value. The resource property
136 137 138 |
# File 'lib/models/access_package_resource_scope.rb', line 136 def resource return @resource end |
#resource=(value) ⇒ Object
Sets the resource property value. The resource property
144 145 146 |
# File 'lib/models/access_package_resource_scope.rb', line 144 def resource=(value) @resource = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
152 153 154 155 156 157 158 159 160 161 |
# File 'lib/models/access_package_resource_scope.rb', line 152 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_boolean_value("isRootScope", @is_root_scope) writer.write_string_value("originId", @origin_id) writer.write_string_value("originSystem", @origin_system) writer.write_object_value("resource", @resource) end |