Module: Google::Cloud::NetworkSecurity::V1beta1::DnsThreatDetectorService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/network_security/v1beta1/dns_threat_detector_service/paths.rb
Overview
Path helper methods for the DnsThreatDetectorService API.
Instance Method Summary collapse
-
#dns_threat_detector_path(project:, location:, dns_threat_detector:) ⇒ ::String
Create a fully-qualified DnsThreatDetector resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#network_path(project:, network:) ⇒ ::String
Create a fully-qualified Network resource string.
Instance Method Details
#dns_threat_detector_path(project:, location:, dns_threat_detector:) ⇒ ::String
Create a fully-qualified DnsThreatDetector resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/dnsThreatDetectors/{dns_threat_detector}
39 40 41 42 43 44 |
# File 'lib/google/cloud/network_security/v1beta1/dns_threat_detector_service/paths.rb', line 39 def dns_threat_detector_path project:, location:, dns_threat_detector: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/dnsThreatDetectors/#{dns_threat_detector}" end |
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
The resource will be in the following format:
projects/{project}/locations/{location}
57 58 59 60 61 |
# File 'lib/google/cloud/network_security/v1beta1/dns_threat_detector_service/paths.rb', line 57 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |
#network_path(project:, network:) ⇒ ::String
Create a fully-qualified Network resource string.
The resource will be in the following format:
projects/{project}/global/networks/{network}
74 75 76 77 78 |
# File 'lib/google/cloud/network_security/v1beta1/dns_threat_detector_service/paths.rb', line 74 def network_path project:, network: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/global/networks/#{network}" end |