Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Libraries for Java 32.0.1-jre API. For more information, see documentation here:

This package includes supporting Inductive Automation's classes and interfaces.
For more information, see documentation here:
<https://sdk.inductiveautomation.com/javadoc/ignition83/8.3.7/index.html>.
<https://sdk.inductiveautomation.com/javadoc/ignition83/8.3.8/index.html>.

#### org.apache

Expand Down Expand Up @@ -133,13 +133,13 @@ This package includes supporting classes and interfaces from Mongo Java driver

This package includes supporting classes and interfaces from the Inductive
Automation's `org.json` package, see documentation here:
<https://sdk.inductiveautomation.com/javadoc/ignition83/8.3.7/org/json/package-summary.html>
<https://sdk.inductiveautomation.com/javadoc/ignition83/8.3.8/org/json/package-summary.html>

#### org.python

This package includes supporting Jython classes and interfaces. For more
information, see documentation here:
<https://www.javadoc.io/doc/org.python/jython-standalone/2.7.3/index.html>.
<https://www.javadoc.io/doc/org.python/jython-standalone/2.7.4/index.html>.

#### org.slf4j

Expand Down
88 changes: 88 additions & 0 deletions src/com/inductiveautomation/ignition/gateway/script/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
from __future__ import print_function

__all__ = ["PyResource"]

from typing import Any, List, Mapping, Optional, Union

from java.util import Date

from org.python.core import PyObject, PyTuple


class PyResource(PyObject):
def __init__(self, resource=None):
# type: (Any) -> None
super(PyResource, self).__init__()
print(resource)

def getCollection(self):
# type: () -> Union[str, unicode]
pass

def getDefiningCollection(self):
# type: () -> Union[str, unicode]
pass

def getName(self):
# type: () -> Optional[Union[str, unicode]]
pass

def getResourceType(self):
# type: () -> PyTuple
pass

def getDocumentation(self):
# type: () -> Optional[Union[str, unicode]]
pass

def getFiles(self):
# type: () -> Mapping[Union[str, unicode], Any]
pass

def getFile(self, key):
# type: (Union[str, unicode]) -> Any
pass

def getConfig(self):
# type: () -> Any
pass

def getBackupConfig(self):
# type: () -> Any
pass

def getFileNames(self):
# type: () -> List[Union[str, unicode]]
pass

def getAttributes(self):
# type: () -> PyObject
pass

def getAttribute(self, key):
# type: (Union[str, unicode]) -> PyObject
pass

def getId(self):
# type: () -> Optional[Union[str, unicode]]
pass

def getLastModificationActor(self):
# type: () -> Optional[Union[str, unicode]]
pass

def getLastModificationTime(self):
# type: () -> Optional[Date]
pass

def getResource(self):
# type: () -> Any
pass

def isEnabled(self):
# type: () -> bool
pass

def isSingleton(self):
# type: () -> bool
pass
Loading