Class: Google::Apis::CloudcontrolspartnerV1::Violation
- Inherits:
-
Object
- Object
- Google::Apis::CloudcontrolspartnerV1::Violation
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudcontrolspartner_v1/classes.rb,
lib/google/apis/cloudcontrolspartner_v1/representations.rb,
lib/google/apis/cloudcontrolspartner_v1/representations.rb
Overview
Details of resource Violation
Instance Attribute Summary collapse
-
#begin_time ⇒ String
Output only.
-
#category ⇒ String
Output only.
-
#description ⇒ String
Output only.
-
#folder_id ⇒ Fixnum
The folder_id of the violation Corresponds to the JSON property
folderId
. -
#name ⇒ String
Identifier.
-
#non_compliant_org_policy ⇒ String
Output only.
-
#remediation ⇒ Google::Apis::CloudcontrolspartnerV1::Remediation
Represents remediation guidance to resolve compliance violation for AssuredWorkload Corresponds to the JSON property
remediation
. -
#resolve_time ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Violation
constructor
A new instance of Violation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Violation
Returns a new instance of Violation.
781 782 783 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 781 def initialize(**args) update!(**args) end |
Instance Attribute Details
#begin_time ⇒ String
Output only. Time of the event which triggered the Violation.
Corresponds to the JSON property beginTime
726 727 728 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 726 def begin_time @begin_time end |
#category ⇒ String
Output only. Category under which this violation is mapped. e.g. Location,
Service Usage, Access, Encryption, etc.
Corresponds to the JSON property category
732 733 734 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 732 def category @category end |
#description ⇒ String
Output only. Description for the Violation. e.g. OrgPolicy gcp.
resourceLocations has non compliant value.
Corresponds to the JSON property description
738 739 740 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 738 def description @description end |
#folder_id ⇒ Fixnum
The folder_id of the violation
Corresponds to the JSON property folderId
743 744 745 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 743 def folder_id @folder_id end |
#name ⇒ String
Identifier. Format: organizations/
organization/locations/
location/
customers/
customer/workloads/
workload/violations/
violation`
Corresponds to the JSON property
name`
749 750 751 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 749 def name @name end |
#non_compliant_org_policy ⇒ String
Output only. Immutable. Name of the OrgPolicy which was modified with non-
compliant change and resulted this violation. Format: projects/
project_number/policies/
constraint_name`folders/`folder_id`/policies/`
constraint_name
organizations/
organization_id/policies/
constraint_name`
Corresponds to the JSON property
nonCompliantOrgPolicy`
757 758 759 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 757 def non_compliant_org_policy @non_compliant_org_policy end |
#remediation ⇒ Google::Apis::CloudcontrolspartnerV1::Remediation
Represents remediation guidance to resolve compliance violation for
AssuredWorkload
Corresponds to the JSON property remediation
763 764 765 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 763 def remediation @remediation end |
#resolve_time ⇒ String
Output only. Time of the event which fixed the Violation. If the violation is
ACTIVE this will be empty.
Corresponds to the JSON property resolveTime
769 770 771 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 769 def resolve_time @resolve_time end |
#state ⇒ String
Output only. State of the violation
Corresponds to the JSON property state
774 775 776 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 774 def state @state end |
#update_time ⇒ String
Output only. The last time when the Violation record was updated.
Corresponds to the JSON property updateTime
779 780 781 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 779 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
786 787 788 789 790 791 792 793 794 795 796 797 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 786 def update!(**args) @begin_time = args[:begin_time] if args.key?(:begin_time) @category = args[:category] if args.key?(:category) @description = args[:description] if args.key?(:description) @folder_id = args[:folder_id] if args.key?(:folder_id) @name = args[:name] if args.key?(:name) @non_compliant_org_policy = args[:non_compliant_org_policy] if args.key?(:non_compliant_org_policy) @remediation = args[:remediation] if args.key?(:remediation) @resolve_time = args[:resolve_time] if args.key?(:resolve_time) @state = args[:state] if args.key?(:state) @update_time = args[:update_time] if args.key?(:update_time) end |