示例#1
0
class TaskResult(messages.Message):
  """Representation of the TaskResultSummary or TaskRunResult ndb model."""
  abandoned_ts = message_types.DateTimeField(1)
  bot_dimensions = messages.MessageField(StringListPair, 2, repeated=True)
  bot_id = messages.StringField(3)
  bot_version = messages.StringField(4)
  children_task_ids = messages.StringField(5, repeated=True)
  completed_ts = message_types.DateTimeField(6)
  cost_saved_usd = messages.FloatField(7)
  created_ts = message_types.DateTimeField(8)
  deduped_from = messages.StringField(9)
  duration = messages.FloatField(10)
  exit_code = messages.IntegerField(11)
  failure = messages.BooleanField(12)
  internal_failure = messages.BooleanField(13)
  modified_ts = message_types.DateTimeField(14)
  outputs_ref = messages.MessageField(FilesRef, 15)
  properties_hash = messages.StringField(16)
  server_versions = messages.StringField(17, repeated=True)
  started_ts = message_types.DateTimeField(18)
  state = messages.EnumField(StateField, 19)
  task_id = messages.StringField(20)
  try_number = messages.IntegerField(21)

  # Can be multiple values only in TaskResultSummary.
  costs_usd = messages.FloatField(22, repeated=True)
  # Only in TaskResultSummary.
  name = messages.StringField(23)
  # Only in TaskResultSummary.
  tags = messages.StringField(24, repeated=True)
  # Only in TaskResultSummary.
  user = messages.StringField(25)
class BackupRun(_messages.Message):
  """A database instance backup run resource.

  Fields:
    endTime: The time the backup operation completed in UTC timezone in RFC
      3339 format, for example 2012-11-15T16:19:00.094Z.
    enqueuedTime: The time the run was enqueued in UTC timezone in RFC 3339
      format, for example 2012-11-15T16:19:00.094Z.
    error: Information about why the backup operation failed. This is only
      present if the run has the FAILED status.
    id: A unique identifier for this backup run. Note that this is unique only
      within the scope of a particular Cloud SQL instance.
    instance: Name of the database instance.
    kind: This is always sql#backupRun.
    selfLink: The URI of this resource.
    startTime: The time the backup operation actually started in UTC timezone
      in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
    status: The status of this run.
    windowStartTime: The start time of the backup window during which this the
      backup was attempted in RFC 3339 format, for example
      2012-11-15T16:19:00.094Z.
  """

  endTime = _message_types.DateTimeField(1)
  enqueuedTime = _message_types.DateTimeField(2)
  error = _messages.MessageField('OperationError', 3)
  id = _messages.IntegerField(4)
  instance = _messages.StringField(5)
  kind = _messages.StringField(6, default=u'sql#backupRun')
  selfLink = _messages.StringField(7)
  startTime = _message_types.DateTimeField(8)
  status = _messages.StringField(9)
  windowStartTime = _message_types.DateTimeField(10)
示例#3
0
        class AllTypes(messages.Message):
            """Contains all field types."""
            class SimpleEnum(messages.Enum):
                """Simple enumeration type."""
                VAL1 = 1
                VAL2 = 2

            bool_value = messages.BooleanField(1,
                                               variant=messages.Variant.BOOL)
            bytes_value = messages.BytesField(2,
                                              variant=messages.Variant.BYTES)
            double_value = messages.FloatField(3,
                                               variant=messages.Variant.DOUBLE)
            enum_value = messages.EnumField(SimpleEnum, 4)
            float_value = messages.FloatField(5,
                                              variant=messages.Variant.FLOAT)
            int32_value = messages.IntegerField(6,
                                                variant=messages.Variant.INT32)
            int64_value = messages.IntegerField(7,
                                                variant=messages.Variant.INT64)
            string_value = messages.StringField(
                8, variant=messages.Variant.STRING)
            uint32_value = messages.IntegerField(
                9, variant=messages.Variant.UINT32)
            uint64_value = messages.IntegerField(
                10, variant=messages.Variant.UINT64)
            int_value = messages.IntegerField(11)  # Default variant is INT64.
            datetime_value = message_types.DateTimeField(12)
            repeated_datetime_value = message_types.DateTimeField(
                13, repeated=True)
