Class: MicrosoftGraph::Models::VerifiedDomain

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/verified_domain.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new verifiedDomain and sets the default values.



64
65
66
# File 'lib/models/verified_domain.rb', line 64

def initialize()
    @additional_data = Hash.new
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 verified_domain

Raises:

  • (StandardError)


72
73
74
75
# File 'lib/models/verified_domain.rb', line 72

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return VerifiedDomain.new
end

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



34
35
36
# File 'lib/models/verified_domain.rb', line 34

def additional_data
    return @additional_data
end

#additional_data=(value) ⇒ Object

Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



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

def additional_data=(value)
    @additional_data = value
end

#capabilitiesObject

Gets the capabilities property value. For example, Email, OfficeCommunicationsOnline.

Returns:

  • a string



49
50
51
# File 'lib/models/verified_domain.rb', line 49

def capabilities
    return @capabilities
end

#capabilities=(value) ⇒ Object

Sets the capabilities property value. For example, Email, OfficeCommunicationsOnline.

Parameters:

  • value

    Value to set for the capabilities property.

Returns:

  • a void



57
58
59
# File 'lib/models/verified_domain.rb', line 57

def capabilities=(value)
    @capabilities = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



80
81
82
83
84
85
86
87
88
89
# File 'lib/models/verified_domain.rb', line 80

def get_field_deserializers()
    return {
        "capabilities" => lambda {|n| @capabilities = n.get_string_value() },
        "isDefault" => lambda {|n| @is_default = n.get_boolean_value() },
        "isInitial" => lambda {|n| @is_initial = n.get_boolean_value() },
        "name" => lambda {|n| @name = n.get_string_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "type" => lambda {|n| @type = n.get_string_value() },
    }
end

#is_defaultObject

Gets the isDefault property value. true if this is the default domain associated with the tenant; otherwise, false.

Returns:

  • a boolean



94
95
96
# File 'lib/models/verified_domain.rb', line 94

def is_default
    return @is_default
end

#is_default=(value) ⇒ Object

Sets the isDefault property value. true if this is the default domain associated with the tenant; otherwise, false.

Parameters:

  • value

    Value to set for the isDefault property.

Returns:

  • a void



102
103
104
# File 'lib/models/verified_domain.rb', line 102

def is_default=(value)
    @is_default = value
end

#is_initialObject

Gets the isInitial property value. true if this is the initial domain associated with the tenant; otherwise, false.

Returns:

  • a boolean



109
110
111
# File 'lib/models/verified_domain.rb', line 109

def is_initial
    return @is_initial
end

#is_initial=(value) ⇒ Object

Sets the isInitial property value. true if this is the initial domain associated with the tenant; otherwise, false.

Parameters:

  • value

    Value to set for the isInitial property.

Returns:

  • a void



117
118
119
# File 'lib/models/verified_domain.rb', line 117

def is_initial=(value)
    @is_initial = value
end

#nameObject

Gets the name property value. The domain name; for example, contoso.onmicrosoft.com.

Returns:

  • a string



124
125
126
# File 'lib/models/verified_domain.rb', line 124

def name
    return @name
end

#name=(value) ⇒ Object

Sets the name property value. The domain name; for example, contoso.onmicrosoft.com.

Parameters:

  • value

    Value to set for the name property.

Returns:

  • a void



132
133
134
# File 'lib/models/verified_domain.rb', line 132

def name=(value)
    @name = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



139
140
141
# File 'lib/models/verified_domain.rb', line 139

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



147
148
149
# File 'lib/models/verified_domain.rb', line 147

def odata_type=(value)
    @odata_type = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


155
156
157
158
159
160
161
162
163
164
# File 'lib/models/verified_domain.rb', line 155

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("capabilities", @capabilities)
    writer.write_boolean_value("isDefault", @is_default)
    writer.write_boolean_value("isInitial", @is_initial)
    writer.write_string_value("name", @name)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_string_value("type", @type)
    writer.write_additional_data(@additional_data)
end

#typeObject

Gets the type property value. For example, Managed.

Returns:

  • a string



169
170
171
# File 'lib/models/verified_domain.rb', line 169

def type
    return @type
end

#type=(value) ⇒ Object

Sets the type property value. For example, Managed.

Parameters:

  • value

    Value to set for the type property.

Returns:

  • a void



177
178
179
# File 'lib/models/verified_domain.rb', line 177

def type=(value)
    @type = value
end