Class: MicrosoftGraph::Models::SecureScoreControlProfile

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



131
132
133
# File 'lib/models/secure_score_control_profile.rb', line 131

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_control_profile

Raises:

  • (StandardError)


169
170
171
172
# File 'lib/models/secure_score_control_profile.rb', line 169

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

Instance Method Details

#action_typeObject

Gets the actionType property value. Control action type (Config, Review, Behavior).

Returns:

  • a string



71
72
73
# File 'lib/models/secure_score_control_profile.rb', line 71

def action_type
    return @action_type
end

#action_type=(value) ⇒ Object

Sets the actionType property value. Control action type (Config, Review, Behavior).

Parameters:

  • value

    Value to set for the actionType property.

Returns:

  • a void



79
80
81
# File 'lib/models/secure_score_control_profile.rb', line 79

def action_type=(value)
    @action_type = value
end

#action_urlObject

Gets the actionUrl property value. URL to where the control can be actioned.

Returns:

  • a string



86
87
88
# File 'lib/models/secure_score_control_profile.rb', line 86

def action_url
    return @action_url
end

#action_url=(value) ⇒ Object

Sets the actionUrl property value. URL to where the control can be actioned.

Parameters:

  • value

    Value to set for the actionUrl property.

Returns:

  • a void



94
95
96
# File 'lib/models/secure_score_control_profile.rb', line 94

def action_url=(value)
    @action_url = value
end

#azure_tenant_idObject

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

Returns:

  • a string



101
102
103
# File 'lib/models/secure_score_control_profile.rb', line 101

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



109
110
111
# File 'lib/models/secure_score_control_profile.rb', line 109

def azure_tenant_id=(value)
    @azure_tenant_id = value
end

#compliance_informationObject

Gets the complianceInformation property value. The collection of compliance information associated with secure score control

Returns:

  • a compliance_information



116
117
118
# File 'lib/models/secure_score_control_profile.rb', line 116

def compliance_information
    return @compliance_information
end

#compliance_information=(value) ⇒ Object

Sets the complianceInformation property value. The collection of compliance information associated with secure score control

Parameters:

  • value

    Value to set for the complianceInformation property.

Returns:

  • a void



124
125
126
# File 'lib/models/secure_score_control_profile.rb', line 124

def compliance_information=(value)
    @compliance_information = value
end

#control_categoryObject

Gets the controlCategory property value. Control action category (Identity, Data, Device, Apps, Infrastructure).

Returns:

  • a string



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

def control_category
    return @control_category
end

#control_category=(value) ⇒ Object

Sets the controlCategory property value. Control action category (Identity, Data, Device, Apps, Infrastructure).

Parameters:

  • value

    Value to set for the controlCategory property.

Returns:

  • a void



146
147
148
# File 'lib/models/secure_score_control_profile.rb', line 146

def control_category=(value)
    @control_category = value
end

#control_state_updatesObject

Gets the controlStateUpdates property value. Flag to indicate where the tenant has marked a control (ignored, thirdParty, reviewed) (supports update).

Returns:

  • a secure_score_control_state_update



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

def control_state_updates
    return @control_state_updates
end

#control_state_updates=(value) ⇒ Object

Sets the controlStateUpdates property value. Flag to indicate where the tenant has marked a control (ignored, thirdParty, reviewed) (supports update).

Parameters:

  • value

    Value to set for the controlStateUpdates property.

Returns:

  • a void



161
162
163
# File 'lib/models/secure_score_control_profile.rb', line 161

def control_state_updates=(value)
    @control_state_updates = value
end

#deprecatedObject

Gets the deprecated property value. Flag to indicate if a control is depreciated.

Returns:

  • a boolean



177
178
179
# File 'lib/models/secure_score_control_profile.rb', line 177

def deprecated
    return @deprecated
end

#deprecated=(value) ⇒ Object

Sets the deprecated property value. Flag to indicate if a control is depreciated.

Parameters:

  • value

    Value to set for the deprecated property.

Returns:

  • a void



185
186
187
# File 'lib/models/secure_score_control_profile.rb', line 185

def deprecated=(value)
    @deprecated = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
# File 'lib/models/secure_score_control_profile.rb', line 192

