Class: Grafeas::V1::DiscoveryOccurrence

Inherits:
Object
  • Object
show all
Extended by:
Google::Protobuf::MessageExts::ClassMethods
Includes:
Google::Protobuf::MessageExts
Defined in:
proto_docs/grafeas/v1/discovery.rb

Overview

Provides information about the analysis status of a discovered resource.

Defined Under Namespace

Modules: AnalysisStatus, ContinuousAnalysis Classes: AnalysisCompleted, SBOMStatus, VulnerabilityAttestation

Instance Attribute Summary collapse

Instance Attribute Details

#analysis_completed::Grafeas::V1::DiscoveryOccurrence::AnalysisCompleted



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
169
# File 'proto_docs/grafeas/v1/discovery.rb', line 67

class DiscoveryOccurrence
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Indicates which analysis completed successfully. Multiple types of
  # analysis can be performed on a single resource.
  # @!attribute [rw] analysis_type
  #   @return [::Array<::String>]
  class AnalysisCompleted
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The status of an SBOM generation.
  # @!attribute [rw] sbom_state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::SBOMStatus::SBOMState]
  #     The progress of the SBOM generation.
  # @!attribute [rw] error
  #   @return [::String]
  #     If there was an error generating an SBOM, this will indicate what that
  #     error was.
  class SBOMStatus
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the progress of the SBOM generation.
    module SBOMState
      # Default unknown state.
      SBOM_STATE_UNSPECIFIED = 0

      # SBOM scanning is pending.
      PENDING = 1

      # SBOM scanning has completed.
      COMPLETE = 2
    end
  end

  # The status of an vulnerability attestation generation.
  # @!attribute [rw] last_attempt_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The last time we attempted to generate an attestation.
  # @!attribute [rw] state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::VulnerabilityAttestation::VulnerabilityAttestationState]
  #     The success/failure state of the latest attestation attempt.
  # @!attribute [rw] error
  #   @return [::String]
  #     If failure, the error reason for why the attestation generation failed.
  class VulnerabilityAttestation
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the state of the attestation generation.
    module VulnerabilityAttestationState
      # Default unknown state.
      VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0

      # Attestation was successfully generated and stored.
      SUCCESS = 1

      # Attestation was unsuccessfully generated and stored.
      FAILURE = 2
    end
  end

  # Whether the resource is continuously analyzed.
  module ContinuousAnalysis
    # Unknown.
    CONTINUOUS_ANALYSIS_UNSPECIFIED = 0

    # The resource is continuously analyzed.
    ACTIVE = 1

    # The resource is ignored for continuous analysis.
    INACTIVE = 2
  end

  # Analysis status for a resource. Currently for initial analysis only (not
  # updated in continuous analysis).
  module AnalysisStatus
    # Unknown.
    ANALYSIS_STATUS_UNSPECIFIED = 0

    # Resource is known but no action has been taken yet.
    PENDING = 1

    # Resource is being analyzed.
    SCANNING = 2

    # Analysis has finished successfully.
    FINISHED_SUCCESS = 3

    # Analysis has completed.
    COMPLETE = 3

    # Analysis has finished unsuccessfully, the analysis itself is in a bad
    # state.
    FINISHED_FAILED = 4

    # The resource is known not to be supported.
    FINISHED_UNSUPPORTED = 5
  end
end

#analysis_error::Array<::Google::Rpc::Status>

Returns Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.

Returns:

  • (::Array<::Google::Rpc::Status>)

    Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.



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
169
# File 'proto_docs/grafeas/v1/discovery.rb', line 67

