Class: Google::Cloud::AssuredWorkloads::V1::Violation

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb

Overview

Workload monitoring Violation.

Defined Under Namespace

Modules: State Classes: Remediation

Instance Attribute Summary collapse

Instance Attribute Details

#acknowledged::Boolean (readonly)

Returns Output only. A boolean that indicates if the violation is acknowledged.

Returns:

  • (::Boolean)

    Output only. A boolean that indicates if the violation is acknowledged



612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
# File 'proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb', line 612

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::AssuredWorkloads::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::AssuredWorkloads::V1::Violation::Remediation::RemediationType]
  #     Output only. Reemediation 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::AssuredWorkloads::V1::Violation::Remediation::Instructions::Gcloud]
    #     Remediation instructions to resolve violation via gcloud cli
    # @!attribute [rw] console_instructions
    #   @return [::Google::Cloud::AssuredWorkloads::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
    end
  end

  # Violation State Values
  module State
    # Unspecified state.
    STATE_UNSPECIFIED = 0

    # Violation is resolved.
    RESOLVED = 2

    # Violation is Unresolved
    UNRESOLVED = 3

    # Violation is Exception
    EXCEPTION = 4
  end
end

#acknowledgement_time::Google::Protobuf::Timestamp

Returns Optional. Timestamp when this violation was acknowledged last. This will be absent when acknowledged field is marked as false.

Returns:

  • (::Google::Protobuf::Timestamp)

    Optional. Timestamp when this violation was acknowledged last. This will be absent when acknowledged field is marked as false.



612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
# File 'proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb', line 612

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::AssuredWorkloads::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::AssuredWorkloads::V1::Violation::Remediation::RemediationType]
  #     Output only. Reemediation 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::AssuredWorkloads::V1::Violation::Remediation::Instructions::Gcloud]
    #     Remediation instructions to resolve violation via gcloud cli
    # @!attribute [rw] console_instructions
    #   @return [::Google::Cloud::AssuredWorkloads::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
    end
  end

  # Violation State Values
  module State
    # Unspecified state.
    STATE_UNSPECIFIED = 0

    # Violation is resolved.
    RESOLVED = 2

    # Violation is Unresolved
    UNRESOLVED = 3

    # Violation is Exception
    EXCEPTION = 4
  end
end

Returns Output only. Immutable. Audit Log Link for violated resource Format: https://console.cloud.google.com/logs/query;query=\{logName}\{protoPayload.resourceName}\{timeRange}\{folder}.

Returns:



612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
# File 'proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb', line 612

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::AssuredWorkloads::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::AssuredWorkloads::V1::Violation::Remediation::RemediationType]
  #     Output only. Reemediation 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::AssuredWorkloads::V1::Violation::Remediation::Instructions::Gcloud]
    #     Remediation instructions to resolve violation via gcloud cli
    # @!attribute [rw] console_instructions
    #   @return [::Google::Cloud::AssuredWorkloads::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
    end
  end

  # Violation State Values
  module State
    # Unspecified state.
    STATE_UNSPECIFIED = 0

    # Violation is resolved.
    RESOLVED = 2

    # Violation is Unresolved
    UNRESOLVED = 3

    # Violation is Exception
    EXCEPTION = 4
  end
end

#begin_time::Google::Protobuf::Timestamp (readonly)

Returns Output only. Time of the event which triggered the Violation.

Returns:



612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
# File 'proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb', line 612

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::AssuredWorkloads::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::AssuredWorkloads::V1::Violation::Remediation::RemediationType]
  #     Output only. Reemediation 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::AssuredWorkloads::V1::Violation::Remediation::Instructions::Gcloud]
    #     Remediation instructions to resolve violation via gcloud cli
    # @!attribute [rw] console_instructions
    #   @return [::Google::Cloud::AssuredWorkloads::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
    end
  end

  # Violation State Values
  module State
    # Unspecified state.
    STATE_UNSPECIFIED = 0

    # Violation is resolved.
    RESOLVED = 2

    # Violation is Unresolved
    UNRESOLVED = 3

    # Violation is Exception
    EXCEPTION = 4
  end
end

#category::String (readonly)

Returns Output only. Category under which this violation is mapped. e.g. Location, Service Usage, Access, Encryption, etc.

Returns:

  • (::String)

    Output only. Category under which this violation is mapped. e.g. Location, Service Usage, Access, Encryption, etc.