示例#4
0
class SaleGetMessage(messages.Message):
    """ Get message for sale.
    """

    id = messages.IntegerField(1)

    customer = messages.MessageField(customer.CustomerGetMessage,
                                     2,
                                     required=True)

    product = messages.MessageField(product.ProductGetMessage,
                                    3,
                                    required=True)

    quantity = messages.IntegerField(4, required=True)

    sale_date = message_types.DateTimeField(5, required=True)

    amount = messages.FloatField(6)

    fare = messages.FloatField(7)

    net_total = messages.FloatField(8)

    track_code = messages.StringField(9)

    created_date = message_types.DateTimeField(10, required=True)
示例#5
0
class TestRun(messages.Message):
  """A test run."""
  id = messages.StringField(1)
  prev_test_run_id = messages.StringField(2)
  user = messages.StringField(3)
  labels = messages.StringField(4, repeated=True)
  test_plan = messages.MessageField(TestPlan, 5)
  test = messages.MessageField(Test, 6)
  test_run_config = messages.MessageField(TestRunConfig, 7)
  test_resources = messages.MessageField(TestResourceObj, 8, repeated=True)
  state = messages.EnumField(ndb_models.TestRunState, 9)
  state_info = messages.StringField(10)
  output_url = messages.StringField(11)
  prev_test_context = messages.MessageField(TestContextObj, 12)
  next_test_context = messages.MessageField(TestContextObj, 13)

  request_id = messages.StringField(14)
  sequence_id = messages.StringField(15)
  total_test_count = messages.IntegerField(16)
  failed_test_count = messages.IntegerField(17)
  failed_test_run_count = messages.IntegerField(18)

  create_time = message_types.DateTimeField(19)
  update_time = message_types.DateTimeField(20)

  before_device_actions = messages.MessageField(DeviceAction, 21, repeated=True)
  test_run_actions = messages.MessageField(TestRunAction, 22, repeated=True)

  test_devices = messages.MessageField(TestDeviceInfo, 23, repeated=True)
  test_package_info = messages.MessageField(TestPackageInfo, 24)
  log_entries = messages.MessageField(EventLogEntry, 25, repeated=True)
示例#6
0
class BackupRun(messages.Message):
    """A database instance backup run resource.

  Fields:
    backupConfiguration: Backup Configuration identifier.
    dueTime: The due time of this run in UTC timezone in RFC 3339 format, for
      example 2012-11-15T16:19:00.094Z.
    endTime: The time the backup operation completed in UTC timezone in RFC
      3339 format, for example 2012-11-15T16:19:00.094Z.
    enqueuedTime: The time the run was enqueued in UTC timezone in RFC 3339
      format, for example 2012-11-15T16:19:00.094Z.
    error: Information about why the backup operation failed. This is only
      present if the run has the FAILED status.
    instance: Name of the database instance.
    kind: This is always sql#backupRun.
    startTime: The time the backup operation actually started in UTC timezone
      in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
    status: The status of this run.
  """

    backupConfiguration = messages.StringField(1)
    dueTime = message_types.DateTimeField(2)
    endTime = message_types.DateTimeField(3)
    enqueuedTime = message_types.DateTimeField(4)
    error = messages.MessageField('OperationError', 5)
    instance = messages.StringField(6)
    kind = messages.StringField(7, default=u'sql#backupRun')
    startTime = message_types.DateTimeField(8)
    status = messages.StringField(9)
