Class: MicrosoftGraph::Models::AccessPackageResourceEnvironment

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/access_package_resource_environment.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a access_package_resource_environment

Raises:

  • (StandardError)


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_timeObject

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.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



53
54
55
# File 'lib/models/access_package_resource_environment.rb', line 53

def created_date_time=(value)
    @created_date_time = value
end

#descriptionObject

Gets the description property value. The description of this object.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



77
78
79
# File 'lib/models/access_package_resource_environment.rb', line 77

def description=(value)
    @description = value
end

#display_nameObject

Gets the displayName property value. The display name of this object.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



92
93
94
# File 'lib/models/access_package_resource_environment.rb', line 92

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_environmentObject

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.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the isDefaultEnvironment property.

Returns:

  • a void



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_timeObject

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.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the modifiedDateTime property.

Returns:

  • a void



138
139
140
# File 'lib/models/access_package_resource_environment.rb', line 138

def modified_date_time=(value)
    @modified_date_time = value
end

#origin_idObject

Gets the originId property value. The unique identifier of this environment in the origin system.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the originId property.

Returns:

  • a void



153
154
155
# File 'lib/models/access_package_resource_environment.rb', line 153

def origin_id=(value)
    @origin_id = value
end

#origin_systemObject

Gets the originSystem property value. The type of the resource in the origin system, that is, SharePointOnline. Requires $filter (eq).

Returns:

  • a string



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).

Parameters:

  • value

    Value to set for the originSystem property.

Returns:

  • a void



168
169
170
# File 'lib/models/access_package_resource_environment.rb', line 168

def origin_system=(value)
    @origin_system = value
end

#resourcesObject

Gets the resources property value. Read-only. Required.

Returns:

  • a access_package_resource



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.

Parameters:

  • value

    Value to set for the resources property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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