{"modulePath":"github.com/OctopusDeploy/go-octopusdeploy/v2","version":"v2.124.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package scriptmodules\n\n## Functions\n\n```go\nfunc Add(client newclient.Client, scriptModule *variables.ScriptModule) (*variables.ScriptModule, error)\n```\nAdd creates a new script module.\n\n```go\nfunc DeleteByID(client newclient.Client, spaceID string, id string) error\n```\nDeleteByID deletes the resource that matches the space ID and input ID.\n\n```go\nfunc Get(client newclient.Client, spaceID string, libraryVariablesQuery variables.LibraryVariablesQuery) (*resources.Resources[*variables.ScriptModule], error)\n```\nGet returns a collection of script modules based on the criteria defined by its input query parameter. If an error occurs, an empty collection is returned along with the associated error.\n\n```go\nfunc GetByID(client newclient.Client, spaceID string, id string) (*variables.ScriptModule, error)\n```\nGetByID returns the script module that matches the space ID and input ID. If one cannot be found, it returns nil and an error.\n\n```go\nfunc Update(client newclient.Client, scriptModule *variables.ScriptModule) (*variables.ScriptModule, error)\n```\nUpdate modifies a script module based on the one provided as input.\n\n","path":"github.com/OctopusDeploy/go-octopusdeploy/v2/pkg/scriptmodules","name":"scriptmodules","synopsis":"","isRedistributable":true}