class DiscoveryOccurrence
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Indicates which analysis completed successfully. Multiple types of
  # analysis can be performed on a single resource.
  # @!attribute [rw] analysis_type
  #   @return [::Array<::String>]
  class AnalysisCompleted
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The status of an SBOM generation.
  # @!attribute [rw] sbom_state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::SBOMStatus::SBOMState]
  #     The progress of the SBOM generation.
  # @!attribute [rw] error
  #   @return [::String]
  #     If there was an error generating an SBOM, this will indicate what that
  #     error was.
  class SBOMStatus
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the progress of the SBOM generation.
    module SBOMState
      # Default unknown state.
      SBOM_STATE_UNSPECIFIED = 0

      # SBOM scanning is pending.
      PENDING = 1

      # SBOM scanning has completed.
      COMPLETE = 2
    end
  end

  # The status of an vulnerability attestation generation.
  # @!attribute [rw] last_attempt_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The last time we attempted to generate an attestation.
  # @!attribute [rw] state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::VulnerabilityAttestation::VulnerabilityAttestationState]
  #     The success/failure state of the latest attestation attempt.
  # @!attribute [rw] error
  #   @return [::String]
  #     If failure, the error reason for why the attestation generation failed.
  class VulnerabilityAttestation
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the state of the attestation generation.
    module VulnerabilityAttestationState
      # Default unknown state.
      VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0

      # Attestation was successfully generated and stored.
      SUCCESS = 1

      # Attestation was unsuccessfully generated and stored.
      FAILURE = 2
    end
  end

  # Whether the resource is continuously analyzed.
  module ContinuousAnalysis
    # Unknown.
    CONTINUOUS_ANALYSIS_UNSPECIFIED = 0

    # The resource is continuously analyzed.
    ACTIVE = 1

    # The resource is ignored for continuous analysis.
    INACTIVE = 2
  end

  # Analysis status for a resource. Currently for initial analysis only (not
  # updated in continuous analysis).
  module AnalysisStatus
    # Unknown.
    ANALYSIS_STATUS_UNSPECIFIED = 0

    # Resource is known but no action has been taken yet.
    PENDING = 1

    # Resource is being analyzed.
    SCANNING = 2

    # Analysis has finished successfully.
    FINISHED_SUCCESS = 3

    # Analysis has completed.
    COMPLETE = 3

    # Analysis has finished unsuccessfully, the analysis itself is in a bad
    # state.
    FINISHED_FAILED = 4

    # The resource is known not to be supported.
    FINISHED_UNSUPPORTED = 5
  end
end

#analysis_status::Grafeas::V1::DiscoveryOccurrence::AnalysisStatus

Returns The status of discovery for the resource.

Returns:



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
169
# File 'proto_docs/grafeas/v1/discovery.rb', line 67

class DiscoveryOccurrence
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Indicates which analysis completed successfully. Multiple types of
  # analysis can be performed on a single resource.
  # @!attribute [rw] analysis_type
  #   @return [::Array<::String>]
  class AnalysisCompleted
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The status of an SBOM generation.
  # @!attribute [rw] sbom_state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::SBOMStatus::SBOMState]
  #     The progress of the SBOM generation.
  # @!attribute [rw] error
  #   @return [::String]
  #     If there was an error generating an SBOM, this will indicate what that
  #     error was.
  class SBOMStatus
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the progress of the SBOM generation.
    module SBOMState
      # Default unknown state.
      SBOM_STATE_UNSPECIFIED = 0

      # SBOM scanning is pending.
      PENDING = 1

      # SBOM scanning has completed.
      COMPLETE = 2
    end
  end

  # The status of an vulnerability attestation generation.
  # @!attribute [rw] last_attempt_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The last time we attempted to generate an attestation.
  # @!attribute [rw] state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::VulnerabilityAttestation::VulnerabilityAttestationState]
  #     The success/failure state of the latest attestation attempt.
  # @!attribute [rw] error
  #   @return [::String]
  #     If failure, the error reason for why the attestation generation failed.
  class VulnerabilityAttestation
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the state of the attestation generation.
    module VulnerabilityAttestationState
      # Default unknown state.
      VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0

      # Attestation was successfully generated and stored.
      SUCCESS = 1

      # Attestation was unsuccessfully generated and stored.
      FAILURE = 2
    end
  end

  # Whether the resource is continuously analyzed.
  module ContinuousAnalysis
    # Unknown.
    CONTINUOUS_ANALYSIS_UNSPECIFIED = 0

    # The resource is continuously analyzed.
    ACTIVE = 1

    # The resource is ignored for continuous analysis.
    INACTIVE = 2
  end

  # Analysis status for a resource. Currently for initial analysis only (not
  # updated in continuous analysis).
  module AnalysisStatus
    # Unknown.
    ANALYSIS_STATUS_UNSPECIFIED = 0

    # Resource is known but no action has been taken yet.
    PENDING = 1

    # Resource is being analyzed.
    SCANNING = 2

    # Analysis has finished successfully.
    FINISHED_SUCCESS = 3

    # Analysis has completed.
    COMPLETE = 3

    # Analysis has finished unsuccessfully, the analysis itself is in a bad
    # state.
    FINISHED_FAILED = 4

    # The resource is known not to be supported.
    FINISHED_UNSUPPORTED = 5
  end
