本文整理汇总了Python中dctmpy.obj.typedobject.TypedObject.add方法的典型用法代码示例。如果您正苦于以下问题:Python TypedObject.add方法的具体用法?Python TypedObject.add怎么用?Python TypedObject.add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dctmpy.obj.typedobject.TypedObject
的用法示例。
在下文中一共展示了TypedObject.add方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: authenticate
# 需要导入模块: from dctmpy.obj.typedobject import TypedObject [as 别名]
# 或者: from dctmpy.obj.typedobject.TypedObject import add [as 别名]
def authenticate(session, username, password):
obj = TypedObject(session=session)
obj.add(AttrValue(name="CONNECT_POOLING", type=BOOL, values=[False]))
obj.add(AttrValue(name="USER_PASSWORD", type=STRING, values=[password]))
obj.add(AttrValue(name="AUTHENTICATION_ONLY", type=BOOL, values=[False]))
obj.add(AttrValue(name="CHECK_ONLY", type=BOOL, values=[False]))
obj.add(AttrValue(name="LOGON_NAME", type=STRING, values=[username]))
return obj
示例2: query
# 需要导入模块: from dctmpy.obj.typedobject import TypedObject [as 别名]
# 或者: from dctmpy.obj.typedobject.TypedObject import add [as 别名]
def query(session, query, forUpdate, batchHint, bofDql):
obj = TypedObject(session=session)
obj.add(AttrValue(name="QUERY", type=STRING, values=[query]))
obj.add(AttrValue(name="FOR_UPDATE", type=BOOL, values=[forUpdate]))
obj.add(AttrValue(name="BATCH_HINT", type=INT, values=[batchHint]))
obj.add(AttrValue(name="BOF_DQL", type=BOOL, values=[bofDql]))
return obj
示例3: indexAgentStatus
# 需要导入模块: from dctmpy.obj.typedobject import TypedObject [as 别名]
# 或者: from dctmpy.obj.typedobject.TypedObject import add [as 别名]
def indexAgentStatus(session, indexname, agentname):
obj = TypedObject(session=session)
obj.add(AttrValue(name="NAME", type=STRING, values=[indexname]))
obj.add(AttrValue(name="AGENT_INSTANCE_NAME", type=STRING, values=[agentname]))
obj.add(AttrValue(name="ACTION", type=STRING, values=["status"]))
return obj
示例4: folderByPath
# 需要导入模块: from dctmpy.obj.typedobject import TypedObject [as 别名]
# 或者: from dctmpy.obj.typedobject.TypedObject import add [as 别名]
def folderByPath(session, path):
obj = TypedObject(session=session)
obj.add(AttrValue(name="_FOLDER_PATH_", type=STRING, values=[path]))
return obj
示例5: sqlQuery
# 需要导入模块: from dctmpy.obj.typedobject import TypedObject [as 别名]
# 或者: from dctmpy.obj.typedobject.TypedObject import add [as 别名]
def sqlQuery(session, query, batchHint):
obj = TypedObject(session=session)
obj.add(AttrValue(name="QUERY", type=STRING, values=[query]))
obj.add(AttrValue(name="BATCH_HINT", type=INT, values=[batchHint]))
return obj
示例6: getErrors
# 需要导入模块: from dctmpy.obj.typedobject import TypedObject [as 别名]
# 或者: from dctmpy.obj.typedobject.TypedObject import add [as 别名]
def getErrors(session):
obj = TypedObject(session=session)
obj.add(AttrValue(name="OBJECT_TYPE", type=STRING, values=["dmError"]))
return obj
示例7: fetchType
# 需要导入模块: from dctmpy.obj.typedobject import TypedObject [as 别名]
# 或者: from dctmpy.obj.typedobject.TypedObject import add [as 别名]
def fetchType(session, typename, vstamp):
obj = TypedObject(session=session)
obj.add(AttrValue(name="TYPE_NAME", type=STRING, values=[typename]))
obj.add(AttrValue(name="CACHE_VSTAMP", type=INT, values=[vstamp]))
return obj
示例8: docbaseConfig
# 需要导入模块: from dctmpy.obj.typedobject import TypedObject [as 别名]
# 或者: from dctmpy.obj.typedobject.TypedObject import add [as 别名]
def docbaseConfig(session):
obj = TypedObject(session=session)
obj.add(AttrValue(name="OBJECT_TYPE", type=STRING, values=["dm_docbase_config"]))
obj.add(AttrValue(name="FOR_REVERT", type=BOOL, values=[False]))
obj.add(AttrValue(name="CACHE_VSTAMP", type=INT, values=[0]))
return obj
示例9: entryPoints
# 需要导入模块: from dctmpy.obj.typedobject import TypedObject [as 别名]
# 或者: from dctmpy.obj.typedobject.TypedObject import add [as 别名]
def entryPoints(session):
obj = TypedObject(session=session)
obj.add(AttrValue(name="LANGUAGE", type=INT, values=[getLocaleId()]))
obj.add(AttrValue(name="CHARACTER_SET", type=INT, values=[getCharsetId()]))
obj.add(AttrValue(name="PLATFORM_ENUM", type=INT, values=[getPlatformId()]))
obj.add(AttrValue(name="PLATFORM_VERSION_IMAGE", type=STRING, values=["python"]))
obj.add(AttrValue(name="UTC_OFFSET", type=INT, values=[getOffsetInSeconds()]))
obj.add(AttrValue(name="SDF_AN_custom_date_order", type=INT, values=[0]))
obj.add(AttrValue(name="SDF_AN_custom_scan_fields", type=INT, values=[0]))
obj.add(AttrValue(name="SDF_AN_date_separator", type=STRING, values=["/"]))
obj.add(AttrValue(name="SDF_AN_date_order", type=INT, values=[2]))
obj.add(AttrValue(name="SDF_AN_day_leading_zero", type=BOOL, values=[True]))
obj.add(AttrValue(name="SDF_AN_month_leading_zero", type=BOOL, values=[True]))
obj.add(AttrValue(name="SDF_AN_century", type=BOOL, values=[True]))
obj.add(AttrValue(name="SDF_AN_time_separator", type=STRING, values=[":"]))
obj.add(AttrValue(name="SDF_AN_hours_24", type=BOOL, values=[True]))
obj.add(AttrValue(name="SDF_AN_hour_leading_zero", type=BOOL, values=[True]))
obj.add(AttrValue(name="SDF_AN_noon_is_zero", type=BOOL, values=[False]))
obj.add(AttrValue(name="SDF_AN_am", type=STRING, values=["AM"]))
obj.add(AttrValue(name="SDF_AN_pm", type=STRING, values=["PM"]))
obj.add(AttrValue(name="PLATFORM_EXTRA", type=INT, repeating=True, values=[0, 0, 0, 0]))
obj.add(AttrValue(name="APPLICATION_CODE", type=STRING, values=[""]))
return obj