612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
# File 'proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb', line 612

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::AssuredWorkloads::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::AssuredWorkloads::V1::Violation::Remediation::RemediationType]
  #     Output only. Reemediation 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::AssuredWorkloads::V1::Violation::Remediation::Instructions::Gcloud]
    #     Remediation instructions to resolve violation via gcloud cli
    # @!attribute [rw] console_instructions
    #   @return [::Google::Cloud::AssuredWorkloads::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
    end
  end

  # Violation State Values
  module State
    # Unspecified state.
    STATE_UNSPECIFIED = 0

    # Violation is resolved.
    RESOLVED = 2

    # Violation is Unresolved
    UNRESOLVED = 3

    # Violation is Exception
    EXCEPTION = 4
  end
end

#description::String (readonly)

Returns Output only. Description for the Violation. e.g. OrgPolicy gcp.resourceLocations has non compliant value.

Returns:

  • (::String)

    Output only. Description for the Violation. e.g. OrgPolicy gcp.resourceLocations has non compliant value.



612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
# File 'proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb', line 612

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::AssuredWorkloads::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::AssuredWorkloads::V1::Violation::Remediation::RemediationType]
  #     Output only. Reemediation 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::AssuredWorkloads::V1::Violation::Remediation::Instructions::Gcloud]
    #     Remediation instructions to resolve violation via gcloud cli
    # @!attribute [rw] console_instructions
    #   @return [::Google::Cloud::AssuredWorkloads::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
    end
  end

  # Violation State Values
  module State
    # Unspecified state.
    STATE_UNSPECIFIED = 0

    # Violation is resolved.
    RESOLVED = 2

    # Violation is Unresolved
    UNRESOLVED = 3

    # Violation is Exception
    EXCEPTION = 4
  end
end

Returns Output only. Immutable. Audit Log link to find business justification provided for violation exception. Format: https://console.cloud.google.com/logs/query;query=\{logName}\{protoPayload.resourceName}\{protoPayload.methodName}\{timeRange}\{organization}.

Returns:



612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
# File 'proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb', line 612

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::AssuredWorkloads::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::AssuredWorkloads::V1::Violation::Remediation::RemediationType]
  #     Output only. Reemediation 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::AssuredWorkloads::V1::Violation::Remediation::Instructions::Gcloud]
    #     Remediation instructions to resolve violation via gcloud cli
    # @!attribute [rw] console_instructions
    #   @return [::Google::Cloud::AssuredWorkloads::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
    end
  end

  # Violation State Values
  module State
    # Unspecified state.
    STATE_UNSPECIFIED = 0

    # Violation is resolved.
    RESOLVED = 2

    # Violation is Unresolved
    UNRESOLVED = 3

    # Violation is Exception
    EXCEPTION = 4
  end
end

#name::String (readonly)

Returns Output only. Immutable. Name of the Violation. Format: organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}.

Returns:

  • (::String)

    Output only. Immutable. Name of the Violation. Format: organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}



612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
# File 'proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb', line 612

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::AssuredWorkloads::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::AssuredWorkloads::V1::Violation::Remediation::RemediationType]
  #     Output only. Reemediation 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::AssuredWorkloads::V1::Violation::Remediation::Instructions::Gcloud]
    #     Remediation instructions to resolve violation via gcloud cli
    # @!attribute [rw] console_instructions
    #   @return [::Google::Cloud::AssuredWorkloads::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
    end
  end

  # Violation State Values
  module State
    # Unspecified state.
    STATE_UNSPECIFIED = 0

    # Violation is resolved.
    RESOLVED = 2

    # Violation is Unresolved
    UNRESOLVED = 3

    # Violation is Exception
    EXCEPTION = 4
  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}.

Returns:

  • (::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}



612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
# File 'proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb', line 612

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::AssuredWorkloads::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::AssuredWorkloads::V1::Violation::Remediation::RemediationType]
  #     Output only. Reemediation 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::AssuredWorkloads::V1::Violation::Remediation::Instructions::Gcloud]
    #     Remediation instructions to resolve violation via gcloud cli
    # @!attribute [rw] console_instructions
    #   @return [::Google::Cloud::AssuredWorkloads::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
    end
  end

  # Violation State Values
  module State
    # Unspecified state.
    STATE_UNSPECIFIED = 0

    # Violation is resolved.
    RESOLVED = 2

    # Violation is Unresolved
    UNRESOLVED = 3

    # Violation is Exception
    EXCEPTION = 4
  end
