Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2ArtifactGuardPolicy

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 an artifact guard policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2ArtifactGuardPolicy

Returns a new instance of GoogleCloudSecuritycenterV2ArtifactGuardPolicy.



5109
5110
5111
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 5109

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

Instance Attribute Details

#failure_reasonString

The reason for the policy failure, for example, "severity=HIGH AND max_vuln_count=2". Corresponds to the JSON property failureReason

Returns:

  • (String)


5096
5097
5098
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 5096

def failure_reason
  @failure_reason
end

#policy_idString

The ID of the failing policy, for example, "organizations/3392779/locations/ global/policies/prod-policy". Corresponds to the JSON property policyId

Returns:

  • (String)


5102
5103
5104
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 5102

def policy_id
  @policy_id
end

#typeString

The type of the policy evaluation. Corresponds to the JSON property type

Returns:

  • (String)


5107
5108
5109
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 5107

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5114
5115
5116
5117
5118
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 5114

def update!(**args)
  @failure_reason = args[:failure_reason] if args.key?(:failure_reason)
  @policy_id = args[:policy_id] if args.key?(:policy_id)
  @type = args[:type] if args.key?(:type)
end