class SslCert(_messages.Message):
  """SslCerts Resource

  Fields:
    cert: PEM representation.
    certSerialNumber: Serial number, as extracted from the certificate.
    commonName: User supplied name. Constrained to [a-zA-Z.-_ ]+.
    createTime: The time when the certificate was created in RFC 3339 format,
      for example 2012-11-15T16:19:00.094Z
    expirationTime: The time when the certificate expires in RFC 3339 format,
      for example 2012-11-15T16:19:00.094Z.
    instance: Name of the database instance.
    kind: This is always sql#sslCert.
    selfLink: The URI of this resource.
    sha1Fingerprint: Sha1 Fingerprint.
  """

  cert = _messages.StringField(1)
  certSerialNumber = _messages.StringField(2)
  commonName = _messages.StringField(3)
  createTime = _message_types.DateTimeField(4)
  expirationTime = _message_types.DateTimeField(5)
  instance = _messages.StringField(6)
  kind = _messages.StringField(7, default=u'sql#sslCert')
  selfLink = _messages.StringField(8)
  sha1Fingerprint = _messages.StringField(9)
示例#8
0
class CommandAttemptMessage(messages.Message):
    """Information for a command attempt.

  Attributes:
    request_id: Request ID for the command this attempt belongs to.
    command_id: Command ID this attempt belongs to.
    attempt_id: ID of this attempt.
    task_id: Task ID for this attempt.
    state: State of the attempt. See common.CommandState.
    hostname: Host for the device that ran this attempt.
    device_serial: Serial for the device that ran this attempt.
    start_time: Time when the invocation started.
    end_time: Time when the invocation completed.
    status: Status from command event for attempt. Used to log exceptions.
    error: Error from command event for attempt. User friendly error message.
    subprocess_command_error: Error from a subprocess command if exists.
    summary: Summary from command event for attempt. Usually a sponge link.
    total_test_count: Number of total test case.
    failed_test_count: Number of failed test case.
    passed_test_count: Number of passed test case.
    create_time: Time of the first command event processed for this attempt.
    update_time: Time of the last command event processed for this attempt.
    error_reason: Error reason get from error. Informative message.
    error_type: Error type get from error. See common.CommandErrorType.
    failed_test_run_count: Number of failed test run.
    device_serials: a list of device serials that the command attempt uses.
    device_lost_detected: Number of devices lost.
    run_index: run index from [0, run_count). The (run_index, attempt_index)
      tuple should be unique for a given command.
    attempt_index: attempt index. The (run_index, attempt_index) tuple should be
      unique for a given command.
  """
    request_id = messages.StringField(1, required=True)
    command_id = messages.StringField(2, required=True)
    attempt_id = messages.StringField(3, required=True)
    task_id = messages.StringField(4, required=True)
    state = messages.EnumField(common.CommandState, 5)
    hostname = messages.StringField(6)
    # TODO Deprecated.
    device_serial = messages.StringField(7)
    start_time = message_types.DateTimeField(8)
    end_time = message_types.DateTimeField(9)
    status = messages.StringField(10)
    error = messages.StringField(11)
    subprocess_command_error = messages.StringField(12)
    summary = messages.StringField(13)
    total_test_count = messages.IntegerField(14)
    failed_test_count = messages.IntegerField(15)
    passed_test_count = messages.IntegerField(16)
    create_time = message_types.DateTimeField(17)
    update_time = message_types.DateTimeField(18)
    error_reason = messages.StringField(19)
    error_type = messages.EnumField(common.CommandErrorType, 20)
    failed_test_run_count = messages.IntegerField(21)
    device_serials = messages.StringField(22, repeated=True)
    device_lost_detected = messages.IntegerField(23)
    run_index = messages.IntegerField(24)
    attempt_index = messages.IntegerField(25)
示例#9
0
class CampaignMessage(messages.Message):
    num_orders = messages.IntegerField(1)
    raised = messages.FloatField(2)
    goal = messages.FloatField(3)
    percent_raised = messages.FloatField(4)
    start = message_types.DateTimeField(5)
    end = message_types.DateTimeField(6)
    ident = messages.StringField(7)
    average = messages.FloatField(8)
