Class: MicrosoftGraph::Models::ConnectedOrganization

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



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

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 connected_organization

Raises:

  • (StandardError)


61
62
63
64
# File 'lib/models/connected_organization.rb', line 61

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

Instance Method Details

#created_date_timeObject

Gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.

Returns:

  • a date_time



45
46
47
# File 'lib/models/connected_organization.rb', line 45

def created_date_time
    return @created_date_time
end

#created_date_time=(value) ⇒ Object

Sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



53
54
55
# File 'lib/models/connected_organization.rb', line 53

def created_date_time=(value)
    @created_date_time = value
end

#descriptionObject

Gets the description property value. The description of the connected organization.

Returns:

  • a string



69
70
71
# File 'lib/models/connected_organization.rb', line 69

def description
    return @description
end

#description=(value) ⇒ Object

Sets the description property value. The description of the connected organization.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



77
78
79
# File 'lib/models/connected_organization.rb', line 77

def description=(value)
    @description = value
end

#display_nameObject

Gets the displayName property value. The display name of the connected organization. Supports $filter (eq).

Returns:

  • a string



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

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The display name of the connected organization. Supports $filter (eq).

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



92
93
94
# File 'lib/models/connected_organization.rb', line 92

def display_name=(value)
    @display_name = value
end

#external_sponsorsObject

Gets the externalSponsors property value. The externalSponsors property

Returns:

  • a directory_object



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

def external_sponsors
    return @external_sponsors
end

#external_sponsors=(value) ⇒ Object

Sets the externalSponsors property value. The externalSponsors property

Parameters:

  • value

    Value to set for the externalSponsors property.

Returns:

  • a void



107
108
109
# File 'lib/models/connected_organization.rb', line 107

def external_sponsors=(value)
    @external_sponsors = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



114
115
116
117
118
119
120
121
122
123
124
125
# File 'lib/models/connected_organization.rb', line 114

def get_field_deserializers()
    return super.merge({
        "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() },
        "description" => lambda {|n| @description = n.get_string_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "externalSponsors" => lambda {|n| @external_sponsors = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) },
        "identitySources" => lambda {|n| @identity_sources = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::IdentitySource.create_from_discriminator_value(pn) }) },
        "internalSponsors" => lambda {|n| @internal_sponsors = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) },
        "modifiedDateTime" => lambda {|n| @modified_date_time = n.get_date_time_value() },
        "state" => lambda {|n| @state = n.get_enum_value(MicrosoftGraph::Models::ConnectedOrganizationState) },
    })
end

#identity_sourcesObject

Gets the identitySources property value. The identity sources in this connected organization, one of azureActiveDirectoryTenant, domainIdentitySource, externalDomainFederation or crossCloudAzureActiveDirectoryTenant. Nullable.

Returns:

  • a identity_source



130
131
132
# File 'lib/models/connected_organization.rb', line 130

def identity_sources
    return @identity_sources
end

#identity_sources=(value) ⇒ Object

Sets the identitySources property value. The identity sources in this connected organization, one of azureActiveDirectoryTenant, domainIdentitySource, externalDomainFederation or crossCloudAzureActiveDirectoryTenant. Nullable.

Parameters:

  • value

    Value to set for the identitySources property.

Returns:

  • a void



138
139
140
# File 'lib/models/connected_organization.rb', line 138

def identity_sources=(value)
    @identity_sources = value
end

#internal_sponsorsObject

Gets the internalSponsors property value. The internalSponsors property

Returns:

  • a directory_object



145
146
147
# File 'lib/models/connected_organization.rb', line 145

def internal_sponsors
    return @internal_sponsors
end

#internal_sponsors=(value) ⇒ Object

Sets the internalSponsors property value. The internalSponsors property

Parameters:

  • value

    Value to set for the internalSponsors property.

Returns:

  • a void



153
154
155
# File 'lib/models/connected_organization.rb', line 153

def internal_sponsors=(value)
    @internal_sponsors = value
end

#modified_date_timeObject

Gets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.

Returns:

  • a date_time



160
161
162
# File 'lib/models/connected_organization.rb', line 160

def modified_date_time
    return @modified_date_time
end

#modified_date_time=(value) ⇒ Object

Sets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.

Parameters:

  • value

    Value to set for the modifiedDateTime property.

Returns:

  • a void



168
169
170
# File 'lib/models/connected_organization.rb', line 168

def modified_date_time=(value)
    @modified_date_time = 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)


176
177
178
179
180
181
182
183
184
185
186
187
# File 'lib/models/connected_organization.rb', line 176

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_date_time_value("createdDateTime", @created_date_time)
    writer.write_string_value("description", @description)
    writer.write_string_value("displayName", @display_name)
    writer.write_collection_of_object_values("externalSponsors", @external_sponsors)
    writer.write_collection_of_object_values("identitySources", @identity_sources)
    writer.write_collection_of_object_values("internalSponsors", @internal_sponsors)
    writer.write_date_time_value("modifiedDateTime", @modified_date_time)
    writer.write_enum_value("state", @state)
end

#stateObject

Gets the state property value. The state of a connected organization defines whether assignment policies with requestor scope type AllConfiguredConnectedOrganizationSubjects are applicable or not. The possible values are: configured, proposed, unknownFutureValue.

Returns:

  • a connected_organization_state



192
193
194
# File 'lib/models/connected_organization.rb', line 192

def state
    return @state
end

#state=(value) ⇒ Object

Sets the state property value. The state of a connected organization defines whether assignment policies with requestor scope type AllConfiguredConnectedOrganizationSubjects are applicable or not. The possible values are: configured, proposed, unknownFutureValue.

Parameters:

  • value

    Value to set for the state property.

Returns:

  • a void



200
201
202
# File 'lib/models/connected_organization.rb', line 200

def state=(value)
    @state = value
end