end

#analysis_status_error::Google::Rpc::Status

Returns When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.

Returns:

  • (::Google::Rpc::Status)

    When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.



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
169
# File 'proto_docs/grafeas/v1/discovery.rb', line 67

class DiscoveryOccurrence
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Indicates which analysis completed successfully. Multiple types of
  # analysis can be performed on a single resource.
  # @!attribute [rw] analysis_type
  #   @return [::Array<::String>]
  class AnalysisCompleted
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The status of an SBOM generation.
  # @!attribute [rw] sbom_state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::SBOMStatus::SBOMState]
  #     The progress of the SBOM generation.
  # @!attribute [rw] error
  #   @return [::String]
  #     If there was an error generating an SBOM, this will indicate what that
  #     error was.
  class SBOMStatus
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the progress of the SBOM generation.
    module SBOMState
      # Default unknown state.
      SBOM_STATE_UNSPECIFIED = 0

      # SBOM scanning is pending.
      PENDING = 1

      # SBOM scanning has completed.
      COMPLETE = 2
    end
  end

  # The status of an vulnerability attestation generation.
  # @!attribute [rw] last_attempt_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The last time we attempted to generate an attestation.
  # @!attribute [rw] state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::VulnerabilityAttestation::VulnerabilityAttestationState]
  #     The success/failure state of the latest attestation attempt.
  # @!attribute [rw] error
  #   @return [::String]
  #     If failure, the error reason for why the attestation generation failed.
  class VulnerabilityAttestation
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the state of the attestation generation.
    module VulnerabilityAttestationState
      # Default unknown state.
      VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0

      # Attestation was successfully generated and stored.
      SUCCESS = 1

      # Attestation was unsuccessfully generated and stored.
      FAILURE = 2
    end
  end

  # Whether the resource is continuously analyzed.
  module ContinuousAnalysis
    # Unknown.
    CONTINUOUS_ANALYSIS_UNSPECIFIED = 0

    # The resource is continuously analyzed.
    ACTIVE = 1

    # The resource is ignored for continuous analysis.
    INACTIVE = 2
  end

  # Analysis status for a resource. Currently for initial analysis only (not
  # updated in continuous analysis).
  module AnalysisStatus
    # Unknown.
    ANALYSIS_STATUS_UNSPECIFIED = 0

    # Resource is known but no action has been taken yet.
    PENDING = 1

    # Resource is being analyzed.
    SCANNING = 2

    # Analysis has finished successfully.
    FINISHED_SUCCESS = 3

    # Analysis has completed.
    COMPLETE = 3

    # Analysis has finished unsuccessfully, the analysis itself is in a bad
    # state.
    FINISHED_FAILED = 4

    # The resource is known not to be supported.
    FINISHED_UNSUPPORTED = 5
  end
end

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

Returns The time occurrences related to this discovery occurrence were archived.

Returns:



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
169
# File 'proto_docs/grafeas/v1/discovery.rb', line 67