示例#10
0
class PurchaseGetMessage(messages.Message):
    """Compras de produtos no estoque. Mensagem a ser trafegada pelo endpoint.
    """

    # Id
    id = messages.IntegerField(1)

    # Fornecedor
    supplier = messages.MessageField(
        supplier.SupplierGetMessage, 2, required=True)

    # Produto
    product = messages.MessageField(
        product.ProductGetMessage, 3, required=True)

    # Qtidade
    quantity = messages.IntegerField(4, required=True)

    # Data Compra
    purchase_date = message_types.DateTimeField(5, required=True)

    # Data Pagamento
    payment_date = message_types.DateTimeField(6, required=True)

    # Valor Unidade
    cost = messages.FloatField(7)

    # Valor Total
    total_cost = messages.FloatField(8)

    # Cambio	USD
    exchange_dollar = messages.FloatField(9)

    # Valor Unidade USD
    cost_dollar = messages.FloatField(10)

    # Valor Total USD
    total_cost_dollar = messages.FloatField(11)

    # Frete
    shipping_cost = messages.FloatField(12)

    # Cód Rastreamento
    track_code = messages.StringField(13)

    # Descrição Fatura Cartão
    invoice = messages.StringField(14)

    # Data Recebimento
    received_date = message_types.DateTimeField(15)

    # Link da compra
    purchase_link = messages.StringField(16)

    # Data criação
    created_date = message_types.DateTimeField(17, required=True)
示例#11
0
class Task(messages.Message):
    extra_title = messages.StringField(1)
    time_added = message_types.DateTimeField(2)

    subject = messages.StringField(3, required=True)
    type = messages.StringField(4, required=True)
    due_date = message_types.DateTimeField(5)

    task_done = messages.BooleanField(6)
    urlid = messages.StringField(7)
示例#12
0
class TranslatorStat(messages.Message):
    lang = messages.StringField(1)
    num_words = messages.IntegerField(2)
    num_words_translated = messages.IntegerField(3)
    source_lang = messages.StringField(4)
    ident = messages.StringField(5)
    url = messages.StringField(6)
    uploaded = message_types.DateTimeField(7)
    service = messages.StringField(8)
    downloaded = message_types.DateTimeField(9)
示例#13
0
class Record(messages.Message):
    master = messages.StringField(1)
    builder = messages.StringField(2)
    buildnumber = messages.IntegerField(3)
    revision = messages.StringField(4)
    stepname = messages.StringField(5)
    step_start = message_types.DateTimeField(6)
    step_time = messages.FloatField(7)
    result = messages.IntegerField(8)
    generated = message_types.DateTimeField(9)
示例#14
0
class Ad(messages.Message):
    ad_title = messages.StringField(1, required=True)
    ad_owner = messages.StringField(2, required=True)
    ad_info = messages.StringField(3, required=True)
    ad_cost = messages.IntegerField(4, required=True)
    ad_city = messages.StringField(5, required=True)
    ad_ilce = messages.StringField(6, required=True)
    ad_created_date = message_types.DateTimeField(7)
    ad_start_date = message_types.DateTimeField(8, required=True)
    ad_finish_date = message_types.DateTimeField(9, required=True)
    ad_status = messages.BooleanField(10)
示例#15
0
class BotInfo(messages.Message):
  """Representation of the BotInfo ndb model."""
  bot_id = messages.StringField(1)
  dimensions = messages.MessageField(StringListPair, 2, repeated=True)
  external_ip = messages.StringField(3)
  first_seen_ts = message_types.DateTimeField(4)
  is_dead = messages.BooleanField(5)
  last_seen_ts = message_types.DateTimeField(6)
  quarantined = messages.BooleanField(7)
  task_id = messages.StringField(8)
  task_name = messages.StringField(9)
  version = messages.StringField(10)
示例#16
0
class UserMessage(messages.Message):
    email = messages.StringField(1)
    domain = messages.StringField(2)
    created = message_types.DateTimeField(3)
    created_by = messages.StringField(4)
    modified = message_types.DateTimeField(5)
    modified_by = messages.StringField(6)
    num_folders = messages.IntegerField(7)
    folders = messages.MessageField(FolderMessage, 8, repeated=True)
    folder_status = messages.EnumField(FolderStatus, 9)
    questions = messages.MessageField(QuestionMessage, 10, repeated=True)
    reason = messages.StringField(11)
