Module: Google::Cloud::Datastream::V1::Datastream::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/datastream/v1/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.
-
#network_attachment_path(project:, region:, network_attachment:) ⇒ ::String
Create a fully-qualified NetworkAttachment resource string.
-
#networks_path(project:, network:) ⇒ ::String
Create a fully-qualified Networks 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_object_path(project:, location:, stream:, object:) ⇒ ::String
Create a fully-qualified StreamObject 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/v1/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/v1/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 |
#network_attachment_path(project:, region:, network_attachment:) ⇒ ::String
Create a fully-qualified NetworkAttachment resource string.
The resource will be in the following format:
projects/{project}/regions/{region}/networkAttachments/{network_attachment}
75 76 77 78 79 80 |
# File 'lib/google/cloud/datastream/v1/datastream/paths.rb', line 75 def project:, region:, network_attachment: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/" "projects/#{project}/regions/#{region}/networkAttachments/#{}" end |
#networks_path(project:, network:) ⇒ ::String
Create a fully-qualified Networks resource string.
The resource will be in the following format:
projects/{project}/global/networks/{network}
93 94 95 96 97 |
# File 'lib/google/cloud/datastream/v1/datastream/paths.rb', line 93 def networks_path project:, network: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/global/networks/#{network}" 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}
111 112 113 114 115 116 |
# File 'lib/google/cloud/datastream/v1/datastream/paths.rb', line 111 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}
131 132 133 134 135 136 137 |
# File 'lib/google/cloud/datastream/v1/datastream/paths.rb', line 131 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_object_path(project:, location:, stream:, object:) ⇒ ::String
Create a fully-qualified StreamObject resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/streams/{stream}/objects/{object}
171 172 173 174 175 176 177 |
# File 'lib/google/cloud/datastream/v1/datastream/paths.rb', line 171 def stream_object_path project:, location:, stream:, object: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "stream cannot contain /" if stream.to_s.include? "/" "projects/#{project}/locations/#{location}/streams/#{stream}/objects/#{object}" 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}
151 152 153 154 155 156 |
# File 'lib/google/cloud/datastream/v1/datastream/paths.rb', line 151 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 |