Class: MicrosoftGraph::Models::AssignedPlan

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/assigned_plan.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new assignedPlan and sets the default values.



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

def initialize()
    @additional_data = Hash.new
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 assigned_plan

Raises:

  • (StandardError)


85
86
87
88
# File 'lib/models/assigned_plan.rb', line 85

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return AssignedPlan.new
end

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



32
33
34
# File 'lib/models/assigned_plan.rb', line 32

def additional_data
    return @additional_data
end

#additional_data=(value) ⇒ Object

Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



40
41
42
# File 'lib/models/assigned_plan.rb', line 40

def additional_data=(value)
    @additional_data = value
end

#assigned_date_timeObject

Gets the assignedDateTime property value. The date and time at which the plan was assigned. The Timestamp 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



47
48
49
# File 'lib/models/assigned_plan.rb', line 47

def assigned_date_time
    return @assigned_date_time
end

#assigned_date_time=(value) ⇒ Object

Sets the assignedDateTime property value. The date and time at which the plan was assigned. The Timestamp 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 assignedDateTime property.

Returns:

  • a void



55
56
57
# File 'lib/models/assigned_plan.rb', line 55

def assigned_date_time=(value)
    @assigned_date_time = value
end

#capability_statusObject

Gets the capabilityStatus property value. Condition of the capability assignment. The possible values are Enabled, Warning, Suspended, Deleted, LockedOut. See a detailed description of each value.

Returns:

  • a string



62
63
64
# File 'lib/models/assigned_plan.rb', line 62

def capability_status
    return @capability_status
end

#capability_status=(value) ⇒ Object

Sets the capabilityStatus property value. Condition of the capability assignment. The possible values are Enabled, Warning, Suspended, Deleted, LockedOut. See a detailed description of each value.

Parameters:

  • value

    Value to set for the capabilityStatus property.

Returns:

  • a void



70
71
72
# File 'lib/models/assigned_plan.rb', line 70

def capability_status=(value)
    @capability_status = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



93
94
95
96
97
98
99
100
101
# File 'lib/models/assigned_plan.rb', line 93

def get_field_deserializers()
    return {
        "assignedDateTime" => lambda {|n| @assigned_date_time = n.get_date_time_value() },
        "capabilityStatus" => lambda {|n| @capability_status = n.get_string_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "service" => lambda {|n| @service = n.get_string_value() },
        "servicePlanId" => lambda {|n| @service_plan_id = n.get_guid_value() },
    }
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



106
107
108
# File 'lib/models/assigned_plan.rb', line 106

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



114
115
116
# File 'lib/models/assigned_plan.rb', line 114

def odata_type=(value)
    @odata_type = 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)


122
123
124
125
126
127
128
129
130
# File 'lib/models/assigned_plan.rb', line 122

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_date_time_value("assignedDateTime", @assigned_date_time)
    writer.write_string_value("capabilityStatus", @capability_status)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_string_value("service", @service)
    writer.write_guid_value("servicePlanId", @service_plan_id)
    writer.write_additional_data(@additional_data)
end

#serviceObject

Gets the service property value. The name of the service; for example, exchange.

Returns:

  • a string



135
136
137
# File 'lib/models/assigned_plan.rb', line 135

def service
    return @service
end

#service=(value) ⇒ Object

Sets the service property value. The name of the service; for example, exchange.

Parameters:

  • value

    Value to set for the service property.

Returns:

  • a void



143
144
145
# File 'lib/models/assigned_plan.rb', line 143

def service=(value)
    @service = value
end

#service_plan_idObject

Gets the servicePlanId property value. A GUID that identifies the service plan. For a complete list of GUIDs and their equivalent friendly service names, see Product names and service plan identifiers for licensing.

Returns:

  • a guid



150
151
152
# File 'lib/models/assigned_plan.rb', line 150

def service_plan_id
    return @service_plan_id
end

#service_plan_id=(value) ⇒ Object

Sets the servicePlanId property value. A GUID that identifies the service plan. For a complete list of GUIDs and their equivalent friendly service names, see Product names and service plan identifiers for licensing.

Parameters:

  • value

    Value to set for the servicePlanId property.

Returns:

  • a void



158
159
160
# File 'lib/models/assigned_plan.rb', line 158

def service_plan_id=(value)
    @service_plan_id = value
end