// Code generated by goagen v1.1.0-dirty, command line:
// $ goagen
// --design=code.justin.tv/dta/necronomicon-user-api/design
// --out=$(GOPATH)/src/code.justin.tv/dta/necronomicon-user-api
// --version=v1.1.0-dirty
//
// API "Necronomicon User API": Application Resource Href Factories
//
// The content of this file is auto-generated, DO NOT MODIFY

package app

import (
	"fmt"
	"strings"
)

// DeploymentHref returns the resource href.
func DeploymentHref(deploymentID interface{}) string {
	paramdeploymentID := strings.TrimLeftFunc(fmt.Sprintf("%v", deploymentID), func(r rune) bool { return r == '/' })
	return fmt.Sprintf("/deployments/%v", paramdeploymentID)
}

// EnvironmentHref returns the resource href.
func EnvironmentHref(snapshotID, environment interface{}) string {
	paramsnapshotID := strings.TrimLeftFunc(fmt.Sprintf("%v", snapshotID), func(r rune) bool { return r == '/' })
	paramenvironment := strings.TrimLeftFunc(fmt.Sprintf("%v", environment), func(r rune) bool { return r == '/' })
	return fmt.Sprintf("/snapshots/%v/environments/%v", paramsnapshotID, paramenvironment)
}

// SnapshotHref returns the resource href.
func SnapshotHref(snapshotID interface{}) string {
	paramsnapshotID := strings.TrimLeftFunc(fmt.Sprintf("%v", snapshotID), func(r rune) bool { return r == '/' })
	return fmt.Sprintf("/snapshots/%v", paramsnapshotID)
}