class DiscoveryOccurrence
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Indicates which analysis completed successfully. Multiple types of
  # analysis can be performed on a single resource.
  # @!attribute [rw] analysis_type
  #   @return [::Array<::String>]
  class AnalysisCompleted
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The status of an SBOM generation.
  # @!attribute [rw] sbom_state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::SBOMStatus::SBOMState]
  #     The progress of the SBOM generation.
  # @!attribute [rw] error
  #   @return [::String]
  #     If there was an error generating an SBOM, this will indicate what that
  #     error was.
  class SBOMStatus
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the progress of the SBOM generation.
    module SBOMState
      # Default unknown state.
      SBOM_STATE_UNSPECIFIED = 0

      # SBOM scanning is pending.
      PENDING = 1

      # SBOM scanning has completed.
      COMPLETE = 2
    end
  end

  # The status of an vulnerability attestation generation.
  # @!attribute [rw] last_attempt_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The last time we attempted to generate an attestation.
  # @!attribute [rw] state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::VulnerabilityAttestation::VulnerabilityAttestationState]
  #     The success/failure state of the latest attestation attempt.
  # @!attribute [rw] error
  #   @return [::String]
  #     If failure, the error reason for why the attestation generation failed.
  class VulnerabilityAttestation
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the state of the attestation generation.
    module VulnerabilityAttestationState
      # Default unknown state.
      VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0

      # Attestation was successfully generated and stored.
      SUCCESS = 1

      # Attestation was unsuccessfully generated and stored.
      FAILURE = 2
    end
  end

  # Whether the resource is continuously analyzed.
  module ContinuousAnalysis
    # Unknown.
    CONTINUOUS_ANALYSIS_UNSPECIFIED = 0

    # The resource is continuously analyzed.
    ACTIVE = 1

    # The resource is ignored for continuous analysis.
    INACTIVE = 2
  end

  # Analysis status for a resource. Currently for initial analysis only (not
  # updated in continuous analysis).
  module AnalysisStatus
    # Unknown.
    ANALYSIS_STATUS_UNSPECIFIED = 0

    # Resource is known but no action has been taken yet.
    PENDING = 1

    # Resource is being analyzed.
    SCANNING = 2

    # Analysis has finished successfully.
    FINISHED_SUCCESS = 3

    # Analysis has completed.
    COMPLETE = 3

    # Analysis has finished unsuccessfully, the analysis itself is in a bad
    # state.
    FINISHED_FAILED = 4

    # The resource is known not to be supported.
    FINISHED_UNSUPPORTED = 5
  end
end

#continuous_analysis::Grafeas::V1::DiscoveryOccurrence::ContinuousAnalysis

Returns Whether the resource is continuously analyzed.

Returns:



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
169
# File 'proto_docs/grafeas/v1/discovery.rb', line 67

class DiscoveryOccurrence
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Indicates which analysis completed successfully. Multiple types of
  # analysis can be performed on a single resource.
  # @!attribute [rw] analysis_type
  #   @return [::Array<::String>]
  class AnalysisCompleted
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The status of an SBOM generation.
  # @!attribute [rw] sbom_state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::SBOMStatus::SBOMState]
  #     The progress of the SBOM generation.
  # @!attribute [rw] error
  #   @return [::String]
  #     If there was an error generating an SBOM, this will indicate what that
  #     error was.
  class SBOMStatus
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the progress of the SBOM generation.
    module SBOMState
      # Default unknown state.
      SBOM_STATE_UNSPECIFIED = 0

      # SBOM scanning is pending.
      PENDING = 1

      # SBOM scanning has completed.
      COMPLETE = 2
    end
  end

  # The status of an vulnerability attestation generation.
  # @!attribute [rw] last_attempt_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The last time we attempted to generate an attestation.
  # @!attribute [rw] state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::VulnerabilityAttestation::VulnerabilityAttestationState]
  #     The success/failure state of the latest attestation attempt.
  # @!attribute [rw] error
  #   @return [::String]
  #     If failure, the error reason for why the attestation generation failed.
  class VulnerabilityAttestation
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the state of the attestation generation.
    module VulnerabilityAttestationState
      # Default unknown state.
      VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0

      # Attestation was successfully generated and stored.
      SUCCESS = 1

      # Attestation was unsuccessfully generated and stored.
      FAILURE = 2
    end
  end

  # Whether the resource is continuously analyzed.
  module ContinuousAnalysis
    # Unknown.
    CONTINUOUS_ANALYSIS_UNSPECIFIED = 0

    # The resource is continuously analyzed.
    ACTIVE = 1

    # The resource is ignored for continuous analysis.
    INACTIVE = 2
  end

  # Analysis status for a resource. Currently for initial analysis only (not
  # updated in continuous analysis).
  module AnalysisStatus
    # Unknown.
    ANALYSIS_STATUS_UNSPECIFIED = 0

    # Resource is known but no action has been taken yet.
    PENDING = 1

    # Resource is being analyzed.
    SCANNING = 2

    # Analysis has finished successfully.
    FINISHED_SUCCESS = 3

    # Analysis has completed.
    COMPLETE = 3

    # Analysis has finished unsuccessfully, the analysis itself is in a bad
    # state.
    FINISHED_FAILED = 4

    # The resource is known not to be supported.
    FINISHED_UNSUPPORTED = 5
  end
