Class: MicrosoftGraph::Models::Agreement
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/agreement.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
-
#acceptances ⇒ Object
Gets the acceptances property value.
-
#acceptances=(value) ⇒ Object
Sets the acceptances property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#file ⇒ Object
Gets the file property value.
-
#file=(value) ⇒ Object
Sets the file property value.
-
#files ⇒ Object
Gets the files property value.
-
#files=(value) ⇒ Object
Sets the files property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new agreement and sets the default values.
-
#is_per_device_acceptance_required ⇒ Object
Gets the isPerDeviceAcceptanceRequired property value.
-
#is_per_device_acceptance_required=(value) ⇒ Object
Sets the isPerDeviceAcceptanceRequired property value.
-
#is_viewing_before_acceptance_required ⇒ Object
Gets the isViewingBeforeAcceptanceRequired property value.
-
#is_viewing_before_acceptance_required=(value) ⇒ Object
Sets the isViewingBeforeAcceptanceRequired property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#terms_expiration ⇒ Object
Gets the termsExpiration property value.
-
#terms_expiration=(value) ⇒ Object
Sets the termsExpiration property value.
-
#user_reaccept_required_frequency ⇒ Object
Gets the userReacceptRequiredFrequency property value.
-
#user_reaccept_required_frequency=(value) ⇒ Object
Sets the userReacceptRequiredFrequency property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new agreement and sets the default values.
52 53 54 |
# File 'lib/models/agreement.rb', line 52 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
60 61 62 63 |
# File 'lib/models/agreement.rb', line 60 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Agreement.new end |
Instance Method Details
#acceptances ⇒ Object
Gets the acceptances property value. Read-only. Information about acceptances of this agreement.
37 38 39 |
# File 'lib/models/agreement.rb', line 37 def acceptances return @acceptances end |
#acceptances=(value) ⇒ Object
Sets the acceptances property value. Read-only. Information about acceptances of this agreement.
45 46 47 |
# File 'lib/models/agreement.rb', line 45 def acceptances=(value) @acceptances = value end |
#display_name ⇒ Object
Gets the displayName property value. Display name of the agreement. The display name is used for internal tracking of the agreement but is not shown to end users who view the agreement. Supports $filter (eq).
68 69 70 |
# File 'lib/models/agreement.rb', line 68 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Display name of the agreement. The display name is used for internal tracking of the agreement but is not shown to end users who view the agreement. Supports $filter (eq).
76 77 78 |
# File 'lib/models/agreement.rb', line 76 def display_name=(value) @display_name = value end |
#file ⇒ Object
Gets the file property value. Default PDF linked to this agreement.
83 84 85 |
# File 'lib/models/agreement.rb', line 83 def file return @file end |
#file=(value) ⇒ Object
Sets the file property value. Default PDF linked to this agreement.
91 92 93 |
# File 'lib/models/agreement.rb', line 91 def file=(value) @file = value end |
#files ⇒ Object
Gets the files property value. PDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead. Supports $expand.
98 99 100 |
# File 'lib/models/agreement.rb', line 98 def files return @files end |
#files=(value) ⇒ Object
Sets the files property value. PDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead. Supports $expand.
106 107 108 |
# File 'lib/models/agreement.rb', line 106 def files=(value) @files = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/models/agreement.rb', line 113 def get_field_deserializers() return super.merge({ "acceptances" => lambda {|n| @acceptances = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AgreementAcceptance.create_from_discriminator_value(pn) }) }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "file" => lambda {|n| @file = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AgreementFile.create_from_discriminator_value(pn) }) }, "files" => lambda {|n| @files = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AgreementFileLocalization.create_from_discriminator_value(pn) }) }, "isPerDeviceAcceptanceRequired" => lambda {|n| @is_per_device_acceptance_required = n.get_boolean_value() }, "isViewingBeforeAcceptanceRequired" => lambda {|n| @is_viewing_before_acceptance_required = n.get_boolean_value() }, "termsExpiration" => lambda {|n| @terms_expiration = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TermsExpiration.create_from_discriminator_value(pn) }) }, "userReacceptRequiredFrequency" => lambda {|n| @user_reaccept_required_frequency = n.get_duration_value() }, }) end |
#is_per_device_acceptance_required ⇒ Object
Gets the isPerDeviceAcceptanceRequired property value. Indicates whether end users are required to accept this agreement on every device that they access it from. The end user is required to register their device in Azure AD, if they haven’t already done so. Supports $filter (eq).
129 130 131 |
# File 'lib/models/agreement.rb', line 129 def is_per_device_acceptance_required return @is_per_device_acceptance_required end |
#is_per_device_acceptance_required=(value) ⇒ Object
Sets the isPerDeviceAcceptanceRequired property value. Indicates whether end users are required to accept this agreement on every device that they access it from. The end user is required to register their device in Azure AD, if they haven’t already done so. Supports $filter (eq).
137 138 139 |
# File 'lib/models/agreement.rb', line 137 def is_per_device_acceptance_required=(value) @is_per_device_acceptance_required = value end |
#is_viewing_before_acceptance_required ⇒ Object
Gets the isViewingBeforeAcceptanceRequired property value. Indicates whether the user has to expand the agreement before accepting. Supports $filter (eq).
144 145 146 |
# File 'lib/models/agreement.rb', line 144 def is_viewing_before_acceptance_required return @is_viewing_before_acceptance_required end |
#is_viewing_before_acceptance_required=(value) ⇒ Object
Sets the isViewingBeforeAcceptanceRequired property value. Indicates whether the user has to expand the agreement before accepting. Supports $filter (eq).
152 153 154 |
# File 'lib/models/agreement.rb', line 152 def is_viewing_before_acceptance_required=(value) @is_viewing_before_acceptance_required = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
160 161 162 163 164 165 166 167 168 169 170 171 |
# File 'lib/models/agreement.rb', line 160 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("acceptances", @acceptances) writer.write_string_value("displayName", @display_name) writer.write_object_value("file", @file) writer.write_collection_of_object_values("files", @files) writer.write_boolean_value("isPerDeviceAcceptanceRequired", @is_per_device_acceptance_required) writer.write_boolean_value("isViewingBeforeAcceptanceRequired", @is_viewing_before_acceptance_required) writer.write_object_value("termsExpiration", @terms_expiration) writer.write_duration_value("userReacceptRequiredFrequency", @user_reaccept_required_frequency) end |
#terms_expiration ⇒ Object
Gets the termsExpiration property value. Expiration schedule and frequency of agreement for all users. Supports $filter (eq).
176 177 178 |
# File 'lib/models/agreement.rb', line 176 def terms_expiration return @terms_expiration end |
#terms_expiration=(value) ⇒ Object
Sets the termsExpiration property value. Expiration schedule and frequency of agreement for all users. Supports $filter (eq).
184 185 186 |
# File 'lib/models/agreement.rb', line 184 def terms_expiration=(value) @terms_expiration = value end |
#user_reaccept_required_frequency ⇒ Object
Gets the userReacceptRequiredFrequency property value. The duration after which the user must re-accept the terms of use. The value is represented in ISO 8601 format for durations. Supports $filter (eq).
191 192 193 |
# File 'lib/models/agreement.rb', line 191 def user_reaccept_required_frequency return @user_reaccept_required_frequency end |
#user_reaccept_required_frequency=(value) ⇒ Object
Sets the userReacceptRequiredFrequency property value. The duration after which the user must re-accept the terms of use. The value is represented in ISO 8601 format for durations. Supports $filter (eq).
199 200 201 |
# File 'lib/models/agreement.rb', line 199 def user_reaccept_required_frequency=(value) @user_reaccept_required_frequency = value end |