示例#17
0
class CommentResponseMessageSlim(DjangoProtoRPCMessage):
    """ Message to represent either root or child comments """
    user = messages.MessageField(CommentUserResponse, 1)
    id = messages.IntegerField(
        2, variant=messages.Variant.INT32)
    text = messages.StringField(3)
    created = message_types.DateTimeField(4)
    project_id = messages.IntegerField(
        5, variant=messages.Variant.INT32)
    thread_id = messages.IntegerField(
        6, variant=messages.Variant.INT32)
    modified = message_types.DateTimeField(7)
示例#18
0
class GameForm(messages.Message):
    """GameForm for outbound game state information"""
    urlsafe_key = messages.StringField(1, required=True)
    user_name = messages.StringField(2, required=True)
    start_time = message_types.DateTimeField(3, required=True)
    end_time = message_types.DateTimeField(4)
    game_over = messages.BooleanField(5, required=True)
    steps = messages.IntegerField(6, required=True)
    pairs = messages.IntegerField(7)
    gameboard_values = messages.IntegerField(8, repeated=True)
    gameboard_fliped = messages.BooleanField(9, repeated=True)
    message = messages.StringField(10)
示例#19
0
文件: msg.py 项目: jerrayl/Eduto
class TaskMessage(messages.Message):
    title = messages.StringField(1)
    time_added = message_types.DateTimeField(2)
    usr = messages.StringField(3)
    subject = messages.StringField(4)
    due_date = message_types.DateTimeField(5)
    url_id = messages.StringField(6)
    cls = messages.StringField(7)
    description = messages.StringField(8)
    school = messages.StringField(9)
    done = messages.BooleanField(10)
    is_owner = messages.BooleanField(11)
示例#20
0
class Note(messages.Message):
    """Note for a cluster, host, or device."""
    id = messages.StringField(1)
    user = messages.StringField(2)
    timestamp = message_types.DateTimeField(3)
    message = messages.StringField(4)
    offline_reason = messages.StringField(5)
    recovery_action = messages.StringField(6)
    type = messages.EnumField(common.NoteType, 7)
    cluster_id = messages.StringField(8)
    hostname = messages.StringField(9)
    device_serial = messages.StringField(10)
    event_time = message_types.DateTimeField(11)
示例#21
0
class TSCRequesAddtMessage(messages.Message):
    """ Message required to ADD a new TSC
    Some fields are Optional
    Some are mandatory
    """
    lat = messages.FloatField(1)
    lng = messages.FloatField(2)
    tll = messages.IntegerField(3)
    encrypted = messages.BooleanField(4, default=False)
    anonymous = messages.BooleanField(5, default=True)
    content = messages.StringField(6, required=True)
    password = messages.StringField(7)
    openingDate = message_types.DateTimeField(8, required=True)
    closingDate = message_types.DateTimeField(9, required=True)
示例#22
0
class TSCSingleEntryResponseMessage(messages.Message):
    """ Just a single TSC entry
    """
    TSCid = messages.IntegerField(1)
    lat = messages.FloatField(2)
    lng = messages.FloatField(3)
    tll = messages.IntegerField(4)
    encrypted = messages.BooleanField(5)
    anonymous = messages.BooleanField(6)
    openingDate = message_types.DateTimeField(7)
    closingDate = message_types.DateTimeField(8)
    notifyDate = message_types.DateTimeField(9)
    notified = messages.BooleanField(10)
    user = messages.StringField(11)
