Esempio n. 1
0
 def __init__(
     self,
     scriptId: Union['Runtime.ScriptId', dict],
     url: Union['str', dict],
     startLine: Union['int', dict],
     startColumn: Union['int', dict],
     endLine: Union['int', dict],
     endColumn: Union['int', dict],
     executionContextId: Union['Runtime.ExecutionContextId', dict],
     hash: Union['str', dict],
     executionContextAuxData: Union['dict', dict, None] = None,
     sourceMapURL: Union['str', dict, None] = None,
     hasSourceURL: Union['bool', dict, None] = None,
     isModule: Union['bool', dict, None] = None,
     length: Union['int', dict, None] = None,
     stackTrace: Union['Runtime.StackTrace', dict, None] = None,
 ):
     if isinstance(scriptId, dict):
         scriptId = Runtime.ScriptId(**scriptId)
     self.scriptId = scriptId
     if isinstance(url, dict):
         url = str(**url)
     self.url = url
     if isinstance(startLine, dict):
         startLine = int(**startLine)
     self.startLine = startLine
     if isinstance(startColumn, dict):
         startColumn = int(**startColumn)
     self.startColumn = startColumn
     if isinstance(endLine, dict):
         endLine = int(**endLine)
     self.endLine = endLine
     if isinstance(endColumn, dict):
         endColumn = int(**endColumn)
     self.endColumn = endColumn
     if isinstance(executionContextId, dict):
         executionContextId = Runtime.ExecutionContextId(
             **executionContextId)
     self.executionContextId = executionContextId
     if isinstance(hash, dict):
         hash = str(**hash)
     self.hash = hash
     if isinstance(executionContextAuxData, dict):
         executionContextAuxData = dict(**executionContextAuxData)
     self.executionContextAuxData = executionContextAuxData
     if isinstance(sourceMapURL, dict):
         sourceMapURL = str(**sourceMapURL)
     self.sourceMapURL = sourceMapURL
     if isinstance(hasSourceURL, dict):
         hasSourceURL = bool(**hasSourceURL)
     self.hasSourceURL = hasSourceURL
     if isinstance(isModule, dict):
         isModule = bool(**isModule)
     self.isModule = isModule
     if isinstance(length, dict):
         length = int(**length)
     self.length = length
     if isinstance(stackTrace, dict):
         stackTrace = Runtime.StackTrace(**stackTrace)
     self.stackTrace = stackTrace
Esempio n. 2
0
 def __init__(
     self,
     scriptId: Union['Runtime.ScriptId', dict],
     url: Union['str', dict],
     startLine: Union['int', dict],
     startColumn: Union['int', dict],
     endLine: Union['int', dict],
     endColumn: Union['int', dict],
     executionContextId: Union['Runtime.ExecutionContextId', dict],
     hash: Union['str', dict],
     executionContextAuxData: Union['dict', dict, None] = None,
     isLiveEdit: Union['bool', dict, None] = None,
     sourceMapURL: Union['str', dict, None] = None,
     hasSourceURL: Union['bool', dict, None] = None,
     isModule: Union['bool', dict, None] = None,
     length: Union['int', dict, None] = None,
     stackTrace: Union['Runtime.StackTrace', dict, None] = None,
     codeOffset: Union['int', dict, None] = None,
     scriptLanguage: Union['Debugger.ScriptLanguage', dict, None] = None,
     debugSymbols: Union['Debugger.DebugSymbols', dict, None] = None,
     embedderName: Union['str', dict, None] = None,
 ):
     if isinstance(scriptId, dict):
         scriptId = Runtime.ScriptId(**scriptId)
     self.scriptId = scriptId
     if isinstance(url, dict):
         url = str(**url)
     self.url = url
     if isinstance(startLine, dict):
         startLine = int(**startLine)
     self.startLine = startLine
     if isinstance(startColumn, dict):
         startColumn = int(**startColumn)
     self.startColumn = startColumn
     if isinstance(endLine, dict):
         endLine = int(**endLine)
     self.endLine = endLine
     if isinstance(endColumn, dict):
         endColumn = int(**endColumn)
     self.endColumn = endColumn
     if isinstance(executionContextId, dict):
         executionContextId = Runtime.ExecutionContextId(
             **executionContextId)
     self.executionContextId = executionContextId
     if isinstance(hash, dict):
         hash = str(**hash)
     self.hash = hash
     if isinstance(executionContextAuxData, dict):
         executionContextAuxData = dict(**executionContextAuxData)
     self.executionContextAuxData = executionContextAuxData
     if isinstance(isLiveEdit, dict):
         isLiveEdit = bool(**isLiveEdit)
     self.isLiveEdit = isLiveEdit
     if isinstance(sourceMapURL, dict):
         sourceMapURL = str(**sourceMapURL)
     self.sourceMapURL = sourceMapURL
     if isinstance(hasSourceURL, dict):
         hasSourceURL = bool(**hasSourceURL)
     self.hasSourceURL = hasSourceURL
     if isinstance(isModule, dict):
         isModule = bool(**isModule)
     self.isModule = isModule
     if isinstance(length, dict):
         length = int(**length)
     self.length = length
     if isinstance(stackTrace, dict):
         stackTrace = Runtime.StackTrace(**stackTrace)
     self.stackTrace = stackTrace
     if isinstance(codeOffset, dict):
         codeOffset = int(**codeOffset)
     self.codeOffset = codeOffset
     if isinstance(scriptLanguage, dict):
         scriptLanguage = Debugger.ScriptLanguage(**scriptLanguage)
     self.scriptLanguage = scriptLanguage
     if isinstance(debugSymbols, dict):
         debugSymbols = Debugger.DebugSymbols(**debugSymbols)
     self.debugSymbols = debugSymbols
     if isinstance(embedderName, dict):
         embedderName = str(**embedderName)
     self.embedderName = embedderName