end

#cpe::String

Returns The CPE of the resource being scanned.

Returns:

  • (::String)

    The CPE of the resource being scanned.



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
169
# File 'proto_docs/grafeas/v1/discovery.rb', line 67

class DiscoveryOccurrence
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Indicates which analysis completed successfully. Multiple types of
  # analysis can be performed on a single resource.
  # @!attribute [rw] analysis_type
  #   @return [::Array<::String>]
  class AnalysisCompleted
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The status of an SBOM generation.
  # @!attribute [rw] sbom_state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::SBOMStatus::SBOMState]
  #     The progress of the SBOM generation.
  # @!attribute [rw] error
  #   @return [::String]
  #     If there was an error generating an SBOM, this will indicate what that
  #     error was.
  class SBOMStatus
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the progress of the SBOM generation.
    module SBOMState
      # Default unknown state.
      SBOM_STATE_UNSPECIFIED = 0

      # SBOM scanning is pending.
      PENDING = 1

      # SBOM scanning has completed.
      COMPLETE = 2
    end
  end

  # The status of an vulnerability attestation generation.
  # @!attribute [rw] last_attempt_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The last time we attempted to generate an attestation.
  # @!attribute [rw] state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::VulnerabilityAttestation::VulnerabilityAttestationState]
  #     The success/failure state of the latest attestation attempt.
  # @!attribute [rw] error
  #   @return [::String]
  #     If failure, the error reason for why the attestation generation failed.
  class VulnerabilityAttestation
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the state of the attestation generation.
    module VulnerabilityAttestationState
      # Default unknown state.
      VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0

      # Attestation was successfully generated and stored.
      SUCCESS = 1

      # Attestation was unsuccessfully generated and stored.
      FAILURE = 2
    end
  end

  # Whether the resource is continuously analyzed.
  module ContinuousAnalysis
    # Unknown.
    CONTINUOUS_ANALYSIS_UNSPECIFIED = 0

    # The resource is continuously analyzed.
    ACTIVE = 1

    # The resource is ignored for continuous analysis.
    INACTIVE = 2
  end

  # Analysis status for a resource. Currently for initial analysis only (not
  # updated in continuous analysis).
  module AnalysisStatus
    # Unknown.
    ANALYSIS_STATUS_UNSPECIFIED = 0

    # Resource is known but no action has been taken yet.
    PENDING = 1

    # Resource is being analyzed.
    SCANNING = 2

    # Analysis has finished successfully.
    FINISHED_SUCCESS = 3

    # Analysis has completed.
    COMPLETE = 3

    # Analysis has finished unsuccessfully, the analysis itself is in a bad
    # state.
    FINISHED_FAILED = 4

    # The resource is known not to be supported.
    FINISHED_UNSUPPORTED = 5
  end
end

#last_scan_time::Google::Protobuf::Timestamp

Returns The last time this resource was scanned.

Returns:



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
169
# File 'proto_docs/grafeas/v1/discovery.rb', line 67

