Class: MicrosoftGraph::Models::AssignedPlan
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::AssignedPlan
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/assigned_plan.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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#assigned_date_time ⇒ Object
Gets the assignedDateTime property value.
-
#assigned_date_time=(value) ⇒ Object
Sets the assignedDateTime property value.
-
#capability_status ⇒ Object
Gets the capabilityStatus property value.
-
#capability_status=(value) ⇒ Object
Sets the capabilityStatus property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new assignedPlan and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#service ⇒ Object
Gets the service property value.
-
#service=(value) ⇒ Object
Sets the service property value.
-
#service_plan_id ⇒ Object
Gets the servicePlanId property value.
-
#service_plan_id=(value) ⇒ Object
Sets the servicePlanId property value.
Constructor Details
#initialize ⇒ Object
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
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_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
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.
40 41 42 |
# File 'lib/models/assigned_plan.rb', line 40 def additional_data=(value) @additional_data = value end |
#assigned_date_time ⇒ Object
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.
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.
55 56 57 |
# File 'lib/models/assigned_plan.rb', line 55 def assigned_date_time=(value) @assigned_date_time = value end |
#capability_status ⇒ Object
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.
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.
70 71 72 |
# File 'lib/models/assigned_plan.rb', line 70 def capability_status=(value) @capability_status = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_type ⇒ Object
Gets the @odata.type property value. The OdataType property
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
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
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 |
#service ⇒ Object
Gets the service property value. The name of the service; for example, exchange.
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.
143 144 145 |
# File 'lib/models/assigned_plan.rb', line 143 def service=(value) @service = value end |
#service_plan_id ⇒ Object
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.
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.
158 159 160 |
# File 'lib/models/assigned_plan.rb', line 158 def service_plan_id=(value) @service_plan_id = value end |