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

Instance Attribute Summary collapse

Instance Attribute Details

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

Returns The status of discovery for the resource.

Returns:



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# File 'proto_docs/grafeas/v1/discovery.rb', line 52

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

  # 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 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.



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# File 'proto_docs/grafeas/v1/discovery.rb', line 52

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

  # 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 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:



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# File 'proto_docs/grafeas/v1/discovery.rb', line 52

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

  # 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 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.



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# File 'proto_docs/grafeas/v1/discovery.rb', line 52

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

  # 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 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:



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# File 'proto_docs/grafeas/v1/discovery.rb', line 52

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

  # 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 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