class DiscoveryOccurrence
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Indicates which analysis completed successfully. Multiple types of
  # analysis can be performed on a single resource.
  # @!attribute [rw] analysis_type
  #   @return [::Array<::String>]
  class AnalysisCompleted
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The status of an SBOM generation.
  # @!attribute [rw] sbom_state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::SBOMStatus::SBOMState]
  #     The progress of the SBOM generation.
  # @!attribute [rw] error
  #   @return [::String]
  #     If there was an error generating an SBOM, this will indicate what that
  #     error was.
  class SBOMStatus
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the progress of the SBOM generation.
    module SBOMState
      # Default unknown state.
      SBOM_STATE_UNSPECIFIED = 0

      # SBOM scanning is pending.
      PENDING = 1

      # SBOM scanning has completed.
      COMPLETE = 2
    end
  end

  # The status of an vulnerability attestation generation.
  # @!attribute [rw] last_attempt_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The last time we attempted to generate an attestation.
  # @!attribute [rw] state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::VulnerabilityAttestation::VulnerabilityAttestationState]
  #     The success/failure state of the latest attestation attempt.
  # @!attribute [rw] error
  #   @return [::String]
  #     If failure, the error reason for why the attestation generation failed.
  class VulnerabilityAttestation
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the state of the attestation generation.
    module VulnerabilityAttestationState
      # Default unknown state.
      VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0

      # Attestation was successfully generated and stored.
      SUCCESS = 1

      # Attestation was unsuccessfully generated and stored.
      FAILURE = 2
    end
  end

  # Whether the resource is continuously analyzed.
  module ContinuousAnalysis
    # Unknown.
    CONTINUOUS_ANALYSIS_UNSPECIFIED = 0

    # The resource is continuously analyzed.
    ACTIVE = 1

    # The resource is ignored for continuous analysis.
    INACTIVE = 2
  end

  # Analysis status for a resource. Currently for initial analysis only (not
  # updated in continuous analysis).
  module AnalysisStatus
    # Unknown.
    ANALYSIS_STATUS_UNSPECIFIED = 0

    # Resource is known but no action has been taken yet.
    PENDING = 1

    # Resource is being analyzed.
    SCANNING = 2

    # Analysis has finished successfully.
    FINISHED_SUCCESS = 3

    # Analysis has completed.
    COMPLETE = 3

    # Analysis has finished unsuccessfully, the analysis itself is in a bad
    # state.
    FINISHED_FAILED = 4

    # The resource is known not to be supported.
    FINISHED_UNSUPPORTED = 5
  end
end

#sbom_status::Grafeas::V1::DiscoveryOccurrence::SBOMStatus

Returns The status of an SBOM generation.

Returns:



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
169
# File 'proto_docs/grafeas/v1/discovery.rb', line 67

class DiscoveryOccurrence
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Indicates which analysis completed successfully. Multiple types of
  # analysis can be performed on a single resource.
  # @!attribute [rw] analysis_type
  #   @return [::Array<::String>]
  class AnalysisCompleted
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The status of an SBOM generation.
  # @!attribute [rw] sbom_state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::SBOMStatus::SBOMState]
  #     The progress of the SBOM generation.
  # @!attribute [rw] error
  #   @return [::String]
  #     If there was an error generating an SBOM, this will indicate what that
  #     error was.
  class SBOMStatus
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the progress of the SBOM generation.
    module SBOMState
      # Default unknown state.
      SBOM_STATE_UNSPECIFIED = 0

      # SBOM scanning is pending.
      PENDING = 1

      # SBOM scanning has completed.
      COMPLETE = 2
    end
  end

  # The status of an vulnerability attestation generation.
  # @!attribute [rw] last_attempt_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The last time we attempted to generate an attestation.
  # @!attribute [rw] state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::VulnerabilityAttestation::VulnerabilityAttestationState]
  #     The success/failure state of the latest attestation attempt.
  # @!attribute [rw] error
  #   @return [::String]
  #     If failure, the error reason for why the attestation generation failed.
  class VulnerabilityAttestation
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the state of the attestation generation.
    module VulnerabilityAttestationState
      # Default unknown state.
      VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0

      # Attestation was successfully generated and stored.
      SUCCESS = 1

      # Attestation was unsuccessfully generated and stored.
      FAILURE = 2
    end
  end

  # Whether the resource is continuously analyzed.
  module ContinuousAnalysis
    # Unknown.
    CONTINUOUS_ANALYSIS_UNSPECIFIED = 0

    # The resource is continuously analyzed.
    ACTIVE = 1

    # The resource is ignored for continuous analysis.
    INACTIVE = 2
  end

  # Analysis status for a resource. Currently for initial analysis only (not
  # updated in continuous analysis).
  module AnalysisStatus
    # Unknown.
    ANALYSIS_STATUS_UNSPECIFIED = 0

    # Resource is known but no action has been taken yet.
    PENDING = 1

    # Resource is being analyzed.
    SCANNING = 2

    # Analysis has finished successfully.
    FINISHED_SUCCESS = 3

    # Analysis has completed.
    COMPLETE = 3

    # Analysis has finished unsuccessfully, the analysis itself is in a bad
    # state.
    FINISHED_FAILED = 4

    # The resource is known not to be supported.
    FINISHED_UNSUPPORTED = 5
  end