end

#org_policy_constraint::String (readonly)

Returns Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in this violation.

Returns:

  • (::String)

    Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in this violation.



612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
# File 'proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb', line 612

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::AssuredWorkloads::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::AssuredWorkloads::V1::Violation::Remediation::RemediationType]
  #     Output only. Reemediation 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::AssuredWorkloads::V1::Violation::Remediation::Instructions::Gcloud]
    #     Remediation instructions to resolve violation via gcloud cli
    # @!attribute [rw] console_instructions
    #   @return [::Google::Cloud::AssuredWorkloads::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
    end
  end

  # Violation State Values
  module State
    # Unspecified state.
    STATE_UNSPECIFIED = 0

    # Violation is resolved.
    RESOLVED = 2

    # Violation is Unresolved
    UNRESOLVED = 3

    # Violation is Exception
    EXCEPTION = 4
  end
end

#remediation::Google::Cloud::AssuredWorkloads::V1::Violation::Remediation (readonly)

Returns Output only. Compliance violation remediation.

Returns:



612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
# File 'proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb', line 612

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::AssuredWorkloads::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::AssuredWorkloads::V1::Violation::Remediation::RemediationType]
  #     Output only. Reemediation 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::AssuredWorkloads::V1::Violation::Remediation::Instructions::Gcloud]
    #     Remediation instructions to resolve violation via gcloud cli
    # @!attribute [rw] console_instructions
    #   @return [::Google::Cloud::AssuredWorkloads::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
    end
  end

  # Violation State Values
  module State
    # Unspecified state.
    STATE_UNSPECIFIED = 0

    # Violation is resolved.
    RESOLVED = 2

    # Violation is Unresolved
    UNRESOLVED = 3

    # Violation is Exception
    EXCEPTION = 4
  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.

Returns:



612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
# File 'proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb', line 612

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::AssuredWorkloads::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::AssuredWorkloads::V1::Violation::Remediation::RemediationType]
  #     Output only. Reemediation 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::AssuredWorkloads::V1::Violation::Remediation::Instructions::Gcloud]
    #     Remediation instructions to resolve violation via gcloud cli
    # @!attribute [rw] console_instructions
    #   @return [::Google::Cloud::AssuredWorkloads::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
    end
  end

  # Violation State Values
  module State
    # Unspecified state.
    STATE_UNSPECIFIED = 0

    # Violation is resolved.
    RESOLVED = 2

    # Violation is Unresolved
    UNRESOLVED = 3

    # Violation is Exception
    EXCEPTION = 4
  end
end

#state::Google::Cloud::AssuredWorkloads::V1::Violation::State (readonly)

Returns Output only. State of the violation.

Returns:



612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
# File 'proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb', line 612

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::AssuredWorkloads::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::AssuredWorkloads::V1::Violation::Remediation::RemediationType]
  #     Output only. Reemediation 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::AssuredWorkloads::V1::Violation::Remediation::Instructions::Gcloud]
    #     Remediation instructions to resolve violation via gcloud cli
    # @!attribute [rw] console_instructions
    #   @return [::Google::Cloud::AssuredWorkloads::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
    end
  end

  # Violation State Values
  module State
    # Unspecified state.
    STATE_UNSPECIFIED = 0

    # Violation is resolved.
    RESOLVED = 2

    # Violation is Unresolved
    UNRESOLVED = 3

    # Violation is Exception
    EXCEPTION = 4
  end
end

#update_time::Google::Protobuf::Timestamp (readonly)

Returns Output only. The last time when the Violation record was updated.

Returns:



612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
# File 'proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb', line 612

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::AssuredWorkloads::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::AssuredWorkloads::V1::Violation::Remediation::RemediationType]
  #     Output only. Reemediation 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::AssuredWorkloads::V1::Violation::Remediation::Instructions::Gcloud]
    #     Remediation instructions to resolve violation via gcloud cli
    # @!attribute [rw] console_instructions
    #   @return [::Google::Cloud::AssuredWorkloads::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
    end
  end

  # Violation State Values
  module State
    # Unspecified state.
    STATE_UNSPECIFIED = 0

    # Violation is resolved.
    RESOLVED = 2

    # Violation is Unresolved
    UNRESOLVED = 3

    # Violation is Exception
    EXCEPTION = 4
  end
end