Class: MicrosoftGraph::Models::DelegatedAdminCustomer

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/delegated_admin_customer.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 delegatedAdminCustomer and sets the default values.



22
23
24
# File 'lib/models/delegated_admin_customer.rb', line 22

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 delegated_admin_customer

Raises:

  • (StandardError)


30
31
32
33
# File 'lib/models/delegated_admin_customer.rb', line 30

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

Instance Method Details

#display_nameObject

Gets the displayName property value. The Azure AD display name of the customer tenant. Read-only. Supports $orderBy.

Returns:

  • a string



38
39
40
# File 'lib/models/delegated_admin_customer.rb', line 38

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The Azure AD display name of the customer tenant. Read-only. Supports $orderBy.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



46
47
48
# File 'lib/models/delegated_admin_customer.rb', line 46

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



53
54
55
56
57
58
59
# File 'lib/models/delegated_admin_customer.rb', line 53

def get_field_deserializers()
    return super.merge({
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "serviceManagementDetails" => lambda {|n| @service_management_details = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DelegatedAdminServiceManagementDetail.create_from_discriminator_value(pn) }) },
        "tenantId" => lambda {|n| @tenant_id = n.get_string_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)


65
66
67
68
69
70
71
# File 'lib/models/delegated_admin_customer.rb', line 65

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("displayName", @display_name)
    writer.write_collection_of_object_values("serviceManagementDetails", @service_management_details)
    writer.write_string_value("tenantId", @tenant_id)
end

#service_management_detailsObject

Gets the serviceManagementDetails property value. Contains the management details of a service in the customer tenant that’s managed by delegated administration.

Returns:

  • a delegated_admin_service_management_detail



76
77
78
# File 'lib/models/delegated_admin_customer.rb', line 76

def service_management_details
    return @service_management_details
end

#service_management_details=(value) ⇒ Object

Sets the serviceManagementDetails property value. Contains the management details of a service in the customer tenant that’s managed by delegated administration.

Parameters:

  • value

    Value to set for the serviceManagementDetails property.

Returns:

  • a void



84
85
86
# File 'lib/models/delegated_admin_customer.rb', line 84

def service_management_details=(value)
    @service_management_details = value
end

#tenant_idObject

Gets the tenantId property value. The Azure AD-assigned tenant ID of the customer. Read-only.

Returns:

  • a string



91
92
93
# File 'lib/models/delegated_admin_customer.rb', line 91

def tenant_id
    return @tenant_id
end

#tenant_id=(value) ⇒ Object

Sets the tenantId property value. The Azure AD-assigned tenant ID of the customer. Read-only.

Parameters:

  • value

    Value to set for the tenantId property.

Returns:

  • a void



99
100
101
# File 'lib/models/delegated_admin_customer.rb', line 99

def tenant_id=(value)
    @tenant_id = value
end