Module: Google::Cloud::Datastream::V1alpha1::Datastream::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/datastream/v1alpha1/datastream/paths.rb
Overview
Path helper methods for the Datastream API.
Instance Method Summary collapse
-
#connection_profile_path(project:, location:, connection_profile:) ⇒ ::String
Create a fully-qualified ConnectionProfile resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#private_connection_path(project:, location:, private_connection:) ⇒ ::String
Create a fully-qualified PrivateConnection resource string.
-
#route_path(project:, location:, private_connection:, route:) ⇒ ::String
Create a fully-qualified Route resource string.
-
#stream_path(project:, location:, stream:) ⇒ ::String
Create a fully-qualified Stream resource string.
Instance Method Details
#connection_profile_path(project:, location:, connection_profile:) ⇒ ::String
Create a fully-qualified ConnectionProfile resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/connectionProfiles/{connection_profile}
39 40 41 42 43 44 |
# File 'lib/google/cloud/datastream/v1alpha1/datastream/paths.rb', line 39 def connection_profile_path project:, location:, connection_profile: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/connectionProfiles/#{connection_profile}" 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/datastream/v1alpha1/datastream/paths.rb', line 57 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |
#private_connection_path(project:, location:, private_connection:) ⇒ ::String
Create a fully-qualified PrivateConnection resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/privateConnections/{private_connection}
75 76 77 78 79 80 |
# File 'lib/google/cloud/datastream/v1alpha1/datastream/paths.rb', line 75 def private_connection_path project:, location:, private_connection: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/privateConnections/#{private_connection}" end |
#route_path(project:, location:, private_connection:, route:) ⇒ ::String
Create a fully-qualified Route resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/privateConnections/{private_connection}/routes/{route}
95 96 97 98 99 100 101 |
# File 'lib/google/cloud/datastream/v1alpha1/datastream/paths.rb', line 95 def route_path project:, location:, private_connection:, route: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "private_connection cannot contain /" if private_connection.to_s.include? "/" "projects/#{project}/locations/#{location}/privateConnections/#{private_connection}/routes/#{route}" end |
#stream_path(project:, location:, stream:) ⇒ ::String
Create a fully-qualified Stream resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/streams/{stream}
115 116 117 118 119 120 |
# File 'lib/google/cloud/datastream/v1alpha1/datastream/paths.rb', line 115 def stream_path project:, location:, stream: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/streams/#{stream}" end |