module Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Paths
Path helper methods for the WebSecurityScanner
API.
Public Instance Methods
Create a fully-qualified Finding resource string.
The resource will be in the following format:
`projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding}`
@param project [String] @param scan_config [String] @param scan_run [String] @param finding [String]
@return [::String]
# File lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/paths.rb, line 40 def finding_path project:, scan_config:, scan_run:, finding: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "scan_config cannot contain /" if scan_config.to_s.include? "/" raise ::ArgumentError, "scan_run cannot contain /" if scan_run.to_s.include? "/" "projects/#{project}/scanConfigs/#{scan_config}/scanRuns/#{scan_run}/findings/#{finding}" end
Create a fully-qualified Project resource string.
The resource will be in the following format:
`projects/{project}`
@param project [String]
@return [::String]
# File lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/paths.rb, line 58 def project_path project: "projects/#{project}" end
Create a fully-qualified ScanConfig
resource string.
The resource will be in the following format:
`projects/{project}/scanConfigs/{scan_config}`
@param project [String] @param scan_config [String]
@return [::String]
# File lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/paths.rb, line 73 def scan_config_path project:, scan_config: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/scanConfigs/#{scan_config}" end
Create a fully-qualified ScanRun
resource string.
The resource will be in the following format:
`projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}`
@param project [String] @param scan_config [String] @param scan_run [String]
@return [::String]
# File lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/paths.rb, line 91 def scan_run_path project:, scan_config:, scan_run: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "scan_config cannot contain /" if scan_config.to_s.include? "/" "projects/#{project}/scanConfigs/#{scan_config}/scanRuns/#{scan_run}" end