def get_field_deserializers()
    return super.merge({
        "actionType" => lambda {|n| @action_type = n.get_string_value() },
        "actionUrl" => lambda {|n| @action_url = n.get_string_value() },
        "azureTenantId" => lambda {|n| @azure_tenant_id = n.get_string_value() },
        "complianceInformation" => lambda {|n| @compliance_information = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ComplianceInformation.create_from_discriminator_value(pn) }) },
        "controlCategory" => lambda {|n| @control_category = n.get_string_value() },
        "controlStateUpdates" => lambda {|n| @control_state_updates = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecureScoreControlStateUpdate.create_from_discriminator_value(pn) }) },
        "deprecated" => lambda {|n| @deprecated = n.get_boolean_value() },
        "implementationCost" => lambda {|n| @implementation_cost = n.get_string_value() },
        "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() },
        "maxScore" => lambda {|n| @max_score = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) },
        "rank" => lambda {|n| @rank = n.get_number_value() },
        "remediation" => lambda {|n| @remediation = n.get_string_value() },
        "remediationImpact" => lambda {|n| @remediation_impact = n.get_string_value() },
        "service" => lambda {|n| @service = n.get_string_value() },
        "threats" => lambda {|n| @threats = n.get_collection_of_primitive_values(String) },
        "tier" => lambda {|n| @tier = n.get_string_value() },
        "title" => lambda {|n| @title = n.get_string_value() },
        "userImpact" => lambda {|n| @user_impact = n.get_string_value() },
        "vendorInformation" => lambda {|n| @vendor_information = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityVendorInformation.create_from_discriminator_value(pn) }) },
    })
end

#implementation_costObject

Gets the implementationCost property value. Resource cost of implemmentating control (low, moderate, high).

Returns:

  • a string



219
220
221
# File 'lib/models/secure_score_control_profile.rb', line 219

def implementation_cost
    return @implementation_cost
end

#implementation_cost=(value) ⇒ Object

Sets the implementationCost property value. Resource cost of implemmentating control (low, moderate, high).

Parameters:

  • value

    Value to set for the implementationCost property.

Returns:

  • a void



227
228
229
# File 'lib/models/secure_score_control_profile.rb', line 227

def implementation_cost=(value)
    @implementation_cost = value
end

#last_modified_date_timeObject

Gets the lastModifiedDateTime property value. Time at which the control profile entity was last modified. The Timestamp type represents date and time

Returns:

  • a date_time



234
235
236
# File 'lib/models/secure_score_control_profile.rb', line 234

def last_modified_date_time
    return @last_modified_date_time
end

#last_modified_date_time=(value) ⇒ Object

Sets the lastModifiedDateTime property value. Time at which the control profile entity was last modified. The Timestamp type represents date and time

Parameters:

  • value

    Value to set for the lastModifiedDateTime property.

Returns:

  • a void



242
243
244
# File 'lib/models/secure_score_control_profile.rb', line 242

def last_modified_date_time=(value)
    @last_modified_date_time = value
end

#max_scoreObject

Gets the maxScore property value. max attainable score for the control.

Returns:

  • a double



249
250
251
# File 'lib/models/secure_score_control_profile.rb', line 249

def max_score
    return @max_score
end

#max_score=(value) ⇒ Object

Sets the maxScore property value. max attainable score for the control.

Parameters:

  • value

    Value to set for the maxScore property.

Returns:

  • a void



257
258
259
# File 'lib/models/secure_score_control_profile.rb', line 257

def max_score=(value)
    @max_score = value
end

#rankObject

Gets the rank property value. Microsoft’s stack ranking of control.

Returns:

  • a integer



264
265
266
# File 'lib/models/secure_score_control_profile.rb', line 264

def rank
    return @rank
end

#rank=(value) ⇒ Object

Sets the rank property value. Microsoft’s stack ranking of control.

Parameters:

  • value

    Value to set for the rank property.

Returns:

  • a void



272
273
274
# File 'lib/models/secure_score_control_profile.rb', line 272

def rank=(value)
    @rank = value
end

#remediationObject

Gets the remediation property value. Description of what the control will help remediate.

Returns:

  • a string



279
280
281
# File 'lib/models/secure_score_control_profile.rb', line 279

def remediation
    return @remediation
end

#remediation=(value) ⇒ Object

Sets the remediation property value. Description of what the control will help remediate.

Parameters:

  • value

    Value to set for the remediation property.

Returns:

  • a void



287
288
289
# File 'lib/models/secure_score_control_profile.rb', line 287

def remediation=(value)
    @remediation = value
end

#remediation_impactObject

Gets the remediationImpact property value. Description of the impact on users of the remediation.

Returns:

  • a string



294
295
296
# File 'lib/models/secure_score_control_profile.rb', line 294

def remediation_impact
    return @remediation_impact
end

#remediation_impact=(value) ⇒ Object

