Class: MicrosoftGraph::Models::TermsOfUseContainer
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/terms_of_use_container.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
-
#agreement_acceptances ⇒ Object
Gets the agreementAcceptances property value.
-
#agreement_acceptances=(value) ⇒ Object
Sets the agreementAcceptances property value.
-
#agreements ⇒ Object
Gets the agreements property value.
-
#agreements=(value) ⇒ Object
Sets the agreements property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new termsOfUseContainer and sets the default values.
-
#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 termsOfUseContainer and sets the default values.
49 50 51 |
# File 'lib/models/terms_of_use_container.rb', line 49 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
57 58 59 60 |
# File 'lib/models/terms_of_use_container.rb', line 57 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return TermsOfUseContainer.new end |
Instance Method Details
#agreement_acceptances ⇒ Object
Gets the agreementAcceptances property value. Represents the current status of a user’s response to a company’s customizable terms of use agreement.
19 20 21 |
# File 'lib/models/terms_of_use_container.rb', line 19 def agreement_acceptances return @agreement_acceptances end |
#agreement_acceptances=(value) ⇒ Object
Sets the agreementAcceptances property value. Represents the current status of a user’s response to a company’s customizable terms of use agreement.
27 28 29 |
# File 'lib/models/terms_of_use_container.rb', line 27 def agreement_acceptances=(value) @agreement_acceptances = value end |
#agreements ⇒ Object
Gets the agreements property value. Represents a tenant’s customizable terms of use agreement that’s created and managed with Azure Active Directory (Azure AD).
34 35 36 |
# File 'lib/models/terms_of_use_container.rb', line 34 def agreements return @agreements end |
#agreements=(value) ⇒ Object
Sets the agreements property value. Represents a tenant’s customizable terms of use agreement that’s created and managed with Azure Active Directory (Azure AD).
42 43 44 |
# File 'lib/models/terms_of_use_container.rb', line 42 def agreements=(value) @agreements = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
65 66 67 68 69 70 |
# File 'lib/models/terms_of_use_container.rb', line 65 def get_field_deserializers() return super.merge({ "agreementAcceptances" => lambda {|n| @agreement_acceptances = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AgreementAcceptance.create_from_discriminator_value(pn) }) }, "agreements" => lambda {|n| @agreements = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Agreement.create_from_discriminator_value(pn) }) }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
76 77 78 79 80 81 |
# File 'lib/models/terms_of_use_container.rb', line 76 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("agreementAcceptances", @agreement_acceptances) writer.write_collection_of_object_values("agreements", @agreements) end |