Class: Google::Apis::SecuritycenterV1::ArtifactGuardPolicy

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ArtifactGuardPolicy

Returns a new instance of ArtifactGuardPolicy.



521
522
523
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 521

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

Instance Attribute Details

#failure_reasonString

Corresponds to the JSON property failureReason

Returns:

  • (String)


509
510
511
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 509

def failure_reason
  @failure_reason
end

#policy_idString

Corresponds to the JSON property policyId

Returns:

  • (String)


514
515
516
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 514

def policy_id
  @policy_id
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


519
520
521
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 519

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



526
527
528
529
530
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 526

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