示例#23
0
class Device(messages.Message):
    """Device ProtoRPC message.

  Attributes:
    serial_number: str, The serial number of the Chrome device.
    asset_tag: str, The asset tag of the Chrome device.
    enrolled: bool, Indicates the enrollment status of the device.
    device_model: int, Identifies the model name of the device.
    due_date: datetime, The date that device is due for return.
    last_know_healthy: datetime, The date to indicate the last known healthy
        status.
    shelf: ndb.key, The shelf key the device is placed on.
    assigned_user: str, The email of the user who is assigned to the device.
    assignment_date: datetime, The date the device was assigned to a user.
    current_ou: str, The current organizational unit the device belongs to.
    ou_change_date: datetime, The date the organizational unit was changed.
    locked: bool, Indicates whether or not the device is locked.
    lost: bool, Indicates whether or not the device is lost.
    mark_pending_return_date: datetime, The date a user marked device returned.
    chrome_device_id: str, A unique device ID.
    last_heartbeat: datetime, The date of the last time the device checked in.
    damaged: bool, Indicates the if the device is damaged.
    damaged_reason: str, A string denoting the reason for being reported as
        damaged.
    last_reminder: Reminder, Level, time, and count of the last reminder
        the device had.
    next_reminder: Reminder, Level, time, and count of the next reminder.
    page_token: str, A page token to query next page results.
    page_size: int, The number of results to query for and display.
    max_extend_date: datetime, Indicates maximum extend date a device can have.
    guest_enabled: bool, Indicates if guest mode has been already enabled.
    guest_permitted: bool, Indicates if guest mode has been allowed.
    return_date: datetime, The date of the default return date.
  """
    serial_number = messages.StringField(1)
    asset_tag = messages.StringField(2)
    enrolled = messages.BooleanField(3)
    device_model = messages.StringField(4)
    due_date = message_types.DateTimeField(5)
    last_known_healthy = message_types.DateTimeField(6)
    shelf = messages.MessageField(shelf_message.Shelf, 7)
    assigned_user = messages.StringField(8)
    assignment_date = message_types.DateTimeField(9)
    current_ou = messages.StringField(10)
    ou_changed_date = message_types.DateTimeField(11)
    locked = messages.BooleanField(12)
    lost = messages.BooleanField(13)
    mark_pending_return_date = message_types.DateTimeField(14)
    chrome_device_id = messages.StringField(15)
    last_heartbeat = message_types.DateTimeField(16)
    damaged = messages.BooleanField(17)
    damaged_reason = messages.StringField(18)
    last_reminder = messages.MessageField(Reminder, 19)
    next_reminder = messages.MessageField(Reminder, 20)
    page_token = messages.StringField(21)
    page_size = messages.IntegerField(22)
    max_extend_date = message_types.DateTimeField(23)
    guest_enabled = messages.BooleanField(24)
    guest_permitted = messages.BooleanField(25)
    return_date = message_types.DateTimeField(26)
class Operation(_messages.Message):
  """An Operations resource contains information about database instance
  operations such as create, delete, and restart. Operations resources are
  created in response to operations that were initiated; you never create them
  directly.

  Fields:
    endTime: The time this operation finished in UTC timezone in RFC 3339
      format, for example 2012-11-15T16:19:00.094Z.
    error: If errors occurred during processing of this operation, this field
      will be populated.
    exportContext: The context for export operation, if applicable.
    importContext: The context for import operation, if applicable.
    insertTime: The time this operation was enqueued in UTC timezone in RFC
      3339 format, for example 2012-11-15T16:19:00.094Z.
    kind: This is always sql#operation.
    name: An identifier that uniquely identifies the operation. You can use
      this identifier to retrieve the Operations resource that has information
      about the operation.
    operationType: The type of the operation. Valid values are CREATE, DELETE,
      UPDATE, RESTART, IMPORT, EXPORT, BACKUP_VOLUME, RESTORE_VOLUME,
      CREATE_USER, DELETE_USER, CREATE_DATABASE, DELETE_DATABASE .
    selfLink: The URI of this resource.
    startTime: The time this operation actually started in UTC timezone in RFC
      3339 format, for example 2012-11-15T16:19:00.094Z.
    status: The status of an operation. Valid values are PENDING, RUNNING,
      DONE, UNKNOWN.
    targetId: Name of the database instance related to this operation.
    targetLink: The URI of the instance related to the operation.
    targetProject: The project ID of the target instance related to this
      operation.
    user: The email address of the user who initiated this operation.
  """

  endTime = _message_types.DateTimeField(1)
  error = _messages.MessageField('OperationErrors', 2)
  exportContext = _messages.MessageField('ExportContext', 3)
  importContext = _messages.MessageField('ImportContext', 4)
  insertTime = _message_types.DateTimeField(5)
  kind = _messages.StringField(6, default=u'sql#operation')
  name = _messages.StringField(7)
  operationType = _messages.StringField(8)
  selfLink = _messages.StringField(9)
  startTime = _message_types.DateTimeField(10)
  status = _messages.StringField(11)
  targetId = _messages.StringField(12)
  targetLink = _messages.StringField(13)
  targetProject = _messages.StringField(14)
  user = _messages.StringField(15)
