Class: MicrosoftGraph::Models::ConditionalAccessTemplate
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/conditional_access_template.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.
-
#details ⇒ Object
Gets the details property value.
-
#details=(value) ⇒ Object
Sets the details property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new conditionalAccessTemplate and sets the default values.
-
#name ⇒ Object
Gets the name property value.
-
#name=(value) ⇒ Object
Sets the name property value.
-
#scenarios ⇒ Object
Gets the scenarios property value.
-
#scenarios=(value) ⇒ Object
Sets the scenarios 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 conditionalAccessTemplate and sets the default values.
25 26 27 |
# File 'lib/models/conditional_access_template.rb', line 25 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
33 34 35 36 |
# File 'lib/models/conditional_access_template.rb', line 33 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ConditionalAccessTemplate.new end |
Instance Method Details
#description ⇒ Object
Gets the description property value. The user-friendly name of the template.
41 42 43 |
# File 'lib/models/conditional_access_template.rb', line 41 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. The user-friendly name of the template.
49 50 51 |
# File 'lib/models/conditional_access_template.rb', line 49 def description=(value) @description = value end |
#details ⇒ Object
Gets the details property value. The details property
56 57 58 |
# File 'lib/models/conditional_access_template.rb', line 56 def details return @details end |
#details=(value) ⇒ Object
Sets the details property value. The details property
64 65 66 |
# File 'lib/models/conditional_access_template.rb', line 64 def details=(value) @details = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
71 72 73 74 75 76 77 78 |
# File 'lib/models/conditional_access_template.rb', line 71 def get_field_deserializers() return super.merge({ "description" => lambda {|n| @description = n.get_string_value() }, "details" => lambda {|n| @details = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ConditionalAccessPolicyDetail.create_from_discriminator_value(pn) }) }, "name" => lambda {|n| @name = n.get_string_value() }, "scenarios" => lambda {|n| @scenarios = n.get_enum_value(MicrosoftGraph::Models::TemplateScenarios) }, }) end |
#name ⇒ Object
Gets the name property value. The user-friendly name of the template.
83 84 85 |
# File 'lib/models/conditional_access_template.rb', line 83 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. The user-friendly name of the template.
91 92 93 |
# File 'lib/models/conditional_access_template.rb', line 91 def name=(value) @name = value end |
#scenarios ⇒ Object
Gets the scenarios property value. The scenarios property
98 99 100 |
# File 'lib/models/conditional_access_template.rb', line 98 def scenarios return @scenarios end |
#scenarios=(value) ⇒ Object
Sets the scenarios property value. The scenarios property
106 107 108 |
# File 'lib/models/conditional_access_template.rb', line 106 def scenarios=(value) @scenarios = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
114 115 116 117 118 119 120 121 |
# File 'lib/models/conditional_access_template.rb', line 114 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("description", @description) writer.write_object_value("details", @details) writer.write_string_value("name", @name) writer.write_enum_value("scenarios", @scenarios) end |