Class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2ArtifactGuardPolicy
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2ArtifactGuardPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1beta1/classes.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb,
lib/google/apis/securitycenter_v1beta1/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.
4937 4938 4939 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 4937 def initialize(**args) update!(**args) end |
Instance Attribute Details
#failure_reason ⇒ String
Corresponds to the JSON property failureReason
4925 4926 4927 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 4925 def failure_reason @failure_reason end |
#policy_id ⇒ String
Corresponds to the JSON property policyId
4930 4931 4932 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 4930 def policy_id @policy_id end |
#type ⇒ String
Corresponds to the JSON property type
4935 4936 4937 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 4935 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4942 4943 4944 4945 4946 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 4942 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 |