示例#25
0
class Component(messages.Message):
    """Component PB."""
    componentId = messages.IntegerField(1,
                                        required=True,
                                        variant=messages.Variant.INT32)
    projectName = messages.StringField(2, required=True)
    componentPath = messages.StringField(3, required=True)
    description = messages.StringField(4)
    admin = messages.StringField(5, repeated=True)
    cc = messages.StringField(6, repeated=True)
    deprecated = messages.BooleanField(7, default=False)
    created = message_types.DateTimeField(8)
    creator = messages.StringField(9)
    modified = message_types.DateTimeField(10)
    modifier = messages.StringField(11)
示例#26
0
class LoanResponse(messages.Message):
  """Chrome Loan information Response ProtoRPC message.

  Attributed:
    due_date: datetime, The due date for the device.
    max_extend_date: datetime, The max date a loan can be extended.
    given_name: str, The given name for the user.
    guest_permitted: bool, If guest mode can be enabled.
    guest_enabled: bool, If guest mode is enabled.
  """
  due_date = message_types.DateTimeField(1)
  max_extend_date = message_types.DateTimeField(2)
  given_name = messages.StringField(3)
  guest_permitted = messages.BooleanField(4)
  guest_enabled = messages.BooleanField(5)
示例#27
0
class TestRunSummary(messages.Message):
  """A test run."""
  id = messages.StringField(1)
  prev_test_run_id = messages.StringField(2)
  labels = messages.StringField(3, repeated=True)
  test_name = messages.StringField(4)
  device_specs = messages.StringField(5, repeated=True)
  state = messages.EnumField(ndb_models.TestRunState, 6)
  test_package_info = messages.MessageField(TestPackageInfo, 7)
  test_devices = messages.MessageField(TestDeviceInfo, 8, repeated=True)
  total_test_count = messages.IntegerField(9)
  failed_test_count = messages.IntegerField(10)
  failed_test_run_count = messages.IntegerField(11)
  create_time = message_types.DateTimeField(12)
  update_time = message_types.DateTimeField(13)
示例#28
0
class BotsCount(messages.Message):
    """Returns the count, as requested."""
    now = message_types.DateTimeField(1)
    count = messages.IntegerField(2)
    quarantined = messages.IntegerField(3)
    dead = messages.IntegerField(4)
    busy = messages.IntegerField(5)
示例#29
0
class CommitMessage(messages.Message):
    sha = messages.StringField(1)
    author = messages.MessageField(AuthorMessage, 2)
    date = message_types.DateTimeField(3)
    message = messages.StringField(4)
    has_unstaged_changes = messages.BooleanField(5)
    branch = messages.StringField(6)
示例#30
0
class NewGame(messages.Message):
	"""Message containing a brand new game to add to the system."""
	categories = messages.StringField(1, repeated=True)
	level = messages.IntegerField(2, required=False)
	time = message_types.DateTimeField(3, required=True)
	name = messages.StringField(4, required=False)
	players_needed = messages.IntegerField(5, required=True)
	lat = messages.FloatField(6, required=False)
	lon = messages.FloatField(7, required=False)

	token = messages.StringField(8, required=True)

	end_time = message_types.DateTimeField(9, required=False)
	location_name = messages.StringField(10, required=False)

	description = messages.StringField(11)