Class: MicrosoftGraph::Models::TermStoreGroup
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/term_store_group.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 termStoreGroup and sets the default values.
-
#parent_site_id ⇒ Object
Gets the parentSiteId property value.
-
#parent_site_id=(value) ⇒ Object
Sets the parentSiteId property value.
-
#scope ⇒ Object
Gets the scope property value.
-
#scope=(value) ⇒ Object
Sets the scope property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#sets ⇒ Object
Gets the sets property value.
-
#sets=(value) ⇒ Object
Sets the sets property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new termStoreGroup and sets the default values.
32 33 34 |
# File 'lib/models/term_store_group.rb', line 32 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
55 56 57 58 |
# File 'lib/models/term_store_group.rb', line 55 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return TermStoreGroup.new end |
Instance Method Details
#created_date_time ⇒ Object
Gets the createdDateTime property value. Date and time of the group creation. Read-only.
39 40 41 |
# File 'lib/models/term_store_group.rb', line 39 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. Date and time of the group creation. Read-only.
47 48 49 |
# File 'lib/models/term_store_group.rb', line 47 def created_date_time=(value) @created_date_time = value end |
#description ⇒ Object
Gets the description property value. Description that gives details on the term usage.
63 64 65 |
# File 'lib/models/term_store_group.rb', line 63 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Description that gives details on the term usage.
71 72 73 |
# File 'lib/models/term_store_group.rb', line 71 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. Name of the group.
78 79 80 |
# File 'lib/models/term_store_group.rb', line 78 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Name of the group.
86 87 88 |
# File 'lib/models/term_store_group.rb', line 86 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
93 94 95 96 97 98 99 100 101 102 |
# File 'lib/models/term_store_group.rb', line 93 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() }, "parentSiteId" => lambda {|n| @parent_site_id = n.get_string_value() }, "scope" => lambda {|n| @scope = n.get_enum_value(MicrosoftGraph::Models::TermStoreTermGroupScope) }, "sets" => lambda {|n| @sets = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }) }, }) end |
#parent_site_id ⇒ Object
Gets the parentSiteId property value. ID of the parent site of this group.
107 108 109 |
# File 'lib/models/term_store_group.rb', line 107 def parent_site_id return @parent_site_id end |
#parent_site_id=(value) ⇒ Object
Sets the parentSiteId property value. ID of the parent site of this group.
115 116 117 |
# File 'lib/models/term_store_group.rb', line 115 def parent_site_id=(value) @parent_site_id = value end |
#scope ⇒ Object
Gets the scope property value. Returns the type of the group. Possible values are: global, system, and siteCollection.
122 123 124 |
# File 'lib/models/term_store_group.rb', line 122 def scope return @scope end |
#scope=(value) ⇒ Object
Sets the scope property value. Returns the type of the group. Possible values are: global, system, and siteCollection.
130 131 132 |
# File 'lib/models/term_store_group.rb', line 130 def scope=(value) @scope = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
138 139 140 141 142 143 144 145 146 147 |
# File 'lib/models/term_store_group.rb', line 138 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_string_value("parentSiteId", @parent_site_id) writer.write_enum_value("scope", @scope) writer.write_collection_of_object_values("sets", @sets) end |
#sets ⇒ Object
Gets the sets property value. All sets under the group in a term [store].
152 153 154 |
# File 'lib/models/term_store_group.rb', line 152 def sets return @sets end |
#sets=(value) ⇒ Object
Sets the sets property value. All sets under the group in a term [store].
160 161 162 |
# File 'lib/models/term_store_group.rb', line 160 def sets=(value) @sets = value end |