Class: MicrosoftGraph::Models::ConnectedOrganization
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/connected_organization.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
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#external_sponsors ⇒ Object
Gets the externalSponsors property value.
-
#external_sponsors=(value) ⇒ Object
Sets the externalSponsors property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#identity_sources ⇒ Object
Gets the identitySources property value.
-
#identity_sources=(value) ⇒ Object
Sets the identitySources property value.
-
#initialize ⇒ Object
constructor
Instantiates a new connectedOrganization and sets the default values.
-
#internal_sponsors ⇒ Object
Gets the internalSponsors property value.
-
#internal_sponsors=(value) ⇒ Object
Sets the internalSponsors property value.
-
#modified_date_time ⇒ Object
Gets the modifiedDateTime property value.
-
#modified_date_time=(value) ⇒ Object
Sets the modifiedDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#state ⇒ Object
Gets the state property value.
-
#state=(value) ⇒ Object
Sets the state property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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_time ⇒ Object
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.
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.
53 54 55 |
# File 'lib/models/connected_organization.rb', line 53 def created_date_time=(value) @created_date_time = value end |
#description ⇒ Object
Gets the description property value. The description of the connected organization.
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.
77 78 79 |
# File 'lib/models/connected_organization.rb', line 77 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. The display name of the connected organization. Supports $filter (eq).
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).
92 93 94 |
# File 'lib/models/connected_organization.rb', line 92 def display_name=(value) @display_name = value end |
#external_sponsors ⇒ Object
Gets the externalSponsors property value. The externalSponsors property
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
107 108 109 |
# File 'lib/models/connected_organization.rb', line 107 def external_sponsors=(value) @external_sponsors = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_sources ⇒ Object
Gets the identitySources property value. The identity sources in this connected organization, one of azureActiveDirectoryTenant, domainIdentitySource, externalDomainFederation or crossCloudAzureActiveDirectoryTenant. Nullable.
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.
138 139 140 |
# File 'lib/models/connected_organization.rb', line 138 def identity_sources=(value) @identity_sources = value end |
#internal_sponsors ⇒ Object
Gets the internalSponsors property value. The internalSponsors property
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
153 154 155 |
# File 'lib/models/connected_organization.rb', line 153 def internal_sponsors=(value) @internal_sponsors = value end |
#modified_date_time ⇒ Object
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.
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.
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
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 |
#state ⇒ Object
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.
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.
200 201 202 |
# File 'lib/models/connected_organization.rb', line 200 def state=(value) @state = value end |