Class: MicrosoftGraph::Models::TermsOfUseContainer

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/terms_of_use_container.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a terms_of_use_container

Raises:

  • (StandardError)


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_acceptancesObject

Gets the agreementAcceptances property value. Represents the current status of a user’s response to a company’s customizable terms of use agreement.

Returns:

  • a agreement_acceptance



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.

Parameters:

  • value

    Value to set for the agreementAcceptances property.

Returns:

  • a void



27
28
29
# File 'lib/models/terms_of_use_container.rb', line 27

def agreement_acceptances=(value)
    @agreement_acceptances = value
end

#agreementsObject

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).

Returns:

  • a agreement



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).

Parameters:

  • value

    Value to set for the agreements property.

Returns:

  • a void



42
43
44
# File 'lib/models/terms_of_use_container.rb', line 42

def agreements=(value)
    @agreements = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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