Class: Google::Apis::SecuritycenterV1beta2::ArtifactGuardPolicy
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::ArtifactGuardPolicy
- 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
Instance Attribute Summary collapse
-
#failure_reason ⇒ String
Corresponds to the JSON property
failureReason. -
#policy_id ⇒ String
Corresponds to the JSON property
policyId. -
#type ⇒ String
Corresponds to the JSON property
type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ArtifactGuardPolicy
constructor
A new instance of ArtifactGuardPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ArtifactGuardPolicy
Returns a new instance of ArtifactGuardPolicy.
446 447 448 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 446 def initialize(**args) update!(**args) end |
Instance Attribute Details
#failure_reason ⇒ String
Corresponds to the JSON property failureReason
434 435 436 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 434 def failure_reason @failure_reason end |
#policy_id ⇒ String
Corresponds to the JSON property policyId
439 440 441 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 439 def policy_id @policy_id end |
#type ⇒ String
Corresponds to the JSON property type
444 445 446 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 444 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
451 452 453 454 455 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 451 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 |