Class: Google::Cloud::CloudControlsPartner::V1::Violation
- Inherits:
-
Object
- Object
- Google::Cloud::CloudControlsPartner::V1::Violation
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/cloudcontrolspartner/v1/violations.rb
Overview
Details of resource Violation
Defined Under Namespace
Modules: State Classes: Remediation
Instance Attribute Summary collapse
-
#begin_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#category ⇒ ::String
readonly
Output only.
-
#description ⇒ ::String
readonly
Output only.
-
#folder_id ⇒ ::Integer
The folder_id of the violation.
-
#name ⇒ ::String
Identifier.
-
#non_compliant_org_policy ⇒ ::String
readonly
Output only.
-
#remediation ⇒ ::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation
readonly
Output only.
-
#resolve_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#state ⇒ ::Google::Cloud::CloudControlsPartner::V1::Violation::State
readonly
Output only.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
Instance Attribute Details
#begin_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. Time of the event which triggered the Violation.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
# File 'proto_docs/google/cloud/cloudcontrolspartner/v1/violations.rb', line 63 class Violation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents remediation guidance to resolve compliance violation for # AssuredWorkload # @!attribute [rw] instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions] # Required. Remediation instructions to resolve violations # @!attribute [rw] compliant_values # @return [::Array<::String>] # Values that can resolve the violation # For example: for list org policy violations, this will either be the list # of allowed or denied values # @!attribute [r] remediation_type # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::RemediationType] # Output only. Remediation type based on the type of org policy values # violated class Remediation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Instructions to remediate violation # @!attribute [rw] gcloud_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Gcloud] # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] console_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Console] # Remediation instructions to resolve violation via cloud console class Instructions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] gcloud_commands # @return [::Array<::String>] # Gcloud command to resolve violation # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via gcloud cli # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Gcloud include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Remediation instructions to resolve violation via cloud console # @!attribute [rw] console_uris # @return [::Array<::String>] # Link to console page where violations can be resolved # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via cloud console # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Console include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Classifying remediation into various types based on the kind of # violation. For example, violations caused due to changes in boolean org # policy requires different remediation instructions compared to violation # caused due to changes in allowed values of list org policy. module RemediationType # Unspecified remediation type REMEDIATION_TYPE_UNSPECIFIED = 0 # Remediation type for boolean org policy REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION = 1 # Remediation type for list org policy which have allowed values in the # monitoring rule REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION = 2 # Remediation type for list org policy which have denied values in the # monitoring rule REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION = 3 # Remediation type for gcp.restrictCmekCryptoKeyProjects REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION = 4 # Remediation type for resource violation. REMEDIATION_RESOURCE_VIOLATION = 5 end end # Violation State Values module State # Unspecified state. STATE_UNSPECIFIED = 0 # Violation is resolved. RESOLVED = 1 # Violation is Unresolved UNRESOLVED = 2 # Violation is Exception EXCEPTION = 3 end end |
#category ⇒ ::String (readonly)
Returns Output only. Category under which this violation is mapped. e.g. Location, Service Usage, Access, Encryption, etc.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
# File 'proto_docs/google/cloud/cloudcontrolspartner/v1/violations.rb', line 63 class Violation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents remediation guidance to resolve compliance violation for # AssuredWorkload # @!attribute [rw] instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions] # Required. Remediation instructions to resolve violations # @!attribute [rw] compliant_values # @return [::Array<::String>] # Values that can resolve the violation # For example: for list org policy violations, this will either be the list # of allowed or denied values # @!attribute [r] remediation_type # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::RemediationType] # Output only. Remediation type based on the type of org policy values # violated class Remediation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Instructions to remediate violation # @!attribute [rw] gcloud_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Gcloud] # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] console_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Console] # Remediation instructions to resolve violation via cloud console class Instructions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] gcloud_commands # @return [::Array<::String>] # Gcloud command to resolve violation # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via gcloud cli # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Gcloud include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Remediation instructions to resolve violation via cloud console # @!attribute [rw] console_uris # @return [::Array<::String>] # Link to console page where violations can be resolved # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via cloud console # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Console include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Classifying remediation into various types based on the kind of # violation. For example, violations caused due to changes in boolean org # policy requires different remediation instructions compared to violation # caused due to changes in allowed values of list org policy. module RemediationType # Unspecified remediation type REMEDIATION_TYPE_UNSPECIFIED = 0 # Remediation type for boolean org policy REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION = 1 # Remediation type for list org policy which have allowed values in the # monitoring rule REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION = 2 # Remediation type for list org policy which have denied values in the # monitoring rule REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION = 3 # Remediation type for gcp.restrictCmekCryptoKeyProjects REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION = 4 # Remediation type for resource violation. REMEDIATION_RESOURCE_VIOLATION = 5 end end # Violation State Values module State # Unspecified state. STATE_UNSPECIFIED = 0 # Violation is resolved. RESOLVED = 1 # Violation is Unresolved UNRESOLVED = 2 # Violation is Exception EXCEPTION = 3 end end |
#description ⇒ ::String (readonly)
Returns Output only. Description for the Violation. e.g. OrgPolicy gcp.resourceLocations has non compliant value.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
# File 'proto_docs/google/cloud/cloudcontrolspartner/v1/violations.rb', line 63 class Violation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents remediation guidance to resolve compliance violation for # AssuredWorkload # @!attribute [rw] instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions] # Required. Remediation instructions to resolve violations # @!attribute [rw] compliant_values # @return [::Array<::String>] # Values that can resolve the violation # For example: for list org policy violations, this will either be the list # of allowed or denied values # @!attribute [r] remediation_type # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::RemediationType] # Output only. Remediation type based on the type of org policy values # violated class Remediation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Instructions to remediate violation # @!attribute [rw] gcloud_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Gcloud] # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] console_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Console] # Remediation instructions to resolve violation via cloud console class Instructions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] gcloud_commands # @return [::Array<::String>] # Gcloud command to resolve violation # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via gcloud cli # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Gcloud include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Remediation instructions to resolve violation via cloud console # @!attribute [rw] console_uris # @return [::Array<::String>] # Link to console page where violations can be resolved # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via cloud console # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Console include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Classifying remediation into various types based on the kind of # violation. For example, violations caused due to changes in boolean org # policy requires different remediation instructions compared to violation # caused due to changes in allowed values of list org policy. module RemediationType # Unspecified remediation type REMEDIATION_TYPE_UNSPECIFIED = 0 # Remediation type for boolean org policy REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION = 1 # Remediation type for list org policy which have allowed values in the # monitoring rule REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION = 2 # Remediation type for list org policy which have denied values in the # monitoring rule REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION = 3 # Remediation type for gcp.restrictCmekCryptoKeyProjects REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION = 4 # Remediation type for resource violation. REMEDIATION_RESOURCE_VIOLATION = 5 end end # Violation State Values module State # Unspecified state. STATE_UNSPECIFIED = 0 # Violation is resolved. RESOLVED = 1 # Violation is Unresolved UNRESOLVED = 2 # Violation is Exception EXCEPTION = 3 end end |
#folder_id ⇒ ::Integer
Returns The folder_id of the violation.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
# File 'proto_docs/google/cloud/cloudcontrolspartner/v1/violations.rb', line 63 class Violation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents remediation guidance to resolve compliance violation for # AssuredWorkload # @!attribute [rw] instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions] # Required. Remediation instructions to resolve violations # @!attribute [rw] compliant_values # @return [::Array<::String>] # Values that can resolve the violation # For example: for list org policy violations, this will either be the list # of allowed or denied values # @!attribute [r] remediation_type # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::RemediationType] # Output only. Remediation type based on the type of org policy values # violated class Remediation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Instructions to remediate violation # @!attribute [rw] gcloud_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Gcloud] # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] console_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Console] # Remediation instructions to resolve violation via cloud console class Instructions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] gcloud_commands # @return [::Array<::String>] # Gcloud command to resolve violation # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via gcloud cli # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Gcloud include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Remediation instructions to resolve violation via cloud console # @!attribute [rw] console_uris # @return [::Array<::String>] # Link to console page where violations can be resolved # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via cloud console # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Console include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Classifying remediation into various types based on the kind of # violation. For example, violations caused due to changes in boolean org # policy requires different remediation instructions compared to violation # caused due to changes in allowed values of list org policy. module RemediationType # Unspecified remediation type REMEDIATION_TYPE_UNSPECIFIED = 0 # Remediation type for boolean org policy REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION = 1 # Remediation type for list org policy which have allowed values in the # monitoring rule REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION = 2 # Remediation type for list org policy which have denied values in the # monitoring rule REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION = 3 # Remediation type for gcp.restrictCmekCryptoKeyProjects REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION = 4 # Remediation type for resource violation. REMEDIATION_RESOURCE_VIOLATION = 5 end end # Violation State Values module State # Unspecified state. STATE_UNSPECIFIED = 0 # Violation is resolved. RESOLVED = 1 # Violation is Unresolved UNRESOLVED = 2 # Violation is Exception EXCEPTION = 3 end end |
#name ⇒ ::String
Returns Identifier. Format:
organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
# File 'proto_docs/google/cloud/cloudcontrolspartner/v1/violations.rb', line 63 class Violation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents remediation guidance to resolve compliance violation for # AssuredWorkload # @!attribute [rw] instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions] # Required. Remediation instructions to resolve violations # @!attribute [rw] compliant_values # @return [::Array<::String>] # Values that can resolve the violation # For example: for list org policy violations, this will either be the list # of allowed or denied values # @!attribute [r] remediation_type # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::RemediationType] # Output only. Remediation type based on the type of org policy values # violated class Remediation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Instructions to remediate violation # @!attribute [rw] gcloud_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Gcloud] # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] console_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Console] # Remediation instructions to resolve violation via cloud console class Instructions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] gcloud_commands # @return [::Array<::String>] # Gcloud command to resolve violation # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via gcloud cli # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Gcloud include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Remediation instructions to resolve violation via cloud console # @!attribute [rw] console_uris # @return [::Array<::String>] # Link to console page where violations can be resolved # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via cloud console # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Console include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Classifying remediation into various types based on the kind of # violation. For example, violations caused due to changes in boolean org # policy requires different remediation instructions compared to violation # caused due to changes in allowed values of list org policy. module RemediationType # Unspecified remediation type REMEDIATION_TYPE_UNSPECIFIED = 0 # Remediation type for boolean org policy REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION = 1 # Remediation type for list org policy which have allowed values in the # monitoring rule REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION = 2 # Remediation type for list org policy which have denied values in the # monitoring rule REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION = 3 # Remediation type for gcp.restrictCmekCryptoKeyProjects REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION = 4 # Remediation type for resource violation. REMEDIATION_RESOURCE_VIOLATION = 5 end end # Violation State Values module State # Unspecified state. STATE_UNSPECIFIED = 0 # Violation is resolved. RESOLVED = 1 # Violation is Unresolved UNRESOLVED = 2 # Violation is Exception EXCEPTION = 3 end end |
#non_compliant_org_policy ⇒ ::String (readonly)
Returns 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}.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
# File 'proto_docs/google/cloud/cloudcontrolspartner/v1/violations.rb', line 63 class Violation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents remediation guidance to resolve compliance violation for # AssuredWorkload # @!attribute [rw] instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions] # Required. Remediation instructions to resolve violations # @!attribute [rw] compliant_values # @return [::Array<::String>] # Values that can resolve the violation # For example: for list org policy violations, this will either be the list # of allowed or denied values # @!attribute [r] remediation_type # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::RemediationType] # Output only. Remediation type based on the type of org policy values # violated class Remediation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Instructions to remediate violation # @!attribute [rw] gcloud_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Gcloud] # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] console_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Console] # Remediation instructions to resolve violation via cloud console class Instructions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] gcloud_commands # @return [::Array<::String>] # Gcloud command to resolve violation # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via gcloud cli # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Gcloud include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Remediation instructions to resolve violation via cloud console # @!attribute [rw] console_uris # @return [::Array<::String>] # Link to console page where violations can be resolved # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via cloud console # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Console include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Classifying remediation into various types based on the kind of # violation. For example, violations caused due to changes in boolean org # policy requires different remediation instructions compared to violation # caused due to changes in allowed values of list org policy. module RemediationType # Unspecified remediation type REMEDIATION_TYPE_UNSPECIFIED = 0 # Remediation type for boolean org policy REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION = 1 # Remediation type for list org policy which have allowed values in the # monitoring rule REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION = 2 # Remediation type for list org policy which have denied values in the # monitoring rule REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION = 3 # Remediation type for gcp.restrictCmekCryptoKeyProjects REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION = 4 # Remediation type for resource violation. REMEDIATION_RESOURCE_VIOLATION = 5 end end # Violation State Values module State # Unspecified state. STATE_UNSPECIFIED = 0 # Violation is resolved. RESOLVED = 1 # Violation is Unresolved UNRESOLVED = 2 # Violation is Exception EXCEPTION = 3 end end |
#remediation ⇒ ::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation (readonly)
Returns Output only. Compliance violation remediation.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
# File 'proto_docs/google/cloud/cloudcontrolspartner/v1/violations.rb', line 63 class Violation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents remediation guidance to resolve compliance violation for # AssuredWorkload # @!attribute [rw] instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions] # Required. Remediation instructions to resolve violations # @!attribute [rw] compliant_values # @return [::Array<::String>] # Values that can resolve the violation # For example: for list org policy violations, this will either be the list # of allowed or denied values # @!attribute [r] remediation_type # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::RemediationType] # Output only. Remediation type based on the type of org policy values # violated class Remediation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Instructions to remediate violation # @!attribute [rw] gcloud_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Gcloud] # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] console_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Console] # Remediation instructions to resolve violation via cloud console class Instructions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] gcloud_commands # @return [::Array<::String>] # Gcloud command to resolve violation # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via gcloud cli # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Gcloud include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Remediation instructions to resolve violation via cloud console # @!attribute [rw] console_uris # @return [::Array<::String>] # Link to console page where violations can be resolved # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via cloud console # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Console include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Classifying remediation into various types based on the kind of # violation. For example, violations caused due to changes in boolean org # policy requires different remediation instructions compared to violation # caused due to changes in allowed values of list org policy. module RemediationType # Unspecified remediation type REMEDIATION_TYPE_UNSPECIFIED = 0 # Remediation type for boolean org policy REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION = 1 # Remediation type for list org policy which have allowed values in the # monitoring rule REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION = 2 # Remediation type for list org policy which have denied values in the # monitoring rule REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION = 3 # Remediation type for gcp.restrictCmekCryptoKeyProjects REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION = 4 # Remediation type for resource violation. REMEDIATION_RESOURCE_VIOLATION = 5 end end # Violation State Values module State # Unspecified state. STATE_UNSPECIFIED = 0 # Violation is resolved. RESOLVED = 1 # Violation is Unresolved UNRESOLVED = 2 # Violation is Exception EXCEPTION = 3 end end |
#resolve_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. Time of the event which fixed the Violation. If the violation is ACTIVE this will be empty.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
# File 'proto_docs/google/cloud/cloudcontrolspartner/v1/violations.rb', line 63 class Violation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents remediation guidance to resolve compliance violation for # AssuredWorkload # @!attribute [rw] instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions] # Required. Remediation instructions to resolve violations # @!attribute [rw] compliant_values # @return [::Array<::String>] # Values that can resolve the violation # For example: for list org policy violations, this will either be the list # of allowed or denied values # @!attribute [r] remediation_type # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::RemediationType] # Output only. Remediation type based on the type of org policy values # violated class Remediation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Instructions to remediate violation # @!attribute [rw] gcloud_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Gcloud] # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] console_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Console] # Remediation instructions to resolve violation via cloud console class Instructions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] gcloud_commands # @return [::Array<::String>] # Gcloud command to resolve violation # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via gcloud cli # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Gcloud include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Remediation instructions to resolve violation via cloud console # @!attribute [rw] console_uris # @return [::Array<::String>] # Link to console page where violations can be resolved # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via cloud console # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Console include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Classifying remediation into various types based on the kind of # violation. For example, violations caused due to changes in boolean org # policy requires different remediation instructions compared to violation # caused due to changes in allowed values of list org policy. module RemediationType # Unspecified remediation type REMEDIATION_TYPE_UNSPECIFIED = 0 # Remediation type for boolean org policy REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION = 1 # Remediation type for list org policy which have allowed values in the # monitoring rule REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION = 2 # Remediation type for list org policy which have denied values in the # monitoring rule REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION = 3 # Remediation type for gcp.restrictCmekCryptoKeyProjects REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION = 4 # Remediation type for resource violation. REMEDIATION_RESOURCE_VIOLATION = 5 end end # Violation State Values module State # Unspecified state. STATE_UNSPECIFIED = 0 # Violation is resolved. RESOLVED = 1 # Violation is Unresolved UNRESOLVED = 2 # Violation is Exception EXCEPTION = 3 end end |
#state ⇒ ::Google::Cloud::CloudControlsPartner::V1::Violation::State (readonly)
Returns Output only. State of the violation.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
# File 'proto_docs/google/cloud/cloudcontrolspartner/v1/violations.rb', line 63 class Violation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents remediation guidance to resolve compliance violation for # AssuredWorkload # @!attribute [rw] instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions] # Required. Remediation instructions to resolve violations # @!attribute [rw] compliant_values # @return [::Array<::String>] # Values that can resolve the violation # For example: for list org policy violations, this will either be the list # of allowed or denied values # @!attribute [r] remediation_type # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::RemediationType] # Output only. Remediation type based on the type of org policy values # violated class Remediation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Instructions to remediate violation # @!attribute [rw] gcloud_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Gcloud] # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] console_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Console] # Remediation instructions to resolve violation via cloud console class Instructions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] gcloud_commands # @return [::Array<::String>] # Gcloud command to resolve violation # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via gcloud cli # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Gcloud include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Remediation instructions to resolve violation via cloud console # @!attribute [rw] console_uris # @return [::Array<::String>] # Link to console page where violations can be resolved # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via cloud console # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Console include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Classifying remediation into various types based on the kind of # violation. For example, violations caused due to changes in boolean org # policy requires different remediation instructions compared to violation # caused due to changes in allowed values of list org policy. module RemediationType # Unspecified remediation type REMEDIATION_TYPE_UNSPECIFIED = 0 # Remediation type for boolean org policy REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION = 1 # Remediation type for list org policy which have allowed values in the # monitoring rule REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION = 2 # Remediation type for list org policy which have denied values in the # monitoring rule REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION = 3 # Remediation type for gcp.restrictCmekCryptoKeyProjects REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION = 4 # Remediation type for resource violation. REMEDIATION_RESOURCE_VIOLATION = 5 end end # Violation State Values module State # Unspecified state. STATE_UNSPECIFIED = 0 # Violation is resolved. RESOLVED = 1 # Violation is Unresolved UNRESOLVED = 2 # Violation is Exception EXCEPTION = 3 end end |
#update_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The last time when the Violation record was updated.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
# File 'proto_docs/google/cloud/cloudcontrolspartner/v1/violations.rb', line 63 class Violation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents remediation guidance to resolve compliance violation for # AssuredWorkload # @!attribute [rw] instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions] # Required. Remediation instructions to resolve violations # @!attribute [rw] compliant_values # @return [::Array<::String>] # Values that can resolve the violation # For example: for list org policy violations, this will either be the list # of allowed or denied values # @!attribute [r] remediation_type # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::RemediationType] # Output only. Remediation type based on the type of org policy values # violated class Remediation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Instructions to remediate violation # @!attribute [rw] gcloud_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Gcloud] # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] console_instructions # @return [::Google::Cloud::CloudControlsPartner::V1::Violation::Remediation::Instructions::Console] # Remediation instructions to resolve violation via cloud console class Instructions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Remediation instructions to resolve violation via gcloud cli # @!attribute [rw] gcloud_commands # @return [::Array<::String>] # Gcloud command to resolve violation # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via gcloud cli # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Gcloud include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Remediation instructions to resolve violation via cloud console # @!attribute [rw] console_uris # @return [::Array<::String>] # Link to console page where violations can be resolved # @!attribute [rw] steps # @return [::Array<::String>] # Steps to resolve violation via cloud console # @!attribute [rw] additional_links # @return [::Array<::String>] # Additional urls for more information about steps class Console include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Classifying remediation into various types based on the kind of # violation. For example, violations caused due to changes in boolean org # policy requires different remediation instructions compared to violation # caused due to changes in allowed values of list org policy. module RemediationType # Unspecified remediation type REMEDIATION_TYPE_UNSPECIFIED = 0 # Remediation type for boolean org policy REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION = 1 # Remediation type for list org policy which have allowed values in the # monitoring rule REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION = 2 # Remediation type for list org policy which have denied values in the # monitoring rule REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION = 3 # Remediation type for gcp.restrictCmekCryptoKeyProjects REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION = 4 # Remediation type for resource violation. REMEDIATION_RESOURCE_VIOLATION = 5 end end # Violation State Values module State # Unspecified state. STATE_UNSPECIFIED = 0 # Violation is resolved. RESOLVED = 1 # Violation is Unresolved UNRESOLVED = 2 # Violation is Exception EXCEPTION = 3 end end |