Class: Google::Cloud::WebSecurityScanner::V1::ScanRun
- Inherits:
-
Object
- Object
- Google::Cloud::WebSecurityScanner::V1::ScanRun
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/websecurityscanner/v1/scan_run.rb
Overview
A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12
Defined Under Namespace
Modules: ExecutionState, ResultState
Instance Attribute Summary collapse
-
#end_time ⇒ ::Google::Protobuf::Timestamp
Output only.
-
#error_trace ⇒ ::Google::Cloud::WebSecurityScanner::V1::ScanRunErrorTrace
Output only.
-
#execution_state ⇒ ::Google::Cloud::WebSecurityScanner::V1::ScanRun::ExecutionState
Output only.
-
#has_vulnerabilities ⇒ ::Boolean
Output only.
-
#name ⇒ ::String
Output only.
-
#progress_percent ⇒ ::Integer
Output only.
-
#result_state ⇒ ::Google::Cloud::WebSecurityScanner::V1::ScanRun::ResultState
Output only.
-
#start_time ⇒ ::Google::Protobuf::Timestamp
Output only.
-
#urls_crawled_count ⇒ ::Integer
Output only.
-
#urls_tested_count ⇒ ::Integer
Output only.
-
#warning_traces ⇒ ::Array<::Google::Cloud::WebSecurityScanner::V1::ScanRunWarningTrace>
Output only.
Instance Attribute Details
#end_time ⇒ ::Google::Protobuf::Timestamp
Returns Output only. The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
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 |
# File 'proto_docs/google/cloud/websecurityscanner/v1/scan_run.rb', line 71 class ScanRun include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Types of ScanRun execution state. module ExecutionState # Represents an invalid state caused by internal server error. This value # should never be returned. EXECUTION_STATE_UNSPECIFIED = 0 # The scan is waiting in the queue. QUEUED = 1 # The scan is in progress. SCANNING = 2 # The scan is either finished or stopped by user. FINISHED = 3 end # Types of ScanRun result state. module ResultState # Default value. This value is returned when the ScanRun is not yet # finished. RESULT_STATE_UNSPECIFIED = 0 # The scan finished without errors. SUCCESS = 1 # The scan finished with errors. ERROR = 2 # The scan was terminated by user. KILLED = 3 end end |
#error_trace ⇒ ::Google::Cloud::WebSecurityScanner::V1::ScanRunErrorTrace
Returns Output only. If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.
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 |
# File 'proto_docs/google/cloud/websecurityscanner/v1/scan_run.rb', line 71 class ScanRun include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Types of ScanRun execution state. module ExecutionState # Represents an invalid state caused by internal server error. This value # should never be returned. EXECUTION_STATE_UNSPECIFIED = 0 # The scan is waiting in the queue. QUEUED = 1 # The scan is in progress. SCANNING = 2 # The scan is either finished or stopped by user. FINISHED = 3 end # Types of ScanRun result state. module ResultState # Default value. This value is returned when the ScanRun is not yet # finished. RESULT_STATE_UNSPECIFIED = 0 # The scan finished without errors. SUCCESS = 1 # The scan finished with errors. ERROR = 2 # The scan was terminated by user. KILLED = 3 end end |
#execution_state ⇒ ::Google::Cloud::WebSecurityScanner::V1::ScanRun::ExecutionState
Returns Output only. The execution state of the ScanRun.
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 |
# File 'proto_docs/google/cloud/websecurityscanner/v1/scan_run.rb', line 71 class ScanRun include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Types of ScanRun execution state. module ExecutionState # Represents an invalid state caused by internal server error. This value # should never be returned. EXECUTION_STATE_UNSPECIFIED = 0 # The scan is waiting in the queue. QUEUED = 1 # The scan is in progress. SCANNING = 2 # The scan is either finished or stopped by user. FINISHED = 3 end # Types of ScanRun result state. module ResultState # Default value. This value is returned when the ScanRun is not yet # finished. RESULT_STATE_UNSPECIFIED = 0 # The scan finished without errors. SUCCESS = 1 # The scan finished with errors. ERROR = 2 # The scan was terminated by user. KILLED = 3 end end |
#has_vulnerabilities ⇒ ::Boolean
Returns Output only. Whether the scan run has found any vulnerabilities.
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 |
# File 'proto_docs/google/cloud/websecurityscanner/v1/scan_run.rb', line 71 class ScanRun include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Types of ScanRun execution state. module ExecutionState # Represents an invalid state caused by internal server error. This value # should never be returned. EXECUTION_STATE_UNSPECIFIED = 0 # The scan is waiting in the queue. QUEUED = 1 # The scan is in progress. SCANNING = 2 # The scan is either finished or stopped by user. FINISHED = 3 end # Types of ScanRun result state. module ResultState # Default value. This value is returned when the ScanRun is not yet # finished. RESULT_STATE_UNSPECIFIED = 0 # The scan finished without errors. SUCCESS = 1 # The scan finished with errors. ERROR = 2 # The scan was terminated by user. KILLED = 3 end end |
#name ⇒ ::String
Returns Output only. The resource name of the ScanRun. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. The ScanRun IDs are generated by the system.
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 |
# File 'proto_docs/google/cloud/websecurityscanner/v1/scan_run.rb', line 71 class ScanRun include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Types of ScanRun execution state. module ExecutionState # Represents an invalid state caused by internal server error. This value # should never be returned. EXECUTION_STATE_UNSPECIFIED = 0 # The scan is waiting in the queue. QUEUED = 1 # The scan is in progress. SCANNING = 2 # The scan is either finished or stopped by user. FINISHED = 3 end # Types of ScanRun result state. module ResultState # Default value. This value is returned when the ScanRun is not yet # finished. RESULT_STATE_UNSPECIFIED = 0 # The scan finished without errors. SUCCESS = 1 # The scan finished with errors. ERROR = 2 # The scan was terminated by user. KILLED = 3 end end |
#progress_percent ⇒ ::Integer
Returns Output only. The percentage of total completion ranging from 0 to 100. If the scan is in queue, the value is 0. If the scan is running, the value ranges from 0 to 100. If the scan is finished, the value is 100.
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 |
# File 'proto_docs/google/cloud/websecurityscanner/v1/scan_run.rb', line 71 class ScanRun include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Types of ScanRun execution state. module ExecutionState # Represents an invalid state caused by internal server error. This value # should never be returned. EXECUTION_STATE_UNSPECIFIED = 0 # The scan is waiting in the queue. QUEUED = 1 # The scan is in progress. SCANNING = 2 # The scan is either finished or stopped by user. FINISHED = 3 end # Types of ScanRun result state. module ResultState # Default value. This value is returned when the ScanRun is not yet # finished. RESULT_STATE_UNSPECIFIED = 0 # The scan finished without errors. SUCCESS = 1 # The scan finished with errors. ERROR = 2 # The scan was terminated by user. KILLED = 3 end end |
#result_state ⇒ ::Google::Cloud::WebSecurityScanner::V1::ScanRun::ResultState
Returns Output only. The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".
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 |
# File 'proto_docs/google/cloud/websecurityscanner/v1/scan_run.rb', line 71 class ScanRun include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Types of ScanRun execution state. module ExecutionState # Represents an invalid state caused by internal server error. This value # should never be returned. EXECUTION_STATE_UNSPECIFIED = 0 # The scan is waiting in the queue. QUEUED = 1 # The scan is in progress. SCANNING = 2 # The scan is either finished or stopped by user. FINISHED = 3 end # Types of ScanRun result state. module ResultState # Default value. This value is returned when the ScanRun is not yet # finished. RESULT_STATE_UNSPECIFIED = 0 # The scan finished without errors. SUCCESS = 1 # The scan finished with errors. ERROR = 2 # The scan was terminated by user. KILLED = 3 end end |
#start_time ⇒ ::Google::Protobuf::Timestamp
Returns Output only. The time at which the ScanRun started.
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 |
# File 'proto_docs/google/cloud/websecurityscanner/v1/scan_run.rb', line 71 class ScanRun include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Types of ScanRun execution state. module ExecutionState # Represents an invalid state caused by internal server error. This value # should never be returned. EXECUTION_STATE_UNSPECIFIED = 0 # The scan is waiting in the queue. QUEUED = 1 # The scan is in progress. SCANNING = 2 # The scan is either finished or stopped by user. FINISHED = 3 end # Types of ScanRun result state. module ResultState # Default value. This value is returned when the ScanRun is not yet # finished. RESULT_STATE_UNSPECIFIED = 0 # The scan finished without errors. SUCCESS = 1 # The scan finished with errors. ERROR = 2 # The scan was terminated by user. KILLED = 3 end end |
#urls_crawled_count ⇒ ::Integer
Returns Output only. The number of URLs crawled during this ScanRun. If the scan is in progress, the value represents the number of URLs crawled up to now.
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 |
# File 'proto_docs/google/cloud/websecurityscanner/v1/scan_run.rb', line 71 class ScanRun include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Types of ScanRun execution state. module ExecutionState # Represents an invalid state caused by internal server error. This value # should never be returned. EXECUTION_STATE_UNSPECIFIED = 0 # The scan is waiting in the queue. QUEUED = 1 # The scan is in progress. SCANNING = 2 # The scan is either finished or stopped by user. FINISHED = 3 end # Types of ScanRun result state. module ResultState # Default value. This value is returned when the ScanRun is not yet # finished. RESULT_STATE_UNSPECIFIED = 0 # The scan finished without errors. SUCCESS = 1 # The scan finished with errors. ERROR = 2 # The scan was terminated by user. KILLED = 3 end end |
#urls_tested_count ⇒ ::Integer
Returns Output only. The number of URLs tested during this ScanRun. If the scan is in progress, the value represents the number of URLs tested up to now. The number of URLs tested is usually larger than the number URLS crawled because typically a crawled URL is tested with multiple test payloads.
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 |
# File 'proto_docs/google/cloud/websecurityscanner/v1/scan_run.rb', line 71 class ScanRun include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Types of ScanRun execution state. module ExecutionState # Represents an invalid state caused by internal server error. This value # should never be returned. EXECUTION_STATE_UNSPECIFIED = 0 # The scan is waiting in the queue. QUEUED = 1 # The scan is in progress. SCANNING = 2 # The scan is either finished or stopped by user. FINISHED = 3 end # Types of ScanRun result state. module ResultState # Default value. This value is returned when the ScanRun is not yet # finished. RESULT_STATE_UNSPECIFIED = 0 # The scan finished without errors. SUCCESS = 1 # The scan finished with errors. ERROR = 2 # The scan was terminated by user. KILLED = 3 end end |
#warning_traces ⇒ ::Array<::Google::Cloud::WebSecurityScanner::V1::ScanRunWarningTrace>
Returns Output only. A list of warnings, if such are encountered during this scan run.
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 |
# File 'proto_docs/google/cloud/websecurityscanner/v1/scan_run.rb', line 71 class ScanRun include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Types of ScanRun execution state. module ExecutionState # Represents an invalid state caused by internal server error. This value # should never be returned. EXECUTION_STATE_UNSPECIFIED = 0 # The scan is waiting in the queue. QUEUED = 1 # The scan is in progress. SCANNING = 2 # The scan is either finished or stopped by user. FINISHED = 3 end # Types of ScanRun result state. module ResultState # Default value. This value is returned when the ScanRun is not yet # finished. RESULT_STATE_UNSPECIFIED = 0 # The scan finished without errors. SUCCESS = 1 # The scan finished with errors. ERROR = 2 # The scan was terminated by user. KILLED = 3 end end |