Sets the remediationImpact property value. Description of the impact on users of the remediation.

Parameters:

  • value

    Value to set for the remediationImpact property.

Returns:

  • a void



302
303
304
# File 'lib/models/secure_score_control_profile.rb', line 302

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


310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
# File 'lib/models/secure_score_control_profile.rb', line 310

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("actionType", @action_type)
    writer.write_string_value("actionUrl", @action_url)
    writer.write_string_value("azureTenantId", @azure_tenant_id)
    writer.write_collection_of_object_values("complianceInformation", @compliance_information)
    writer.write_string_value("controlCategory", @control_category)
    writer.write_collection_of_object_values("controlStateUpdates", @control_state_updates)
    writer.write_boolean_value("deprecated", @deprecated)
    writer.write_string_value("implementationCost", @implementation_cost)
    writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time)
    writer.write_object_value("maxScore", @max_score)
    writer.write_number_value("rank", @rank)
    writer.write_string_value("remediation", @remediation)
    writer.write_string_value("remediationImpact", @remediation_impact)
    writer.write_string_value("service", @service)
    writer.write_collection_of_primitive_values("threats", @threats)
    writer.write_string_value("tier", @tier)
    writer.write_string_value("title", @title)
    writer.write_string_value("userImpact", @user_impact)
    writer.write_object_value("vendorInformation", @vendor_information)
end

#serviceObject

Gets the service property value. Service that owns the control (Exchange, Sharepoint, Azure AD).

Returns:

  • a string



337
338
339
# File 'lib/models/secure_score_control_profile.rb', line 337

def service
    return @service
end

#service=(value) ⇒ Object

Sets the service property value. Service that owns the control (Exchange, Sharepoint, Azure AD).

Parameters:

  • value

    Value to set for the service property.

Returns:

  • a void



345
346
347
# File 'lib/models/secure_score_control_profile.rb', line 345

def service=(value)
    @service = value
end

#threatsObject

Gets the threats property value. List of threats the control mitigates (accountBreach, dataDeletion, dataExfiltration, dataSpillage,

Returns:

  • a string



352
353
354
# File 'lib/models/secure_score_control_profile.rb', line 352

def threats
    return @threats
end

#threats=(value) ⇒ Object

Sets the threats property value. List of threats the control mitigates (accountBreach, dataDeletion, dataExfiltration, dataSpillage,

Parameters:

  • value

    Value to set for the threats property.

Returns:

  • a void



360
361
362
# File 'lib/models/secure_score_control_profile.rb', line 360

def threats=(value)
    @threats = value
end

#tierObject

Gets the tier property value. The tier property

Returns:

  • a string



367
368
369
# File 'lib/models/secure_score_control_profile.rb', line 367

def tier
    return @tier
end

#tier=(value) ⇒ Object

Sets the tier property value. The tier property

Parameters:

  • value

    Value to set for the tier property.

Returns:

  • a void



375
376
377
# File 'lib/models/secure_score_control_profile.rb', line 375

def tier=(value)
    @tier = value
end

#titleObject

Gets the title property value. The title property

Returns:

  • a string



382
383
384
# File 'lib/models/secure_score_control_profile.rb', line 382

def title
    return @title
end

#title=(value) ⇒ Object

Sets the title property value. The title property

Parameters:

  • value

    Value to set for the title property.

Returns:

  • a void



390
391
392
# File 'lib/models/secure_score_control_profile.rb', line 390

def title=(value)
    @title = value
end

#user_impactObject

Gets the userImpact property value. The userImpact property

Returns:

  • a string



397
398
399
# File 'lib/models/secure_score_control_profile.rb', line 397

def user_impact
    return @user_impact
end

#user_impact=(value) ⇒ Object

Sets the userImpact property value. The userImpact property

Parameters:

  • value

    Value to set for the userImpact property.

Returns:

  • a void



405
406
407
# File 'lib/models/secure_score_control_profile.rb', line 405

def user_impact=(value)
    @user_impact = value
end

#vendor_informationObject

Gets the vendorInformation property value. The vendorInformation property

Returns:

  • a security_vendor_information



412
413
414
# File 'lib/models/secure_score_control_profile.rb', line 412

def vendor_information
    return @vendor_information
end

#vendor_information=(value) ⇒ Object

Sets the vendorInformation property value. The vendorInformation property

Parameters:

  • value

    Value to set for the vendorInformation property.

Returns:

  • a void



420
421
422
# File 'lib/models/secure_score_control_profile.rb', line 420

def vendor_information=(value)
    @vendor_information = value
end