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.
804 805 806 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 804 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
749 750 751 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 749 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
755 756 757 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 755 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
761 762 763 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 761 def description @description end |
#folder_id ⇒ Fixnum
The folder_id of the violation
Corresponds to the JSON property folderId
766 767 768 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 766 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`
772 773 774 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 772 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`
780 781 782 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 780 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
786 787 788 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 786 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
792 793 794 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 792 def resolve_time @resolve_time end |
#state ⇒ String
Output only. State of the violation
Corresponds to the JSON property state
797 798 799 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 797 def state @state end |
#update_time ⇒ String
Output only. The last time when the Violation record was updated.
Corresponds to the JSON property updateTime
802 803 804 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 802 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
809 810 811 812 813 814 815 816 817 818 819 820 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 809 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 |