Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2ArtifactGuardPolicies

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

Overview

Represents the result of evaluating artifact guard policies.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2ArtifactGuardPolicies

Returns a new instance of GoogleCloudSecuritycenterV2ArtifactGuardPolicies.



5272
5273
5274
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5272

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

Instance Attribute Details

#failing_policiesArray<Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2ArtifactGuardPolicy>

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



5265
5266
5267
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5265

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)


5270
5271
5272
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5270

def resource_id
  @resource_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5277
5278
5279
5280
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5277

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