Class: MicrosoftGraph::Models::SchemaExtension
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/schema_extension.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.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new schemaExtension and sets the default values.
-
#owner ⇒ Object
Gets the owner property value.
-
#owner=(value) ⇒ Object
Sets the owner property value.
-
#properties ⇒ Object
Gets the properties property value.
-
#properties=(value) ⇒ Object
Sets the properties property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
-
#target_types ⇒ Object
Gets the targetTypes property value.
-
#target_types=(value) ⇒ Object
Sets the targetTypes property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new schemaExtension and sets the default values.
28 29 30 |
# File 'lib/models/schema_extension.rb', line 28 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
36 37 38 39 |
# File 'lib/models/schema_extension.rb', line 36 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SchemaExtension.new end |
Instance Method Details
#description ⇒ Object
Gets the description property value. Description for the schema extension. Supports $filter (eq).
44 45 46 |
# File 'lib/models/schema_extension.rb', line 44 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Description for the schema extension. Supports $filter (eq).
52 53 54 |
# File 'lib/models/schema_extension.rb', line 52 def description=(value) @description = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
59 60 61 62 63 64 65 66 67 |
# File 'lib/models/schema_extension.rb', line 59 def get_field_deserializers() return super.merge({ "description" => lambda {|n| @description = n.get_string_value() }, "owner" => lambda {|n| @owner = n.get_string_value() }, "properties" => lambda {|n| @properties = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionSchemaProperty.create_from_discriminator_value(pn) }) }, "status" => lambda {|n| @status = n.get_string_value() }, "targetTypes" => lambda {|n| @target_types = n.get_collection_of_primitive_values(String) }, }) end |
#owner ⇒ Object
Gets the owner property value. The appId of the application that is the owner of the schema extension. The owner of the schema definition must be explicitly specified during the Create and Update operations, or it will be implied and auto-assigned by Azure AD as follows: In delegated access: The signed-in user must be the owner of the app that calls Microsoft Graph to create the schema extension definition. If the signed-in user isn’t the owner of the calling app, they must explicitly specify the owner property, and assign it the appId of an app that they own. In app-only access: The owner property isn’t required in the request body. Instead, the calling app is assigned ownership of the schema extension. So, for example, if creating a new schema extension definition using Graph Explorer, you must supply the owner property. Once set, this property is read-only and cannot be changed. Supports $filter (eq).
72 73 74 |
# File 'lib/models/schema_extension.rb', line 72 def owner return @owner end |
#owner=(value) ⇒ Object
Sets the owner property value. The appId of the application that is the owner of the schema extension. The owner of the schema definition must be explicitly specified during the Create and Update operations, or it will be implied and auto-assigned by Azure AD as follows: In delegated access: The signed-in user must be the owner of the app that calls Microsoft Graph to create the schema extension definition. If the signed-in user isn’t the owner of the calling app, they must explicitly specify the owner property, and assign it the appId of an app that they own. In app-only access: The owner property isn’t required in the request body. Instead, the calling app is assigned ownership of the schema extension. So, for example, if creating a new schema extension definition using Graph Explorer, you must supply the owner property. Once set, this property is read-only and cannot be changed. Supports $filter (eq).
80 81 82 |
# File 'lib/models/schema_extension.rb', line 80 def owner=(value) @owner = value end |
#properties ⇒ Object
Gets the properties property value. The collection of property names and types that make up the schema extension definition.
87 88 89 |
# File 'lib/models/schema_extension.rb', line 87 def properties return @properties end |
#properties=(value) ⇒ Object
Sets the properties property value. The collection of property names and types that make up the schema extension definition.
95 96 97 |
# File 'lib/models/schema_extension.rb', line 95 def properties=(value) @properties = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
103 104 105 106 107 108 109 110 111 |
# File 'lib/models/schema_extension.rb', line 103 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("description", @description) writer.write_string_value("owner", @owner) writer.write_collection_of_object_values("properties", @properties) writer.write_string_value("status", @status) writer.write_collection_of_primitive_values("targetTypes", @target_types) end |
#status ⇒ Object
Gets the status property value. The lifecycle state of the schema extension. Possible states are InDevelopment, Available, and Deprecated. Automatically set to InDevelopment on creation. For more information about the possible state transitions and behaviors, see Schema extensions lifecycle. Supports $filter (eq).
116 117 118 |
# File 'lib/models/schema_extension.rb', line 116 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. The lifecycle state of the schema extension. Possible states are InDevelopment, Available, and Deprecated. Automatically set to InDevelopment on creation. For more information about the possible state transitions and behaviors, see Schema extensions lifecycle. Supports $filter (eq).
124 125 126 |
# File 'lib/models/schema_extension.rb', line 124 def status=(value) @status = value end |
#target_types ⇒ Object
Gets the targetTypes property value. Set of Microsoft Graph types (that can support extensions) that the schema extension can be applied to. Select from administrativeUnit, contact, device, event, group, message, organization, post, todoTask, todoTaskList, or user.
131 132 133 |
# File 'lib/models/schema_extension.rb', line 131 def target_types return @target_types end |
#target_types=(value) ⇒ Object
Sets the targetTypes property value. Set of Microsoft Graph types (that can support extensions) that the schema extension can be applied to. Select from administrativeUnit, contact, device, event, group, message, organization, post, todoTask, todoTaskList, or user.
139 140 141 |
# File 'lib/models/schema_extension.rb', line 139 def target_types=(value) @target_types = value end |