Documentation
¶
Index ¶
- type Application
- type ApplicationMenu
- type ApplicationMenuResults
- type ApplicationModule
- type ApplicationModuleResults
- type ApplicationResults
- type BaseResult
- type CssInclude
- type CssIncludeRelation
- type CssIncludeRelationResults
- type CssIncludeResults
- type DBTable
- type DBTableResults
- type ErrorDetail
- type JsInclude
- type JsIncludeRelation
- type JsIncludeRelationResults
- type JsIncludeResults
- type RequestResults
- type Role
- type RoleResults
- type ScriptInclude
- type ScriptIncludeResults
- type ServiceNowClient
- func (client *ServiceNowClient) CreateApplication(application *Application) (*Application, error)
- func (client *ServiceNowClient) CreateApplicationMenu(applicationMenu *ApplicationMenu) (*ApplicationMenu, error)
- func (client *ServiceNowClient) CreateApplicationModule(applicationModule *ApplicationModule) (*ApplicationModule, error)
- func (client *ServiceNowClient) CreateCssInclude(cssInclude *CssInclude) (*CssInclude, error)
- func (client *ServiceNowClient) CreateCssIncludeRelation(relation *CssIncludeRelation) (*CssIncludeRelation, error)
- func (client *ServiceNowClient) CreateDBTable(dbTable *DBTable) (*DBTable, error)
- func (client *ServiceNowClient) CreateJsInclude(jsInclude *JsInclude) (*JsInclude, error)
- func (client *ServiceNowClient) CreateJsIncludeRelation(relation *JsIncludeRelation) (*JsIncludeRelation, error)
- func (client *ServiceNowClient) CreateRole(role *Role) (*Role, error)
- func (client *ServiceNowClient) CreateScriptInclude(scriptInclude *ScriptInclude) (*ScriptInclude, error)
- func (client *ServiceNowClient) CreateUiMacro(uiMacro *UiMacro) (*UiMacro, error)
- func (client *ServiceNowClient) CreateUiPage(uiPage *UiPage) (*UiPage, error)
- func (client *ServiceNowClient) CreateWidget(widget *Widget) (*Widget, error)
- func (client *ServiceNowClient) CreateWidgetDependency(widgetDependency *WidgetDependency) (*WidgetDependency, error)
- func (client *ServiceNowClient) CreateWidgetDependencyRelation(relation *WidgetDependencyRelation) (*WidgetDependencyRelation, error)
- func (client *ServiceNowClient) DeleteApplication(id string) error
- func (client *ServiceNowClient) DeleteApplicationMenu(id string) error
- func (client *ServiceNowClient) DeleteApplicationModule(id string) error
- func (client *ServiceNowClient) DeleteCssInclude(id string) error
- func (client *ServiceNowClient) DeleteCssIncludeRelation(id string) error
- func (client *ServiceNowClient) DeleteDBTable(id string) error
- func (client *ServiceNowClient) DeleteJsInclude(id string) error
- func (client *ServiceNowClient) DeleteJsIncludeRelation(id string) error
- func (client *ServiceNowClient) DeleteRole(id string) error
- func (client *ServiceNowClient) DeleteScriptInclude(id string) error
- func (client *ServiceNowClient) DeleteUiMacro(id string) error
- func (client *ServiceNowClient) DeleteUiPage(id string) error
- func (client *ServiceNowClient) DeleteWidget(id string) error
- func (client *ServiceNowClient) DeleteWidgetDependency(id string) error
- func (client *ServiceNowClient) DeleteWidgetDependencyRelation(id string) error
- func (client *ServiceNowClient) GetApplication(id string) (*Application, error)
- func (client *ServiceNowClient) GetApplicationByName(name string) (*Application, error)
- func (client *ServiceNowClient) GetApplicationMenu(id string) (*ApplicationMenu, error)
- func (client *ServiceNowClient) GetApplicationModule(id string) (*ApplicationModule, error)
- func (client *ServiceNowClient) GetCssInclude(id string) (*CssInclude, error)
- func (client *ServiceNowClient) GetCssIncludeRelation(id string) (*CssIncludeRelation, error)
- func (client *ServiceNowClient) GetDBTable(id string) (*DBTable, error)
- func (client *ServiceNowClient) GetDBTableByName(name string) (*DBTable, error)
- func (client *ServiceNowClient) GetJsInclude(id string) (*JsInclude, error)
- func (client *ServiceNowClient) GetJsIncludeRelation(id string) (*JsIncludeRelation, error)
- func (client *ServiceNowClient) GetRole(id string) (*Role, error)
- func (client *ServiceNowClient) GetRoleByName(name string) (*Role, error)
- func (client *ServiceNowClient) GetScriptInclude(id string) (*ScriptInclude, error)
- func (client *ServiceNowClient) GetUiMacro(id string) (*UiMacro, error)
- func (client *ServiceNowClient) GetUiPage(id string) (*UiPage, error)
- func (client *ServiceNowClient) GetWidget(id string) (*Widget, error)
- func (client *ServiceNowClient) GetWidgetDependency(id string) (*WidgetDependency, error)
- func (client *ServiceNowClient) GetWidgetDependencyRelation(id string) (*WidgetDependencyRelation, error)
- func (client *ServiceNowClient) UpdateApplication(application *Application) error
- func (client *ServiceNowClient) UpdateApplicationMenu(applicationMenu *ApplicationMenu) error
- func (client *ServiceNowClient) UpdateApplicationModule(applicationModule *ApplicationModule) error
- func (client *ServiceNowClient) UpdateCssInclude(cssInclude *CssInclude) error
- func (client *ServiceNowClient) UpdateCssIncludeRelation(relation *CssIncludeRelation) error
- func (client *ServiceNowClient) UpdateDBTable(dbTable *DBTable) error
- func (client *ServiceNowClient) UpdateJsInclude(jsInclude *JsInclude) error
- func (client *ServiceNowClient) UpdateJsIncludeRelation(relation *JsIncludeRelation) error
- func (client *ServiceNowClient) UpdateRole(role *Role) error
- func (client *ServiceNowClient) UpdateScriptInclude(scriptInclude *ScriptInclude) error
- func (client *ServiceNowClient) UpdateUiMacro(uiMacro *UiMacro) error
- func (client *ServiceNowClient) UpdateUiPage(uiPage *UiPage) error
- func (client *ServiceNowClient) UpdateWidget(widget *Widget) error
- func (client *ServiceNowClient) UpdateWidgetDependency(widgetDependency *WidgetDependency) error
- func (client *ServiceNowClient) UpdateWidgetDependencyRelation(relation *WidgetDependencyRelation) error
- type UiMacro
- type UiMacroResults
- type UiPage
- type UiPageResults
- type Widget
- type WidgetDependency
- type WidgetDependencyRelation
- type WidgetDependencyRelationResults
- type WidgetDependencyResults
- type WidgetResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶ added in v0.4.0
type Application struct { BaseResult Name string `json:"name"` Scope string `json:"scope"` Version string `json:"version"` }
Application is the json response for an application in ServiceNow.
type ApplicationMenu ¶ added in v0.3.0
type ApplicationMenu struct { BaseResult Title string `json:"title"` Description string `json:"description"` Hint string `json:"hint"` DeviceType string `json:"device_type"` Order int `json:"order,string"` Roles string `json:"roles"` CategoryID string `json:"category"` Active bool `json:"active,string"` }
ApplicationMenu is the json response for an application menu in ServiceNow.
type ApplicationMenuResults ¶ added in v0.3.0
type ApplicationMenuResults struct {
Records []ApplicationMenu `json:"records"`
}
ApplicationMenuResults is the object returned by ServiceNow API when saving or retrieving records.
type ApplicationModule ¶ added in v0.3.0
type ApplicationModule struct { BaseResult Title string `json:"title"` MenuID string `json:"application"` Hint string `json:"hint"` Order int `json:"order,string"` Roles string `json:"roles"` Active bool `json:"active,string"` OverrideMenuRoles bool `json:"override_menu_roles,string"` LinkType string `json:"link_type"` Arguments string `json:"query"` WindowName string `json:"window_name"` TableName string `json:"name"` }
ApplicationModule is the json response for an application menu in ServiceNow.
type ApplicationModuleResults ¶ added in v0.3.0
type ApplicationModuleResults struct {
Records []ApplicationModule `json:"records"`
}
ApplicationModuleResults is the object returned by ServiceNow API when saving or retrieving records.
type ApplicationResults ¶ added in v0.4.0
type ApplicationResults struct {
Records []Application `json:"records"`
}
ApplicationResults is the object returned by ServiceNow API when saving or retrieving records.
type BaseResult ¶ added in v0.2.0
type BaseResult struct { Id string `json:"sys_id,omitempty"` ProtectionPolicy string `json:"sys_policy,omitempty"` Scope string `json:"sys_scope,omitempty"` Status string `json:"__status,omitempty"` Error *ErrorDetail `json:"__error,omitempty"` }
BaseResult is representing the default properties of all results.
type CssInclude ¶ added in v0.2.0
type CssInclude struct { BaseResult Source string `json:"source"` Name string `json:"name"` Url string `json:"url"` CssId string `json:"sp_css"` }
CssInclude represents the json response for a CSS Include in ServiceNow.
type CssIncludeRelation ¶ added in v0.2.0
type CssIncludeRelation struct { BaseResult CssIncludeId string `json:"sp_css_include"` DependencyId string `json:"sp_dependency"` Order int `json:"order,string"` }
CssIncludeRelation represents the json response for a CssIncludeRelation in ServiceNow.
type CssIncludeRelationResults ¶ added in v0.2.0
type CssIncludeRelationResults struct {
Records []CssIncludeRelation `json:"records"`
}
CssIncludeRelationResults is the object returned by ServiceNow API when saving or retrieving records.
type CssIncludeResults ¶ added in v0.2.0
type CssIncludeResults struct {
Records []CssInclude `json:"records"`
}
CssIncludeResults is the object returned by ServiceNow API when saving or retrieving records.
type DBTable ¶ added in v0.5.1
type DBTable struct { BaseResult Label string `json:"label"` UserRole string `json:"user_role"` Access string `json:"access"` ReadAccess bool `json:"read_access,string"` CreateAccess bool `json:"create_access,string"` AlterAccess bool `json:"alter_access,string"` DeleteAccess bool `json:"delete_access,string"` WebServiceAccess bool `json:"ws_access,string"` ConfigurationAccess bool `json:"configuration_access,string"` Extendable bool `json:"is_extendable,string"` LiveFeed bool `json:"live_feed_enabled,string"` CreateAccessControls bool `json:"create_access_controls,string"` CreateModule bool `json:"create_module,string"` CreateMobileModule bool `json:"create_mobile_module,string"` Name string `json:"name,omitempty"` }
DBTable is the json response for a Table in ServiceNow.
type DBTableResults ¶ added in v0.5.1
type DBTableResults struct {
Records []DBTable `json:"records"`
}
DBTableResults is the object returned by ServiceNow API when saving or retrieving records.
type ErrorDetail ¶
ErrorDetail is the details of an error. Should be included in the json if status is not success.
type JsInclude ¶ added in v0.2.0
type JsInclude struct { BaseResult Source string `json:"source"` DisplayName string `json:"display_name"` Url string `json:"url"` UiScriptId string `json:"sys_ui_script"` }
JsInclude represents the json response for a Js Include in ServiceNow.
type JsIncludeRelation ¶ added in v0.2.0
type JsIncludeRelation struct { BaseResult JsIncludeId string `json:"sp_js_include"` DependencyId string `json:"sp_dependency"` Order int `json:"order,string"` }
JsIncludeRelation represents the json response for a JsIncludeRelation in ServiceNow.
type JsIncludeRelationResults ¶ added in v0.2.0
type JsIncludeRelationResults struct {
Records []JsIncludeRelation `json:"records"`
}
JsIncludeRelationResults is the object returned by ServiceNow API when saving or retrieving records.
type JsIncludeResults ¶ added in v0.2.0
type JsIncludeResults struct {
Records []JsInclude `json:"records"`
}
JsIncludeResults is the object returned by ServiceNow API when saving or retrieving records.
type RequestResults ¶ added in v0.2.0
type RequestResults interface {
// contains filtered or unexported methods
}
RequestResults is the interface for request responses. Each resource should implement it's own validate method that will be called by the base client.
type Role ¶ added in v0.3.0
type Role struct { BaseResult Name string `json:"name,omitempty"` Description string `json:"description"` ElevatedPrivilege bool `json:"elevated_privilege,string"` Suffix string `json:"suffix"` AssignableBy string `json:"assignable_by"` }
Role is the json response for a role in ServiceNow.
type RoleResults ¶ added in v0.3.0
type RoleResults struct {
Records []Role `json:"records"`
}
RoleResults is the object returned by ServiceNow API when saving or retrieving records.
type ScriptInclude ¶ added in v0.4.0
type ScriptInclude struct { BaseResult Name string `json:"name"` ClientCallable bool `json:"client_callable,string"` Description string `json:"description"` Script string `json:"script"` Active bool `json:"active,string"` Access string `json:"access"` APIName string `json:"api_name,omitempty"` }
ScriptInclude is the json response for a Script Include in ServiceNow.
type ScriptIncludeResults ¶ added in v0.4.0
type ScriptIncludeResults struct {
Records []ScriptInclude `json:"records"`
}
ScriptIncludeResults is the object returned by ServiceNow API when saving or retrieving records.
type ServiceNowClient ¶
ServiceNowClient is the client used to interact with ServiceNow API.
func NewClient ¶
func NewClient(baseUrl string, username string, password string) *ServiceNowClient
NewClient is a factory method used to return a new ServiceNowClient.
func (*ServiceNowClient) CreateApplication ¶ added in v0.4.0
func (client *ServiceNowClient) CreateApplication(application *Application) (*Application, error)
CreateApplication creates a new Application in ServiceNow and returns the newly created application. The new application should include the GUID (sys_id) created in ServiceNow.
func (*ServiceNowClient) CreateApplicationMenu ¶ added in v0.3.0
func (client *ServiceNowClient) CreateApplicationMenu(applicationMenu *ApplicationMenu) (*ApplicationMenu, error)
CreateApplicationMenu creates a new ApplicationMenu in ServiceNow and returns the newly created applicationMenu. The new applicationMenu should include the GUID (sys_id) created in ServiceNow.
func (*ServiceNowClient) CreateApplicationModule ¶ added in v0.3.0
func (client *ServiceNowClient) CreateApplicationModule(applicationModule *ApplicationModule) (*ApplicationModule, error)
CreateApplicationModule creates a new ApplicationModule in ServiceNow and returns the newly created applicationModule. The new applicationModule should include the GUID (sys_id) created in ServiceNow.
func (*ServiceNowClient) CreateCssInclude ¶ added in v0.2.0
func (client *ServiceNowClient) CreateCssInclude(cssInclude *CssInclude) (*CssInclude, error)
CreateCssInclude creates a CSS Include in ServiceNow and returns the newly created CSS Include.
func (*ServiceNowClient) CreateCssIncludeRelation ¶ added in v0.2.0
func (client *ServiceNowClient) CreateCssIncludeRelation(relation *CssIncludeRelation) (*CssIncludeRelation, error)
CreateCssIncludeRelation creates a widget dependency relation in ServiceNow and returns the newly created relation.
func (*ServiceNowClient) CreateDBTable ¶ added in v0.5.1
func (client *ServiceNowClient) CreateDBTable(dbTable *DBTable) (*DBTable, error)
CreateDBTable creates a new DB Table in ServiceNow and returns the newly created Table. The new Table should include the GUID (sys_id) created in ServiceNow.
func (*ServiceNowClient) CreateJsInclude ¶ added in v0.2.0
func (client *ServiceNowClient) CreateJsInclude(jsInclude *JsInclude) (*JsInclude, error)
CreateJsInclude creates a Js Include in ServiceNow and returns the newly created JS Include.
func (*ServiceNowClient) CreateJsIncludeRelation ¶ added in v0.2.0
func (client *ServiceNowClient) CreateJsIncludeRelation(relation *JsIncludeRelation) (*JsIncludeRelation, error)
CreateJsIncludeRelation creates a widget dependency relation in ServiceNow and returns the newly created relation.
func (*ServiceNowClient) CreateRole ¶ added in v0.3.0
func (client *ServiceNowClient) CreateRole(role *Role) (*Role, error)
CreateRole creates a new Role in ServiceNow and returns the newly created role. The new role should include the GUID (sys_id) created in ServiceNow.
func (*ServiceNowClient) CreateScriptInclude ¶ added in v0.4.0
func (client *ServiceNowClient) CreateScriptInclude(scriptInclude *ScriptInclude) (*ScriptInclude, error)
CreateScriptInclude creates a new ScriptInclude in ServiceNow and returns the newly created scriptInclude. The new scriptInclude should include the GUID (sys_id) created in ServiceNow.
func (*ServiceNowClient) CreateUiMacro ¶ added in v0.4.0
func (client *ServiceNowClient) CreateUiMacro(uiMacro *UiMacro) (*UiMacro, error)
CreateUiMacro creates a new UiMacro in ServiceNow and returns the newly created UI Macro. The new UI Macro should include the GUID (sys_id) created in ServiceNow.
func (*ServiceNowClient) CreateUiPage ¶
func (client *ServiceNowClient) CreateUiPage(uiPage *UiPage) (*UiPage, error)
CreateUiPage creates a new UI Page in ServiceNow and returns the newly created page. The new page should include the GUID (sys_id) created in ServiceNow.
func (*ServiceNowClient) CreateWidget ¶ added in v0.2.0
func (client *ServiceNowClient) CreateWidget(widget *Widget) (*Widget, error)
CreateWidget creates a new Widget in ServiceNow and returns the newly created page. The new page should include the GUID (sys_id) created in ServiceNow.
func (*ServiceNowClient) CreateWidgetDependency ¶ added in v0.2.0
func (client *ServiceNowClient) CreateWidgetDependency(widgetDependency *WidgetDependency) (*WidgetDependency, error)
CreateWidgetDependency creates a Widget Dependency in ServiceNow and returns the newly created widget dependency.
func (*ServiceNowClient) CreateWidgetDependencyRelation ¶ added in v0.2.0
func (client *ServiceNowClient) CreateWidgetDependencyRelation(relation *WidgetDependencyRelation) (*WidgetDependencyRelation, error)
CreateWidgetDependencyRelation creates a widget dependency relation in ServiceNow and returns the newly created relation.
func (*ServiceNowClient) DeleteApplication ¶ added in v0.4.0
func (client *ServiceNowClient) DeleteApplication(id string) error
DeleteApplication deletes a Application in ServiceNow with the corresponding sys_id.
func (*ServiceNowClient) DeleteApplicationMenu ¶ added in v0.3.0
func (client *ServiceNowClient) DeleteApplicationMenu(id string) error
DeleteApplicationMenu deletes a ApplicationMenu in ServiceNow with the corresponding sys_id.
func (*ServiceNowClient) DeleteApplicationModule ¶ added in v0.3.0
func (client *ServiceNowClient) DeleteApplicationModule(id string) error
DeleteApplicationModule deletes a ApplicationModule in ServiceNow with the corresponding sys_id.
func (*ServiceNowClient) DeleteCssInclude ¶ added in v0.2.0
func (client *ServiceNowClient) DeleteCssInclude(id string) error
DeleteCssInclude deletes a CSS Include in ServiceNow with the corresponding sys_id.
func (*ServiceNowClient) DeleteCssIncludeRelation ¶ added in v0.2.0
func (client *ServiceNowClient) DeleteCssIncludeRelation(id string) error
DeleteCssIncludeRelation deletes a widget dependency relation in ServiceNow with the corresponding sys_id.
func (*ServiceNowClient) DeleteDBTable ¶ added in v0.5.1
func (client *ServiceNowClient) DeleteDBTable(id string) error
DeleteDBTable deletes a Table in ServiceNow with the corresponding sys_id.
func (*ServiceNowClient) DeleteJsInclude ¶ added in v0.2.0
func (client *ServiceNowClient) DeleteJsInclude(id string) error
DeleteJsInclude deletes a Js Include in ServiceNow with the corresponding sys_id.
func (*ServiceNowClient) DeleteJsIncludeRelation ¶ added in v0.2.0
func (client *ServiceNowClient) DeleteJsIncludeRelation(id string) error
DeleteJsIncludeRelation deletes a widget dependency relation in ServiceNow with the corresponding sys_id.
func (*ServiceNowClient) DeleteRole ¶ added in v0.3.0
func (client *ServiceNowClient) DeleteRole(id string) error
DeleteRole deletes a Role in ServiceNow with the corresponding sys_id.
func (*ServiceNowClient) DeleteScriptInclude ¶ added in v0.4.0
func (client *ServiceNowClient) DeleteScriptInclude(id string) error
DeleteScriptInclude deletes a ScriptInclude in ServiceNow with the corresponding sys_id.
func (*ServiceNowClient) DeleteUiMacro ¶ added in v0.4.0
func (client *ServiceNowClient) DeleteUiMacro(id string) error
DeleteUiMacro deletes a UI Macro in ServiceNow with the corresponding sys_id.
func (*ServiceNowClient) DeleteUiPage ¶
func (client *ServiceNowClient) DeleteUiPage(id string) error
DeleteUiPage deletes a UI Page in ServiceNow with the corresponding sys_id.
func (*ServiceNowClient) DeleteWidget ¶ added in v0.2.0
func (client *ServiceNowClient) DeleteWidget(id string) error
DeleteWidget deletes a Widget in ServiceNow with the corresponding sys_id.
func (*ServiceNowClient) DeleteWidgetDependency ¶ added in v0.2.0
func (client *ServiceNowClient) DeleteWidgetDependency(id string) error
DeleteWidgetDependency deletes a Widget Dependency in ServiceNow with the corresponding sys_id.
func (*ServiceNowClient) DeleteWidgetDependencyRelation ¶ added in v0.2.0
func (client *ServiceNowClient) DeleteWidgetDependencyRelation(id string) error
DeleteWidgetDependencyRelation deletes a widget dependency relation in ServiceNow with the corresponding sys_id.
func (*ServiceNowClient) GetApplication ¶ added in v0.4.0
func (client *ServiceNowClient) GetApplication(id string) (*Application, error)
GetApplication retrieves a specific Application in ServiceNow with it's sys_id.
func (*ServiceNowClient) GetApplicationByName ¶ added in v0.4.0
func (client *ServiceNowClient) GetApplicationByName(name string) (*Application, error)
GetApplicationByName retrieves a specific Application in ServiceNow with it's name attribute.
func (*ServiceNowClient) GetApplicationMenu ¶ added in v0.3.0
func (client *ServiceNowClient) GetApplicationMenu(id string) (*ApplicationMenu, error)
GetApplicationMenu retrieves a specific ApplicationMenu in ServiceNow with it's sys_id.
func (*ServiceNowClient) GetApplicationModule ¶ added in v0.3.0
func (client *ServiceNowClient) GetApplicationModule(id string) (*ApplicationModule, error)
GetApplicationModule retrieves a specific ApplicationModule in ServiceNow with it's sys_id.
func (*ServiceNowClient) GetCssInclude ¶ added in v0.2.0
func (client *ServiceNowClient) GetCssInclude(id string) (*CssInclude, error)
GetCssInclude retrieves a specific CSS Include in ServiceNow with it's sys_id.
func (*ServiceNowClient) GetCssIncludeRelation ¶ added in v0.2.0
func (client *ServiceNowClient) GetCssIncludeRelation(id string) (*CssIncludeRelation, error)
GetCssIncludeRelation retrieves a specific CssIncludeRelation in ServiceNow with it's sys_id.
func (*ServiceNowClient) GetDBTable ¶ added in v0.5.1
func (client *ServiceNowClient) GetDBTable(id string) (*DBTable, error)
GetDBTable retrieves a specific DBTable in ServiceNow with it's sys_id.
func (*ServiceNowClient) GetDBTableByName ¶ added in v0.5.1
func (client *ServiceNowClient) GetDBTableByName(name string) (*DBTable, error)
GetDBTableByName retrieves a specific DB Table in ServiceNow with it's name attribute.
func (*ServiceNowClient) GetJsInclude ¶ added in v0.2.0
func (client *ServiceNowClient) GetJsInclude(id string) (*JsInclude, error)
GetJsInclude retrieves a specific Js Include in ServiceNow with it's sys_id.
func (*ServiceNowClient) GetJsIncludeRelation ¶ added in v0.2.0
func (client *ServiceNowClient) GetJsIncludeRelation(id string) (*JsIncludeRelation, error)
GetJsIncludeRelation retrieves a specific JsIncludeRelation in ServiceNow with it's sys_id.
func (*ServiceNowClient) GetRole ¶ added in v0.3.0
func (client *ServiceNowClient) GetRole(id string) (*Role, error)
GetRole retrieves a specific Role in ServiceNow with it's sys_id.
func (*ServiceNowClient) GetRoleByName ¶ added in v0.3.0
func (client *ServiceNowClient) GetRoleByName(name string) (*Role, error)
GetRoleByName retrieves a specific Role in ServiceNow with it's name attribute.
func (*ServiceNowClient) GetScriptInclude ¶ added in v0.4.0
func (client *ServiceNowClient) GetScriptInclude(id string) (*ScriptInclude, error)
GetScriptInclude retrieves a specific ScriptInclude in ServiceNow with it's sys_id.
func (*ServiceNowClient) GetUiMacro ¶ added in v0.4.0
func (client *ServiceNowClient) GetUiMacro(id string) (*UiMacro, error)
GetUiMacro retrieves a specific UI Macro in ServiceNow with it's sys_id.
func (*ServiceNowClient) GetUiPage ¶
func (client *ServiceNowClient) GetUiPage(id string) (*UiPage, error)
GetUiPage retrieves a specific UI Page in ServiceNow with it's sys_id.
func (*ServiceNowClient) GetWidget ¶ added in v0.2.0
func (client *ServiceNowClient) GetWidget(id string) (*Widget, error)
GetWidget retrieves a specific Widget in ServiceNow with it's sys_id.
func (*ServiceNowClient) GetWidgetDependency ¶ added in v0.2.0
func (client *ServiceNowClient) GetWidgetDependency(id string) (*WidgetDependency, error)
GetWidgetDependency retrieves a specific Widget Dependency in ServiceNow with it's sys_id.
func (*ServiceNowClient) GetWidgetDependencyRelation ¶ added in v0.2.0
func (client *ServiceNowClient) GetWidgetDependencyRelation(id string) (*WidgetDependencyRelation, error)
GetWidgetDependencyRelation retrieves a specific widget dependency relation in ServiceNow with it's sys_id.
func (*ServiceNowClient) UpdateApplication ¶ added in v0.4.0
func (client *ServiceNowClient) UpdateApplication(application *Application) error
UpdateApplication updates a Application in ServiceNow.
func (*ServiceNowClient) UpdateApplicationMenu ¶ added in v0.3.0
func (client *ServiceNowClient) UpdateApplicationMenu(applicationMenu *ApplicationMenu) error
UpdateApplicationMenu updates a ApplicationMenu in ServiceNow.
func (*ServiceNowClient) UpdateApplicationModule ¶ added in v0.3.0
func (client *ServiceNowClient) UpdateApplicationModule(applicationModule *ApplicationModule) error
UpdateApplicationModule updates a ApplicationModule in ServiceNow.
func (*ServiceNowClient) UpdateCssInclude ¶ added in v0.2.0
func (client *ServiceNowClient) UpdateCssInclude(cssInclude *CssInclude) error
UpdateCssInclude updates a CSS Include in ServiceNow.
func (*ServiceNowClient) UpdateCssIncludeRelation ¶ added in v0.2.0
func (client *ServiceNowClient) UpdateCssIncludeRelation(relation *CssIncludeRelation) error
UpdateCssIncludeRelation updates a widget dependency relation in ServiceNow.
func (*ServiceNowClient) UpdateDBTable ¶ added in v0.5.1
func (client *ServiceNowClient) UpdateDBTable(dbTable *DBTable) error
UpdateDBTable updates a Table in ServiceNow.
func (*ServiceNowClient) UpdateJsInclude ¶ added in v0.2.0
func (client *ServiceNowClient) UpdateJsInclude(jsInclude *JsInclude) error
UpdateJsInclude updates a Js Include in ServiceNow.
func (*ServiceNowClient) UpdateJsIncludeRelation ¶ added in v0.2.0
func (client *ServiceNowClient) UpdateJsIncludeRelation(relation *JsIncludeRelation) error
UpdateJsIncludeRelation updates a widget dependency relation in ServiceNow.
func (*ServiceNowClient) UpdateRole ¶ added in v0.3.0
func (client *ServiceNowClient) UpdateRole(role *Role) error
UpdateRole updates a Role in ServiceNow.
func (*ServiceNowClient) UpdateScriptInclude ¶ added in v0.4.0
func (client *ServiceNowClient) UpdateScriptInclude(scriptInclude *ScriptInclude) error
UpdateScriptInclude updates a ScriptInclude in ServiceNow.
func (*ServiceNowClient) UpdateUiMacro ¶ added in v0.4.0
func (client *ServiceNowClient) UpdateUiMacro(uiMacro *UiMacro) error
UpdateUiMacro updates a UI Macro in ServiceNow.
func (*ServiceNowClient) UpdateUiPage ¶
func (client *ServiceNowClient) UpdateUiPage(uiPage *UiPage) error
UpdateUiPage updates a UI Page in ServiceNow.
func (*ServiceNowClient) UpdateWidget ¶ added in v0.2.0
func (client *ServiceNowClient) UpdateWidget(widget *Widget) error
UpdateWidget updates a Widget in ServiceNow.
func (*ServiceNowClient) UpdateWidgetDependency ¶ added in v0.2.0
func (client *ServiceNowClient) UpdateWidgetDependency(widgetDependency *WidgetDependency) error
UpdateWidgetDependency updates a Widget Dependency in ServiceNow.
func (*ServiceNowClient) UpdateWidgetDependencyRelation ¶ added in v0.2.0
func (client *ServiceNowClient) UpdateWidgetDependencyRelation(relation *WidgetDependencyRelation) error
UpdateWidgetDependencyRelation updates a widget dependency relation in ServiceNow.
type UiMacro ¶ added in v0.4.0
type UiMacro struct { BaseResult Name string `json:"name"` Description string `json:"description"` APIName string `json:"scoped_name"` Xml string `json:"xml"` Active bool `json:"active,string"` }
UiMacro is the json response for a UI Macro in ServiceNow.
type UiMacroResults ¶ added in v0.4.0
type UiMacroResults struct {
Records []UiMacro `json:"records"`
}
UiMacroResults is the object returned by ServiceNow API when saving or retrieving records.
type UiPage ¶
type UiPage struct { BaseResult Name string `json:"name"` Description string `json:"description"` Direct bool `json:"direct,string"` Html string `json:"html"` ProcessingScript string `json:"processing_script"` ClientScript string `json:"client_script"` Category string `json:"category"` Endpoint string `json:"endpoint,omitempty"` }
UiPage is the json response for a UI page in ServiceNow.
type UiPageResults ¶
type UiPageResults struct {
Records []UiPage `json:"records"`
}
UiPageResults is the object returned by ServiceNow API when saving or retrieving records.
type Widget ¶ added in v0.2.0
type Widget struct { BaseResult CustomId string `json:"id"` Name string `json:"name"` Template string `json:"template"` Css string `json:"css"` Public bool `json:"public,string"` Roles string `json:"roles"` Link string `json:"link"` Description string `json:"description"` ClientScript string `json:"client_script"` ServerScript string `json:"script"` DemoData string `json:"demo_data"` OptionSchema string `json:"option_schema"` HasPreview bool `json:"has_preview,string"` DataTable string `json:"data_table"` ControllerAs string `json:"controller_as"` }
Widget is the json response for a Widget in ServiceNow.
type WidgetDependency ¶ added in v0.2.0
type WidgetDependency struct { BaseResult Name string `json:"name"` Module string `json:"module"` PageLoad bool `json:"page_load,string"` }
WidgetDependency represents the json response for a Widget Dependency in ServiceNow.
type WidgetDependencyRelation ¶ added in v0.2.0
type WidgetDependencyRelation struct { BaseResult DependencyId string `json:"sp_dependency"` WidgetId string `json:"sp_widget"` }
WidgetDependencyRelation represents the json response for a widget dependency relation in ServiceNow.
type WidgetDependencyRelationResults ¶ added in v0.2.0
type WidgetDependencyRelationResults struct {
Records []WidgetDependencyRelation `json:"records"`
}
WidgetDependencyRelationResults is the object returned by ServiceNow API when saving or retrieving records.
type WidgetDependencyResults ¶ added in v0.2.0
type WidgetDependencyResults struct {
Records []WidgetDependency `json:"records"`
}
WidgetDependencyResults is the object returned by ServiceNow API when saving or retrieving records.
type WidgetResults ¶ added in v0.2.0
type WidgetResults struct {
Records []Widget `json:"records"`
}
WidgetResults is the object returned by ServiceNow API when saving or retrieving records.
Source Files
¶
- client_application.go
- client_application_menu.go
- client_application_module.go
- client_base.go
- client_css_include.go
- client_css_include_relation.go
- client_db_table.go
- client_js_include.go
- client_js_include_relation.go
- client_role.go
- client_script_include.go
- client_ui_macro.go
- client_ui_page.go
- client_widget.go
- client_widget_dependency.go
- client_widget_dependency_relation.go