Class: MicrosoftGraph::Models::SecureScore
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/secure_score.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
-
#active_user_count ⇒ Object
Gets the activeUserCount property value.
-
#active_user_count=(value) ⇒ Object
Sets the activeUserCount property value.
-
#average_comparative_scores ⇒ Object
Gets the averageComparativeScores property value.
-
#average_comparative_scores=(value) ⇒ Object
Sets the averageComparativeScores property value.
-
#azure_tenant_id ⇒ Object
Gets the azureTenantId property value.
-
#azure_tenant_id=(value) ⇒ Object
Sets the azureTenantId property value.
-
#control_scores ⇒ Object
Gets the controlScores property value.
-
#control_scores=(value) ⇒ Object
Sets the controlScores property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#current_score ⇒ Object
Gets the currentScore property value.
-
#current_score=(value) ⇒ Object
Sets the currentScore property value.
-
#enabled_services ⇒ Object
Gets the enabledServices property value.
-
#enabled_services=(value) ⇒ Object
Sets the enabledServices property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new secureScore and sets the default values.
-
#licensed_user_count ⇒ Object
Gets the licensedUserCount property value.
-
#licensed_user_count=(value) ⇒ Object
Sets the licensedUserCount property value.
-
#max_score ⇒ Object
Gets the maxScore property value.
-
#max_score=(value) ⇒ Object
Sets the maxScore property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#vendor_information ⇒ Object
Gets the vendorInformation property value.
-
#vendor_information=(value) ⇒ Object
Sets the vendorInformation property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new secureScore and sets the default values.
89 90 91 |
# File 'lib/models/secure_score.rb', line 89 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
127 128 129 130 |
# File 'lib/models/secure_score.rb', line 127 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SecureScore.new end |
Instance Method Details
#active_user_count ⇒ Object
Gets the activeUserCount property value. Active user count of the given tenant.
44 45 46 |
# File 'lib/models/secure_score.rb', line 44 def active_user_count return @active_user_count end |
#active_user_count=(value) ⇒ Object
Sets the activeUserCount property value. Active user count of the given tenant.
52 53 54 |
# File 'lib/models/secure_score.rb', line 52 def active_user_count=(value) @active_user_count = value end |
#average_comparative_scores ⇒ Object
Gets the averageComparativeScores property value. Average score by different scopes (for example, average by industry, average by seating) and control category (Identity, Data, Device, Apps, Infrastructure) within the scope.
59 60 61 |
# File 'lib/models/secure_score.rb', line 59 def average_comparative_scores return @average_comparative_scores end |
#average_comparative_scores=(value) ⇒ Object
Sets the averageComparativeScores property value. Average score by different scopes (for example, average by industry, average by seating) and control category (Identity, Data, Device, Apps, Infrastructure) within the scope.
67 68 69 |
# File 'lib/models/secure_score.rb', line 67 def average_comparative_scores=(value) @average_comparative_scores = value end |
#azure_tenant_id ⇒ Object
Gets the azureTenantId property value. GUID string for tenant ID.
74 75 76 |
# File 'lib/models/secure_score.rb', line 74 def azure_tenant_id return @azure_tenant_id end |
#azure_tenant_id=(value) ⇒ Object
Sets the azureTenantId property value. GUID string for tenant ID.
82 83 84 |
# File 'lib/models/secure_score.rb', line 82 def azure_tenant_id=(value) @azure_tenant_id = value end |
#control_scores ⇒ Object
Gets the controlScores property value. Contains tenant scores for a set of controls.
96 97 98 |
# File 'lib/models/secure_score.rb', line 96 def control_scores return @control_scores end |
#control_scores=(value) ⇒ Object
Sets the controlScores property value. Contains tenant scores for a set of controls.
104 105 106 |
# File 'lib/models/secure_score.rb', line 104 def control_scores=(value) @control_scores = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. The date when the entity is created.
111 112 113 |
# File 'lib/models/secure_score.rb', line 111 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. The date when the entity is created.
119 120 121 |
# File 'lib/models/secure_score.rb', line 119 def created_date_time=(value) @created_date_time = value end |
#current_score ⇒ Object
Gets the currentScore property value. Tenant current attained score on specified date.
135 136 137 |
# File 'lib/models/secure_score.rb', line 135 def current_score return @current_score end |
#current_score=(value) ⇒ Object
Sets the currentScore property value. Tenant current attained score on specified date.
143 144 145 |
# File 'lib/models/secure_score.rb', line 143 def current_score=(value) @current_score = value end |
#enabled_services ⇒ Object
Gets the enabledServices property value. Microsoft-provided services for the tenant (for example, Exchange online, Skype, Sharepoint).
150 151 152 |
# File 'lib/models/secure_score.rb', line 150 def enabled_services return @enabled_services end |
#enabled_services=(value) ⇒ Object
Sets the enabledServices property value. Microsoft-provided services for the tenant (for example, Exchange online, Skype, Sharepoint).
158 159 160 |
# File 'lib/models/secure_score.rb', line 158 def enabled_services=(value) @enabled_services = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
165 166 167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'lib/models/secure_score.rb', line 165 def get_field_deserializers() return super.merge({ "activeUserCount" => lambda {|n| @active_user_count = n.get_number_value() }, "averageComparativeScores" => lambda {|n| @average_comparative_scores = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AverageComparativeScore.create_from_discriminator_value(pn) }) }, "azureTenantId" => lambda {|n| @azure_tenant_id = n.get_string_value() }, "controlScores" => lambda {|n| @control_scores = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ControlScore.create_from_discriminator_value(pn) }) }, "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "currentScore" => lambda {|n| @current_score = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) }, "enabledServices" => lambda {|n| @enabled_services = n.get_collection_of_primitive_values(String) }, "licensedUserCount" => lambda {|n| @licensed_user_count = n.get_number_value() }, "maxScore" => lambda {|n| @max_score = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) }, "vendorInformation" => lambda {|n| @vendor_information = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityVendorInformation.create_from_discriminator_value(pn) }) }, }) end |
#licensed_user_count ⇒ Object
Gets the licensedUserCount property value. Licensed user count of the given tenant.
183 184 185 |
# File 'lib/models/secure_score.rb', line 183 def licensed_user_count return @licensed_user_count end |
#licensed_user_count=(value) ⇒ Object
Sets the licensedUserCount property value. Licensed user count of the given tenant.
191 192 193 |
# File 'lib/models/secure_score.rb', line 191 def licensed_user_count=(value) @licensed_user_count = value end |
#max_score ⇒ Object
Gets the maxScore property value. Tenant maximum possible score on specified date.
198 199 200 |
# File 'lib/models/secure_score.rb', line 198 def max_score return @max_score end |
#max_score=(value) ⇒ Object
Sets the maxScore property value. Tenant maximum possible score on specified date.
206 207 208 |
# File 'lib/models/secure_score.rb', line 206 def max_score=(value) @max_score = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
214 215 216 217 218 219 220 221 222 223 224 225 226 227 |
# File 'lib/models/secure_score.rb', line 214 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_number_value("activeUserCount", @active_user_count) writer.write_collection_of_object_values("averageComparativeScores", @average_comparative_scores) writer.write_string_value("azureTenantId", @azure_tenant_id) writer.write_collection_of_object_values("controlScores", @control_scores) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_object_value("currentScore", @current_score) writer.write_collection_of_primitive_values("enabledServices", @enabled_services) writer.write_number_value("licensedUserCount", @licensed_user_count) writer.write_object_value("maxScore", @max_score) writer.write_object_value("vendorInformation", @vendor_information) end |
#vendor_information ⇒ Object
Gets the vendorInformation property value. Complex type containing details about the security product/service vendor, provider, and subprovider (for example, vendor=Microsoft; provider=SecureScore). Required.
232 233 234 |
# File 'lib/models/secure_score.rb', line 232 def vendor_information return @vendor_information end |
#vendor_information=(value) ⇒ Object
Sets the vendorInformation property value. Complex type containing details about the security product/service vendor, provider, and subprovider (for example, vendor=Microsoft; provider=SecureScore). Required.
240 241 242 |
# File 'lib/models/secure_score.rb', line 240 def vendor_information=(value) @vendor_information = value end |