Module: Google::Cloud::NetworkConnectivity::V1::DataTransferService::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/cloud/network_connectivity/v1/data_transfer_service/paths.rb
Overview
Path helper methods for the DataTransferService API.
Instance Method Summary collapse
-
#destination_path(project:, location:, multicloud_data_transfer_config:, destination:) ⇒ ::String
Create a fully-qualified Destination resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#multicloud_data_transfer_config_path(project:, location:, multicloud_data_transfer_config:) ⇒ ::String
Create a fully-qualified MulticloudDataTransferConfig resource string.
-
#multicloud_data_transfer_supported_service_path(project:, location:, multicloud_data_transfer_supported_service:) ⇒ ::String
Create a fully-qualified MulticloudDataTransferSupportedService resource string.
Instance Method Details
#destination_path(project:, location:, multicloud_data_transfer_config:, destination:) ⇒ ::String
Create a fully-qualified Destination resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}
40 41 42 43 44 45 46 |
# File 'lib/google/cloud/network_connectivity/v1/data_transfer_service/paths.rb', line 40 def destination_path project:, location:, multicloud_data_transfer_config:, destination: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "multicloud_data_transfer_config cannot contain /" if multicloud_data_transfer_config.to_s.include? "/" "projects/#{project}/locations/#{location}/multicloudDataTransferConfigs/#{multicloud_data_transfer_config}/destinations/#{destination}" 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}
59 60 61 62 63 |
# File 'lib/google/cloud/network_connectivity/v1/data_transfer_service/paths.rb', line 59 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |
#multicloud_data_transfer_config_path(project:, location:, multicloud_data_transfer_config:) ⇒ ::String
Create a fully-qualified MulticloudDataTransferConfig resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}
77 78 79 80 81 82 |
# File 'lib/google/cloud/network_connectivity/v1/data_transfer_service/paths.rb', line 77 def multicloud_data_transfer_config_path project:, location:, multicloud_data_transfer_config: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/multicloudDataTransferConfigs/#{multicloud_data_transfer_config}" end |
#multicloud_data_transfer_supported_service_path(project:, location:, multicloud_data_transfer_supported_service:) ⇒ ::String
Create a fully-qualified MulticloudDataTransferSupportedService resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/multicloudDataTransferSupportedServices/{multicloud_data_transfer_supported_service}
96 97 98 99 100 101 |
# File 'lib/google/cloud/network_connectivity/v1/data_transfer_service/paths.rb', line 96 def multicloud_data_transfer_supported_service_path project:, location:, multicloud_data_transfer_supported_service: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/multicloudDataTransferSupportedServices/#{multicloud_data_transfer_supported_service}" end |