Class: MicrosoftGraph::Models::AccessPackageResourceEnvironment
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/access_package_resource_environment.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
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#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 accessPackageResourceEnvironment and sets the default values.
-
#is_default_environment ⇒ Object
Gets the isDefaultEnvironment property value.
-
#is_default_environment=(value) ⇒ Object
Sets the isDefaultEnvironment property value.
-
#modified_date_time ⇒ Object
Gets the modifiedDateTime property value.
-
#modified_date_time=(value) ⇒ Object
Sets the modifiedDateTime 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.
-
#resources ⇒ Object
Gets the resources property value.
-
#resources=(value) ⇒ Object
Sets the resources 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 accessPackageResourceEnvironment and sets the default values.
38 39 40 |
# File 'lib/models/access_package_resource_environment.rb', line 38 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
61 62 63 64 |
# File 'lib/models/access_package_resource_environment.rb', line 61 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AccessPackageResourceEnvironment.new end |
Instance Method Details
#created_date_time ⇒ Object
Gets the createdDateTime property value. The date and time that this object was created. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
45 46 47 |
# File 'lib/models/access_package_resource_environment.rb', line 45 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. The date and time that this object was created. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
53 54 55 |
# File 'lib/models/access_package_resource_environment.rb', line 53 def created_date_time=(value) @created_date_time = value end |
#description ⇒ Object
Gets the description property value. The description of this object.
69 70 71 |
# File 'lib/models/access_package_resource_environment.rb', line 69 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. The description of this object.
77 78 79 |
# File 'lib/models/access_package_resource_environment.rb', line 77 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. The display name of this object.
84 85 86 |
# File 'lib/models/access_package_resource_environment.rb', line 84 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The display name of this object.
92 93 94 |
# File 'lib/models/access_package_resource_environment.rb', line 92 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/models/access_package_resource_environment.rb', line 99 def get_field_deserializers() return super.merge({ "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "isDefaultEnvironment" => lambda {|n| @is_default_environment = n.get_boolean_value() }, "modifiedDateTime" => lambda {|n| @modified_date_time = n.get_date_time_value() }, "originId" => lambda {|n| @origin_id = n.get_string_value() }, "originSystem" => lambda {|n| @origin_system = n.get_string_value() }, "resources" => lambda {|n| @resources = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }) }, }) end |
#is_default_environment ⇒ Object
Gets the isDefaultEnvironment property value. Determines whether this is default environment or not. It is set to true for all static origin systems, such as Azure AD groups and Azure AD Applications.
115 116 117 |
# File 'lib/models/access_package_resource_environment.rb', line 115 def is_default_environment return @is_default_environment end |
#is_default_environment=(value) ⇒ Object
Sets the isDefaultEnvironment property value. Determines whether this is default environment or not. It is set to true for all static origin systems, such as Azure AD groups and Azure AD Applications.
123 124 125 |
# File 'lib/models/access_package_resource_environment.rb', line 123 def is_default_environment=(value) @is_default_environment = value end |
#modified_date_time ⇒ Object
Gets the modifiedDateTime property value. The date and time that this object was last modified. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
130 131 132 |
# File 'lib/models/access_package_resource_environment.rb', line 130 def modified_date_time return @modified_date_time end |
#modified_date_time=(value) ⇒ Object
Sets the modifiedDateTime property value. The date and time that this object was last modified. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
138 139 140 |
# File 'lib/models/access_package_resource_environment.rb', line 138 def modified_date_time=(value) @modified_date_time = value end |
#origin_id ⇒ Object
Gets the originId property value. The unique identifier of this environment in the origin system.
145 146 147 |
# File 'lib/models/access_package_resource_environment.rb', line 145 def origin_id return @origin_id end |
#origin_id=(value) ⇒ Object
Sets the originId property value. The unique identifier of this environment in the origin system.
153 154 155 |
# File 'lib/models/access_package_resource_environment.rb', line 153 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, that is, SharePointOnline. Requires $filter (eq).
160 161 162 |
# File 'lib/models/access_package_resource_environment.rb', line 160 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, that is, SharePointOnline. Requires $filter (eq).
168 169 170 |
# File 'lib/models/access_package_resource_environment.rb', line 168 def origin_system=(value) @origin_system = value end |
#resources ⇒ Object
Gets the resources property value. Read-only. Required.
175 176 177 |
# File 'lib/models/access_package_resource_environment.rb', line 175 def resources return @resources end |
#resources=(value) ⇒ Object
Sets the resources property value. Read-only. Required.
183 184 185 |
# File 'lib/models/access_package_resource_environment.rb', line 183 def resources=(value) @resources = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
191 192 193 194 195 196 197 198 199 200 201 202 |
# File 'lib/models/access_package_resource_environment.rb', line 191 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_boolean_value("isDefaultEnvironment", @is_default_environment) writer.write_date_time_value("modifiedDateTime", @modified_date_time) writer.write_string_value("originId", @origin_id) writer.write_string_value("originSystem", @origin_system) writer.write_collection_of_object_values("resources", @resources) end |