Class: Google::Apis::SecuritycenterV1beta1::ComplianceSnapshot

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta1/classes.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb

Overview

Result containing the properties and count of a ComplianceSnapshot request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComplianceSnapshot

Returns a new instance of ComplianceSnapshot.



1215
1216
1217
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1215

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#categoryString

The category of Findings matching. Corresponds to the JSON property category

Returns:

  • (String)


1178
1179
1180
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1178

def category
  @category
end

#cloud_providerString

The cloud provider for the compliance snapshot. Corresponds to the JSON property cloudProvider

Returns:

  • (String)


1183
1184
1185
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1183

def cloud_provider
  @cloud_provider
end

#compliance_standardString

The compliance standard (ie CIS). Corresponds to the JSON property complianceStandard

Returns:

  • (String)


1188
1189
1190
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1188

def compliance_standard
  @compliance_standard
end

#compliance_versionString

The compliance version (ie 1.3) in CIS 1.3. Corresponds to the JSON property complianceVersion

Returns:

  • (String)


1193
1194
1195
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1193

def compliance_version
  @compliance_version
end

#countFixnum

Total count of findings for the given properties. Corresponds to the JSON property count

Returns:

  • (Fixnum)


1198
1199
1200
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1198

def count
  @count
end

#leaf_container_resourceString

The leaf container resource name that is closest to the snapshot. Corresponds to the JSON property leafContainerResource

Returns:

  • (String)


1203
1204
1205
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1203

def leaf_container_resource
  @leaf_container_resource
end

#nameString

The compliance snapshot name. Format: //sources//complianceSnapshots/ Corresponds to the JSON property name

Returns:

  • (String)


1208
1209
1210
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1208

def name
  @name
end

#snapshot_timeString

The snapshot time of the snapshot. Corresponds to the JSON property snapshotTime

Returns:

  • (String)


1213
1214
1215
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1213

def snapshot_time
  @snapshot_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1220

def update!(**args)
  @category = args[:category] if args.key?(:category)
  @cloud_provider = args[:cloud_provider] if args.key?(:cloud_provider)
  @compliance_standard = args[:compliance_standard] if args.key?(:compliance_standard)
  @compliance_version = args[:compliance_version] if args.key?(:compliance_version)
  @count = args[:count] if args.key?(:count)
  @leaf_container_resource = args[:leaf_container_resource] if args.key?(:leaf_container_resource)
  @name = args[:name] if args.key?(:name)
  @snapshot_time = args[:snapshot_time] if args.key?(:snapshot_time)
end