end

#vulnerability_attestation::Grafeas::V1::DiscoveryOccurrence::VulnerabilityAttestation

Returns The status of an vulnerability attestation generation.

Returns:



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
169
# File 'proto_docs/grafeas/v1/discovery.rb', line 67

class DiscoveryOccurrence
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Indicates which analysis completed successfully. Multiple types of
  # analysis can be performed on a single resource.
  # @!attribute [rw] analysis_type
  #   @return [::Array<::String>]
  class AnalysisCompleted
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The status of an SBOM generation.
  # @!attribute [rw] sbom_state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::SBOMStatus::SBOMState]
  #     The progress of the SBOM generation.
  # @!attribute [rw] error
  #   @return [::String]
  #     If there was an error generating an SBOM, this will indicate what that
  #     error was.
  class SBOMStatus
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the progress of the SBOM generation.
    module SBOMState
      # Default unknown state.
      SBOM_STATE_UNSPECIFIED = 0

      # SBOM scanning is pending.
      PENDING = 1

      # SBOM scanning has completed.
      COMPLETE = 2
    end
  end

  # The status of an vulnerability attestation generation.
  # @!attribute [rw] last_attempt_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The last time we attempted to generate an attestation.
  # @!attribute [rw] state
  #   @return [::Grafeas::V1::DiscoveryOccurrence::VulnerabilityAttestation::VulnerabilityAttestationState]
  #     The success/failure state of the latest attestation attempt.
  # @!attribute [rw] error
  #   @return [::String]
  #     If failure, the error reason for why the attestation generation failed.
  class VulnerabilityAttestation
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # An enum indicating the state of the attestation generation.
    module VulnerabilityAttestationState
      # Default unknown state.
      VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0

      # Attestation was successfully generated and stored.
      SUCCESS = 1

      # Attestation was unsuccessfully generated and stored.
      FAILURE = 2
    end
  end

  # Whether the resource is continuously analyzed.
  module ContinuousAnalysis
    # Unknown.
    CONTINUOUS_ANALYSIS_UNSPECIFIED = 0

    # The resource is continuously analyzed.
    ACTIVE = 1

    # The resource is ignored for continuous analysis.
    INACTIVE = 2
  end

  # Analysis status for a resource. Currently for initial analysis only (not
  # updated in continuous analysis).
  module AnalysisStatus
    # Unknown.
    ANALYSIS_STATUS_UNSPECIFIED = 0

    # Resource is known but no action has been taken yet.
    PENDING = 1

    # Resource is being analyzed.
    SCANNING = 2

    # Analysis has finished successfully.
    FINISHED_SUCCESS = 3

    # Analysis has completed.
    COMPLETE = 3

    # Analysis has finished unsuccessfully, the analysis itself is in a bad
    # state.
    FINISHED_FAILED = 4

    # The resource is known not to be supported.
    FINISHED_UNSUPPORTED = 5
  end
end