Class: MicrosoftGraph::Models::SecureScore

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/secure_score.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 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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a secure_score

Raises:

  • (StandardError)


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_countObject

Gets the activeUserCount property value. Active user count of the given tenant.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the activeUserCount property.

Returns:

  • a void



52
53
54
# File 'lib/models/secure_score.rb', line 52

def active_user_count=(value)
    @active_user_count = value
end

#average_comparative_scoresObject

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.

Returns:

  • a average_comparative_score



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.

Parameters:

  • value

    Value to set for the averageComparativeScores property.

Returns:

  • a void



67
68
69
# File 'lib/models/secure_score.rb', line 67

def average_comparative_scores=(value)
    @average_comparative_scores = value
end

#azure_tenant_idObject

Gets the azureTenantId property value. GUID string for tenant ID.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the azureTenantId property.

Returns:

  • a void



82
83
84
# File 'lib/models/secure_score.rb', line 82

def azure_tenant_id=(value)
    @azure_tenant_id = value
end

#control_scoresObject

Gets the controlScores property value. Contains tenant scores for a set of controls.

Returns:

  • a control_score



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.

Parameters:

  • value

    Value to set for the controlScores property.

Returns:

  • a void



104
105
106
# File 'lib/models/secure_score.rb', line 104

def control_scores=(value)
    @control_scores = value
end

#created_date_timeObject

Gets the createdDateTime property value. The date when the entity is created.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



119
120
121
# File 'lib/models/secure_score.rb', line 119

def created_date_time=(value)
    @created_date_time = value
end

#current_scoreObject

Gets the currentScore property value. Tenant current attained score on specified date.

Returns:

  • a double



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.

Parameters:

  • value

    Value to set for the currentScore property.

Returns:

  • a void



143
144
145
# File 'lib/models/secure_score.rb', line 143

def current_score=(value)
    @current_score = value
end

#enabled_servicesObject

Gets the enabledServices property value. Microsoft-provided services for the tenant (for example, Exchange online, Skype, Sharepoint).

Returns:

  • a string



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).

Parameters:

  • value

    Value to set for the enabledServices property.

Returns:

  • a void



158
159
160
# File 'lib/models/secure_score.rb', line 158

def enabled_services=(value)
    @enabled_services = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_countObject

Gets the licensedUserCount property value. Licensed user count of the given tenant.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the licensedUserCount property.

Returns:

  • a void



191
192
193
# File 'lib/models/secure_score.rb', line 191

def licensed_user_count=(value)
    @licensed_user_count = value
end

#max_scoreObject

Gets the maxScore property value. Tenant maximum possible score on specified date.

Returns:

  • a double



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.

Parameters:

  • value

    Value to set for the maxScore property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_informationObject

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.

Returns:

  • a security_vendor_information



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.

Parameters:

  • value

    Value to set for the vendorInformation property.

Returns:

  • a void



240
241
242
# File 'lib/models/secure_score.rb', line 240

def vendor_information=(value)
    @vendor_information = value
end