![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | Send |
def | GetCurrentTimeUsec |
def | GetSdkVersion |
def | LogClientDeploy |
Public Attributes | |
rpcserver | |
request_params | |
usage_reporting | |
time_func | |
requests | |
Context for sending and recording server rpc requests. Attributes: rpcserver: The AbstractRpcServer to use for the upload. requests: A list of client_deployinfo.Request objects to include with the client deploy log. time_func: Function to get the current time in milliseconds. request_params: A dictionary with params to append to requests
def google.appengine.tools.appcfg._ClientDeployLoggingContext.__init__ | ( | self, | |
rpcserver, | |||
request_params, | |||
usage_reporting, | |||
time_func = time.time |
|||
) |
Creates a new AppVersionUpload. Args: rpcserver: The RPC server to use. Should be an instance of HttpRpcServer or TestRpcServer. request_params: A dictionary with params to append to requests usage_reporting: Whether to actually upload data. time_func: Function to return the current time in millisecods (default time.time).
def google.appengine.tools.appcfg._ClientDeployLoggingContext.GetCurrentTimeUsec | ( | self | ) |
Returns the current time in microseconds.
def google.appengine.tools.appcfg._ClientDeployLoggingContext.GetSdkVersion | ( | self | ) |
Returns the current SDK Version.
def google.appengine.tools.appcfg._ClientDeployLoggingContext.LogClientDeploy | ( | self, | |
runtime, | |||
start_time_usec, | |||
success | |||
) |
Logs a client deployment attempt. Args: runtime: The runtime for the app being deployed. start_time_usec: The start time of the deployment in micro seconds. success: True if the deployment succeeded otherwise False.
def google.appengine.tools.appcfg._ClientDeployLoggingContext.Send | ( | self, | |
url, | |||
payload = '' , |
|||
kwargs | |||
) |
Sends a request to the server, with common params.