Class: MicrosoftGraph::Models::SecurityGoogleCloudResourceEvidence
- Inherits:
-
SecurityAlertEvidence
- Object
- SecurityAlertEvidence
- MicrosoftGraph::Models::SecurityGoogleCloudResourceEvidence
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_google_cloud_resource_evidence.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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new securityGoogleCloudResourceEvidence and sets the default values.
-
#location ⇒ Object
Gets the location property value.
-
#location=(value) ⇒ Object
Sets the location property value.
-
#location_type ⇒ Object
Gets the locationType property value.
-
#location_type=(value) ⇒ Object
Sets the locationType property value.
-
#project_id ⇒ Object
Gets the projectId property value.
-
#project_id=(value) ⇒ Object
Sets the projectId property value.
-
#project_number ⇒ Object
Gets the projectNumber property value.
-
#project_number=(value) ⇒ Object
Sets the projectNumber property value.
-
#resource_name ⇒ Object
Gets the resourceName property value.
-
#resource_name=(value) ⇒ Object
Sets the resourceName property value.
-
#resource_type ⇒ Object
Gets the resourceType property value.
-
#resource_type=(value) ⇒ Object
Sets the resourceType property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from SecurityAlertEvidence
#additional_data, #additional_data=, #created_date_time, #created_date_time=, #detailed_roles, #detailed_roles=, #odata_type, #odata_type=, #remediation_status, #remediation_status=, #remediation_status_details, #remediation_status_details=, #roles, #roles=, #tags, #tags=, #verdict, #verdict=
Constructor Details
#initialize ⇒ Object
Instantiates a new securityGoogleCloudResourceEvidence and sets the default values.
31 32 33 34 |
# File 'lib/models/security_google_cloud_resource_evidence.rb', line 31 def initialize() super @odata_type = "#microsoft.graph.security.googleCloudResourceEvidence" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
40 41 42 43 |
# File 'lib/models/security_google_cloud_resource_evidence.rb', line 40 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SecurityGoogleCloudResourceEvidence.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
48 49 50 51 52 53 54 55 56 57 |
# File 'lib/models/security_google_cloud_resource_evidence.rb', line 48 def get_field_deserializers() return super.merge({ "location" => lambda {|n| @location = n.get_string_value() }, "locationType" => lambda {|n| @location_type = n.get_enum_value(MicrosoftGraph::Models::SecurityGoogleCloudLocationType) }, "projectId" => lambda {|n| @project_id = n.get_string_value() }, "projectNumber" => lambda {|n| @project_number = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) }, "resourceName" => lambda {|n| @resource_name = n.get_string_value() }, "resourceType" => lambda {|n| @resource_type = n.get_string_value() }, }) end |
#location ⇒ Object
Gets the location property value. The zone or region where the resource is located.
62 63 64 |
# File 'lib/models/security_google_cloud_resource_evidence.rb', line 62 def location return @location end |
#location=(value) ⇒ Object
Sets the location property value. The zone or region where the resource is located.
70 71 72 |
# File 'lib/models/security_google_cloud_resource_evidence.rb', line 70 def location=(value) @location = value end |
#location_type ⇒ Object
Gets the locationType property value. The type of location. Possible values are: unknown, regional, zonal, global, unknownFutureValue.
77 78 79 |
# File 'lib/models/security_google_cloud_resource_evidence.rb', line 77 def location_type return @location_type end |
#location_type=(value) ⇒ Object
Sets the locationType property value. The type of location. Possible values are: unknown, regional, zonal, global, unknownFutureValue.
85 86 87 |
# File 'lib/models/security_google_cloud_resource_evidence.rb', line 85 def location_type=(value) @location_type = value end |
#project_id ⇒ Object
Gets the projectId property value. The Google project ID as defined by the user.
92 93 94 |
# File 'lib/models/security_google_cloud_resource_evidence.rb', line 92 def project_id return @project_id end |
#project_id=(value) ⇒ Object
Sets the projectId property value. The Google project ID as defined by the user.
100 101 102 |
# File 'lib/models/security_google_cloud_resource_evidence.rb', line 100 def project_id=(value) @project_id = value end |
#project_number ⇒ Object
Gets the projectNumber property value. The project number assigned by Google.
107 108 109 |
# File 'lib/models/security_google_cloud_resource_evidence.rb', line 107 def project_number return @project_number end |
#project_number=(value) ⇒ Object
Sets the projectNumber property value. The project number assigned by Google.
115 116 117 |
# File 'lib/models/security_google_cloud_resource_evidence.rb', line 115 def project_number=(value) @project_number = value end |
#resource_name ⇒ Object
Gets the resourceName property value. The name of the resource.
122 123 124 |
# File 'lib/models/security_google_cloud_resource_evidence.rb', line 122 def resource_name return @resource_name end |
#resource_name=(value) ⇒ Object
Sets the resourceName property value. The name of the resource.
130 131 132 |
# File 'lib/models/security_google_cloud_resource_evidence.rb', line 130 def resource_name=(value) @resource_name = value end |
#resource_type ⇒ Object
Gets the resourceType property value. The type of the resource.
137 138 139 |
# File 'lib/models/security_google_cloud_resource_evidence.rb', line 137 def resource_type return @resource_type end |
#resource_type=(value) ⇒ Object
Sets the resourceType property value. The type of the resource.
145 146 147 |
# File 'lib/models/security_google_cloud_resource_evidence.rb', line 145 def resource_type=(value) @resource_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
153 154 155 156 157 158 159 160 161 162 |
# File 'lib/models/security_google_cloud_resource_evidence.rb', line 153 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("location", @location) writer.write_enum_value("locationType", @location_type) writer.write_string_value("projectId", @project_id) writer.write_object_value("projectNumber", @project_number) writer.write_string_value("resourceName", @resource_name) writer.write_string_value("resourceType", @resource_type) end |