Class: Google::Apis::SecuritycenterV1beta2::ArtifactGuardPolicies

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

Overview

Represents the result of evaluating artifact guard policies.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ArtifactGuardPolicies

Returns a new instance of ArtifactGuardPolicies.



354
355
356
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 354

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

Instance Attribute Details

#failing_policiesArray<Google::Apis::SecuritycenterV1beta2::ArtifactGuardPolicy>

A list of failing policies. Corresponds to the JSON property failingPolicies



347
348
349
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 347

def failing_policies
  @failing_policies
end

#resource_idString

The ID of the resource that has policies configured for it. Corresponds to the JSON property resourceId

Returns:

  • (String)


352
353
354
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 352

def resource_id
  @resource_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



359
360
361
362
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 359

def update!(**args)
  @failing_policies = args[:failing_policies] if args.key?(:failing_policies)
  @resource_id = args[:resource_id] if args.key?(:resource_id)
end