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.



422
423
424
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 422

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



415
416
417
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 415

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)


420
421
422
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 420

def resource_id
  @resource_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



427
428
429
430
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 427

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