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 InstanceOperation(_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. enqueuedTime: The time this operation was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. error: The error(s) encountered by this operation. Only set if the operation results in an error. exportContext: The context for export operation, if applicable. importContext: The context for import operation, if applicable. instance: Name of the database instance. kind: This is always sql#instanceOperation. operation: 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. startTime: The time this operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. state: The state of an operation. Valid values are PENDING, RUNNING, DONE, UNKNOWN. userEmailAddress: The email address of the user who initiated this operation. """ endTime = _message_types.DateTimeField(1) enqueuedTime = _message_types.DateTimeField(2) error = _messages.MessageField('OperationError', 3, repeated=True) exportContext = _messages.MessageField('ExportContext', 4) importContext = _messages.MessageField('ImportContext', 5) instance = _messages.StringField(6) kind = _messages.StringField(7, default=u'sql#instanceOperation') operation = _messages.StringField(8) operationType = _messages.StringField(9) startTime = _message_types.DateTimeField(10) state = _messages.StringField(11) userEmailAddress = _messages.StringField(12)
class IpMapping(_messages.Message): """Database instance IP Mapping. Fields: ipAddress: The IP address assigned. timeToRetire: The due time for this IP to be retired in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. This field is only available when the IP is scheduled to be retired. """ ipAddress = _messages.StringField(1) timeToRetire = _message_types.DateTimeField(2)
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: Time when the certificate was created. expirationTime: Time when the certificate expires. instance: Name of the database instance. kind: This is always sql#sslCert. 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') sha1Fingerprint = _messages.StringField(8)
class MyMessage(messages.Message): value = message_types.DateTimeField(1)
def _DecodeDateTimeField(unused_field, value): result = protojson.ProtoJson().decode_field(message_types.DateTimeField(1), value) return encoding.CodecResult(value=result, complete=True)