Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2ArtifactGuardPolicy
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2ArtifactGuardPolicy
- 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
-
#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) ⇒ GoogleCloudSecuritycenterV2ArtifactGuardPolicy
constructor
A new instance of GoogleCloudSecuritycenterV2ArtifactGuardPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2ArtifactGuardPolicy
Returns a new instance of GoogleCloudSecuritycenterV2ArtifactGuardPolicy.
5059 5060 5061 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5059 def initialize(**args) update!(**args) end |
Instance Attribute Details
#failure_reason ⇒ String
Corresponds to the JSON property failureReason
5047 5048 5049 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5047 def failure_reason @failure_reason end |
#policy_id ⇒ String
Corresponds to the JSON property policyId
5052 5053 5054 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5052 def policy_id @policy_id end |
#type ⇒ String
Corresponds to the JSON property type
5057 5058 5059 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5057 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5064 5065 5066 5067 5068 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5064 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 |