module Google::Cloud::Datastream::V1alpha1::Datastream::Paths

Path helper methods for the Datastream API.

Public Instance Methods

connection_profile_path(project:, location:, connection_profile: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified ConnectionProfile resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/connectionProfiles/{connection_profile}`

@param project [String] @param location [String] @param connection_profile [String]

@return [::String]

# 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: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Location resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}`

@param project [String] @param location [String]

@return [::String]

# 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: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified PrivateConnection resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/privateConnections/{private_connection}`

@param project [String] @param location [String] @param private_connection [String]

@return [::String]

# 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: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Route resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/privateConnections/{private_connection}/routes/{route}`

@param project [String] @param location [String] @param private_connection [String] @param route [String]

@return [::String]

# 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: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Stream resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/streams/{stream}`

@param project [String] @param location [String] @param stream [String]

@return [::String]

# 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