API errors.
ApiExecutionError
(resource_name, e, resource_key=None, resource_value=None)[source]¶Bases: google.cloud.forseti.common.gcp_api.errors.Error
Error for API executions.
CUSTOM_ERROR_MESSAGE
= 'GCP API Error: unable to get {0} from GCP:\n{1}\n{2}'¶ApiInitializationError
[source]¶Bases: google.cloud.forseti.common.gcp_api.errors.Error
Error initializing the API.
ApiNotEnabledError
(error_url, e)[source]¶Bases: google.cloud.forseti.common.gcp_api.errors.Error
The requested API is not enabled on this project.
CUSTOM_ERROR_MESSAGE
= 'GCP API Error; API not enabled, turn it on at {0}:\n{1}'¶InvalidBucketPathError
[source]¶Bases: google.cloud.forseti.common.gcp_api.errors.Error
Invalid GCS bucket path.
OperationTimeoutError
(project_id, operation)[source]¶Bases: google.cloud.forseti.common.gcp_api.errors.Error
Operation timed out before completing.
CUSTOM_ERROR_MESSAGE
= 'GCP operation on project {0} timed out before completing, Operation name: {1}'¶PaginationNotSupportedError
[source]¶Bases: google.cloud.forseti.common.gcp_api.errors.Error
Paged Query was issued against an API that does not support paging.
UnsupportedApiError
[source]¶Bases: google.cloud.forseti.common.gcp_api.errors.Error
Error for unsupported API.
UnsupportedApiVersionError
[source]¶Bases: google.cloud.forseti.common.gcp_api.errors.Error
Error for unsupported API version.