Bases: exceptions.ValueError
User input did not follow API restrictions.
Bases: object
Restrictions on the claim parameters upon creation.
Parameters: |
|
---|---|
Raises: | ValidationFailed if either TTL or grace is out of range, or the expected number of messages exceed the limit. |
Restrictions on the claim TTL.
Parameters: | metadata – The claim metadata |
---|---|
Raises: | ValidationFailed if the TTL is out of range |
Restrictions on each message.
Restrictions involving deletion of messages.
Parameters: |
|
---|---|
Raises: | ValidationFailed if, pop AND id params are present together neither pop or id params are present message count to be popped > maximum allowed |
Restrictions on message post length.
Parameters: | content_length – Queue request’s length. |
---|---|
Raises: | ValidationFailed if the metadata is oversize. |
Restrictions involving a list of messages.
Parameters: |
|
---|---|
Raises: | ValidationFailed if the limit is exceeded |
Restrictions on a list of messages.
Parameters: | messages – A list of messages |
---|---|
Raises: | ValidationFailed if any message has a out-of-range TTL. |
Restrictions on a project id & queue name pair.
Parameters: |
|
---|---|
Raises: | ValidationFailed if the name is longer than 64 characters or contains anything other than ASCII digits and letters, underscores, and dashes. Also raises if project is not None but longer than 256 characters. |
Restrictions involving a list of queues.
Parameters: |
|
---|---|
Raises: | ValidationFailed if the limit is exceeded |
Restrictions on queue’s length.
Parameters: | content_length – Queue request’s length. |
---|---|
Raises: | ValidationFailed if the metadata is oversize. |
Checking if the reserved attributes of the queue are valid.
Parameters: | queue_metadata – Queue’s metadata. |
---|---|
Raises: | ValidationFailed if any reserved attribute is invalid. |
Restrictions involving a list of subscriptions.
Parameters: |
|
---|---|
Raises: | ValidationFailed if the limit is exceeded |
Restrictions on an update of subscription.
Parameters: | subscription – dict of subscription |
---|---|
Raises: | ValidationFailed if the subscription is invalid. |
Restrictions on a creation of subscription.
Parameters: | subscription – dict of subscription |
---|---|
Raises: | ValidationFailed if the subscription is invalid. |