openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 3.43 MB
JSON
{"openapi":"3.0.0","servers":[{"url":"https://contentwarehouse.googleapis.com/"}],"info":{"contact":{"name":"Google","url":"https://google.com","x-twitter":"youtube"},"description":"","license":{"name":"Creative Commons Attribution 3.0","url":"http://creativecommons.org/licenses/by/3.0/"},"termsOfService":"https://developers.google.com/terms/","title":"Document AI Warehouse API","version":"v1","x-apisguru-categories":["analytics","media"],"x-logo":{"url":"https://upload.wikimedia.org/wikipedia/commons/e/e1/YouTube_play_buttom_icon_%282013-2017%29.svg"},"x-origin":[{"format":"google","url":"https://contentwarehouse.googleapis.com/$discovery/rest?version=v1","version":"v1"}],"x-providerName":"googleapis.com","x-serviceName":"contentwarehouse"},"externalDocs":{"url":"https://cloud.google.com/document-warehouse"},"tags":[{"name":"projects"}],"paths":{"/v1/{location}:getStatus":{"get":{"description":"Get the project status.","operationId":"contentwarehouse.projects.locations.getStatus","parameters":[{"description":"Required. The location to be queried Format: projects/{project_number}/locations/{location}.","in":"path","name":"location","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1ProjectStatus"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}]},"/v1/{location}:initialize":{"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Provisions resources for given tenant project. Returns a long running operation.","operationId":"contentwarehouse.projects.locations.initialize","parameters":[{"description":"Required. The location to be initialized Format: projects/{project_number}/locations/{location}.","in":"path","name":"location","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1InitializeProjectRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLongrunningOperation"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]}},"/v1/{name}":{"delete":{"description":"Deletes a SynonymSet for a given context. Throws a NOT_FOUND exception if the SynonymSet is not found.","operationId":"contentwarehouse.projects.locations.synonymSets.delete","parameters":[{"description":"Required. The name of the synonymSet to delete Format: projects/{project_number}/locations/{location}/synonymSets/{context}.","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleProtobufEmpty"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]},"get":{"description":"Gets a SynonymSet for a particular context. Throws a NOT_FOUND exception if the Synonymset does not exist","operationId":"contentwarehouse.projects.locations.synonymSets.get","parameters":[{"description":"Required. The name of the synonymSet to retrieve Format: projects/{project_number}/locations/{location}/synonymSets/{context}.","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1SynonymSet"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"patch":{"description":"Remove the existing SynonymSet for the context and replaces it with a new one. Throws a NOT_FOUND exception if the SynonymSet is not found.","operationId":"contentwarehouse.projects.locations.synonymSets.patch","parameters":[{"description":"Required. The name of the synonymSet to update Format: projects/{project_number}/locations/{location}/synonymSets/{context}.","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1SynonymSet"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1SynonymSet"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]}},"/v1/{name}:delete":{"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Deletes a document. Returns NOT_FOUND if the document does not exist.","operationId":"contentwarehouse.projects.locations.documents.referenceId.delete","parameters":[{"description":"Required. The name of the document to delete. Format: projects/{project_number}/locations/{location}/documents/{document_id} or projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1DeleteDocumentRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleProtobufEmpty"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]}},"/v1/{name}:get":{"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Gets a document. Returns NOT_FOUND if the document does not exist.","operationId":"contentwarehouse.projects.locations.documents.referenceId.get","parameters":[{"description":"Required. The name of the document to retrieve. Format: projects/{project_number}/locations/{location}/documents/{document_id} or projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1GetDocumentRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1Document"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]}},"/v1/{name}:lock":{"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Lock the document so the document cannot be updated by other users.","operationId":"contentwarehouse.projects.locations.documents.lock","parameters":[{"description":"Required. The name of the document to lock. Format: projects/{project_number}/locations/{location}/documents/{document}.","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1LockDocumentRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1Document"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]}},"/v1/{name}:runPipeline":{"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Run a predefined pipeline.","operationId":"contentwarehouse.projects.locations.runPipeline","parameters":[{"description":"Required. The resource name which owns the resources of the pipeline. Format: projects/{project_number}/locations/{location}.","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1RunPipelineRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLongrunningOperation"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]}},"/v1/{parent}/documentLinks":{"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Create a link between a source document and a target document.","operationId":"contentwarehouse.projects.locations.documents.documentLinks.create","parameters":[{"description":"Required. Parent of the document-link to be created. parent of document-link should be a document. Format: projects/{project_number}/locations/{location}/documents/{source_document_id}.","in":"path","name":"parent","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1CreateDocumentLinkRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1DocumentLink"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]}},"/v1/{parent}/documentSchemas":{"get":{"description":"Lists document schemas.","operationId":"contentwarehouse.projects.locations.documentSchemas.list","parameters":[{"description":"Required. The parent, which owns this collection of document schemas. Format: projects/{project_number}/locations/{location}.","in":"path","name":"parent","required":true,"schema":{"type":"string"}},{"description":"The maximum number of document schemas to return. The service may return fewer than this value. If unspecified, at most 50 document schemas will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.","in":"query","name":"pageSize","schema":{"type":"integer"}},{"description":"A page token, received from a previous `ListDocumentSchemas` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDocumentSchemas` must match the call that provided the page token.","in":"query","name":"pageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1ListDocumentSchemasResponse"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Creates a document schema.","operationId":"contentwarehouse.projects.locations.documentSchemas.create","parameters":[{"description":"Required. The parent name.","in":"path","name":"parent","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1DocumentSchema"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1DocumentSchema"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]}},"/v1/{parent}/documents":{"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Creates a document.","operationId":"contentwarehouse.projects.locations.documents.create","parameters":[{"description":"Required. The parent name. Format: projects/{project_number}/locations/{location}.","in":"path","name":"parent","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1CreateDocumentRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1CreateDocumentResponse"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]}},"/v1/{parent}/documents:search":{"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Searches for documents using provided SearchDocumentsRequest. This call only returns documents that the caller has permission to search against.","operationId":"contentwarehouse.projects.locations.documents.search","parameters":[{"description":"Required. The parent, which owns this collection of documents. Format: projects/{project_number}/locations/{location}.","in":"path","name":"parent","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1SearchDocumentsRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1SearchDocumentsResponse"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]}},"/v1/{parent}/linkedSources":{"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Return all source document-links from the document.","operationId":"contentwarehouse.projects.locations.documents.linkedSources","parameters":[{"description":"Required. The name of the document, for which all source links are returned. Format: projects/{project_number}/locations/{location}/documents/{source_document_id}.","in":"path","name":"parent","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1ListLinkedSourcesRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1ListLinkedSourcesResponse"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]}},"/v1/{parent}/linkedTargets":{"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Return all target document-links from the document.","operationId":"contentwarehouse.projects.locations.documents.linkedTargets","parameters":[{"description":"Required. The name of the document, for which all target links are returned. Format: projects/{project_number}/locations/{location}/documents/{target_document_id}.","in":"path","name":"parent","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1ListLinkedTargetsRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1ListLinkedTargetsResponse"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]}},"/v1/{parent}/ruleSets":{"get":{"description":"Lists rulesets.","operationId":"contentwarehouse.projects.locations.ruleSets.list","parameters":[{"description":"Required. The parent, which owns this collection of document. Format: projects/{project_number}/locations/{location}.","in":"path","name":"parent","required":true,"schema":{"type":"string"}},{"description":"The maximum number of rule sets to return. The service may return fewer than this value. If unspecified, at most 50 rule sets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.","in":"query","name":"pageSize","schema":{"type":"integer"}},{"description":"A page token, received from a previous `ListRuleSets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRuleSets` must match the call that provided the page token.","in":"query","name":"pageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1ListRuleSetsResponse"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Creates a ruleset.","operationId":"contentwarehouse.projects.locations.ruleSets.create","parameters":[{"description":"Required. The parent name. Format: projects/{project_number}/locations/{location}.","in":"path","name":"parent","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1RuleSet"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1RuleSet"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]}},"/v1/{parent}/synonymSets":{"get":{"description":"Returns all SynonymSets (for all contexts) for the specified location.","operationId":"contentwarehouse.projects.locations.synonymSets.list","parameters":[{"description":"Required. The parent name. Format: projects/{project_number}/locations/{location}.","in":"path","name":"parent","required":true,"schema":{"type":"string"}},{"description":"The maximum number of synonymSets to return. The service may return fewer than this value. If unspecified, at most 50 rule sets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.","in":"query","name":"pageSize","schema":{"type":"integer"}},{"description":"A page token, received from a previous `ListSynonymSets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSynonymSets` must match the call that provided the page token.","in":"query","name":"pageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1ListSynonymSetsResponse"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Creates a SynonymSet for a single context. Throws an ALREADY_EXISTS exception if a synonymset already exists for the context.","operationId":"contentwarehouse.projects.locations.synonymSets.create","parameters":[{"description":"Required. The parent name. Format: projects/{project_number}/locations/{location}.","in":"path","name":"parent","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1SynonymSet"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1SynonymSet"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]}},"/v1/{resource}:fetchAcl":{"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Gets the access control policy for a resource. Returns NOT_FOUND error if the resource does not exist. Returns an empty policy if the resource exists but does not have a policy set.","operationId":"contentwarehouse.projects.locations.documents.fetchAcl","parameters":[{"description":"Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}.","in":"path","name":"resource","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1FetchAclRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1FetchAclResponse"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]}},"/v1/{resource}:setAcl":{"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Sets the access control policy for a resource. Replaces any existing policy.","operationId":"contentwarehouse.projects.locations.documents.setAcl","parameters":[{"description":"Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}.","in":"path","name":"resource","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1SetAclRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCloudContentwarehouseV1SetAclResponse"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"],"Oauth2c":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]}}},"components":{"parameters":{"_.xgafv":{"description":"V1 error format.","in":"query","name":"$.xgafv","schema":{"enum":["1","2"],"type":"string"}},"access_token":{"description":"OAuth access token.","in":"query","name":"access_token","schema":{"type":"string"}},"alt":{"description":"Data format for response.","in":"query","name":"alt","schema":{"enum":["json","media","proto"],"type":"string"}},"callback":{"description":"JSONP","in":"query","name":"callback","schema":{"type":"string"}},"fields":{"description":"Selector specifying which fields to include in a partial response.","in":"query","name":"fields","schema":{"type":"string"}},"key":{"description":"API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.","in":"query","name":"key","schema":{"type":"string"}},"oauth_token":{"description":"OAuth 2.0 token for the current user.","in":"query","name":"oauth_token","schema":{"type":"string"}},"prettyPrint":{"description":"Returns response with indentations and line breaks.","in":"query","name":"prettyPrint","schema":{"type":"boolean"}},"quotaUser":{"description":"Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.","in":"query","name":"quotaUser","schema":{"type":"string"}},"uploadType":{"description":"Legacy upload protocol for media (e.g. \"media\", \"multipart\").","in":"query","name":"uploadType","schema":{"type":"string"}},"upload_protocol":{"description":"Upload protocol for media (e.g. \"raw\", \"multipart\").","in":"query","name":"upload_protocol","schema":{"type":"string"}}},"schemas":{"AbuseiamAbuseType":{"properties":{"id":{"enum":["NONE","OTHER_ABUSE","CHILD_PORN","PORNOGRAPHY","SPAM","PHISHING","HATE","TOS_OTHER","MALWARE","MALICIOUS_JAVASCRIPT","NOT_FAMILY_SAFE","IMPERSONATION","PEDOPHILIA","PERSONAL_INFO","COPYRIGHT","HIGH_RISK","VIOLENCE","UNSAFE_RACY","UNSAFE_OTHER","FAKE_USER","NAME_VIOLATION","PLUSONE_VIOLATION","DEFAMATION","TRADEMARK","COURT_ORDER","GOVERNMENT_ORDER","LOCAL_LAWS","PRIVACY","ES_BLACKLIST","ES_COMMENTS_BLACKLIST","HARASSMENT","COMPROMISED","LOW_QUALITY","API_VIOLATION","REGULATED","CAROUSEL_FRAME_BLACKLIST","QUOTA_EXCEEDED","FOUNTAIN_BLACKLIST","COPPA_REGULATED","DOXXING","SOFT_HATE","SOFT_HARASSMENT","OBNOXIOUS","UNWANTED","NOT_UNICORN_SAFE","FAKE_ENGAGEMENT","COUNTERFEIT","CTM"],"type":"string"},"subtype":{"description":"Optional client specific subtype of abuse that is too specific to belong in the above enumeration. For example, some client may want to differentiate nudity from graphic sex, but both are PORNOGRAPHY.","type":"string"}},"type":"object"},"AbuseiamAgeRestriction":{"properties":{"ageYears":{"description":"This restriction applies if the user is between [min_age_years, age_years) years old.","format":"int32","type":"integer"},"minAgeYears":{"format":"int32","type":"integer"}},"type":"object"},"AbuseiamAndRestriction":{"properties":{"child":{"description":"This restriction applies if all of the children apply.","items":{"$ref":"#/components/schemas/AbuseiamUserRestriction"},"type":"array"}},"type":"object"},"AbuseiamClient":{"description":"A client is be a Google product, or subproduct that provides content for AbuseIAm to classify.","properties":{"id":{"enum":["ABUSE_TEAM","SQE","SEARCH","POSTINI","BLOGGER","ORKUT","ZIPIT","GROUPS","RIPTIDE","GADGETS","SITES","READER","DOCS","U2U","YOUTUBE","POPTART","COSMO","PROFILES","KNOL","SKETCHUP","CALENDAR","HOTSHOTS","TRIKI","MAPS","COMMUNITY_TRANSLATION","WRITELY","SPREADSHEET_FORM","SPREADSHEET","EXPLORER","FINANCE","GMR","LAIBA","CONFUCIUS","PRESENTATION","CHROME_EXTENSION","WENDA","TACOTOWN","KRAKEN","URL_SHORTENER","WAREHOUSE","ANDROID_VM","CODESITE","FRIEND_CONNECT","GEOWIKI","GOOGLE_LABS","HELP_CENTER","SEARCHWIKI","SIDEWIKI","TOPIC_SEARCH","VIDEO","GOOGLEBASE","FEEDBURNER","PUBLISHER_QUALITY","NOTEBOOK","SMARTLISTS","ENTERPRISE_MARKETPLACE","BOOKS","IGOOGLE","USENET","TRANSLATE","PERFECT_STREAM","PHOTOS","AFMA","LIKES","QUESTIONS","SKYJAM","MIC","ANDROID_MARKET","CHROME_WEBSTORE","FINSKY","BARNOWL","STREET_VIEW","ADCONNECT","ES","HELLO","TRADER","SCHEMER","ANDROID","MINE","GAIA","GOGGLES","SIGNUP","BABEL","CHECKOUT","TASTEMAKER","STRATUS","DRAGONFLY","APIARY","CAROUSEL","FOUNTAIN","GEOPIX","VILLAGE","KIX","AMARNA","GINKGO","TEE","SHOPPING","SLAM","APPENGINE","GUNS","CULTURAL","COMPUTEENGINE","BIGSTORE","COPACABANA","ANALYTICS","GRANDCENTRAL","GMAIL","GLASS","CRISIS_RESPONSE","GJOBS","HAZMAT","SAFE_BROWSING","CLOUD","PANTHEON","CLUSTER","KEEP","APP_HISTORY","COMMERCIAL_ENTITY","ARES_DATA_PROVIDER","ARES_DATA_WRITER","BIZBUILDER","RITZ","POLLS","APPINVITE"],"type":"string"},"subservice":{"description":"The name of the subservice within a client. This subservice can be used to affect the flow of decision script, or selection of backend classifiers. For example, StreetView may want to specify a panel is insufficiently blurred (maybe there is a lisense plate or public sex, etc), which requires manual review then the subservice might be \"blurring\".","type":"string"}},"type":"object"},"AbuseiamClusterEvaluationContext":{"description":"Extra information regarding evaluations received through cluster review.","properties":{"clusterFamily":{"description":"The family of the cluster where the case received the evaluation.","type":"string"},"clusterRowkey":{"description":"The AbuseIAm rowkey of the cluster where the case received an evaluation.","type":"string"},"gaiaIdToEscalate":{"description":"The gaia id of a mail box that ops can send inquiries to for appeals. Used only by user clusters to fill a required gatekeeper param. See gaia_disableserver.DisableSpec.escalate_to field.","format":"int64","type":"string"}},"type":"object"},"AbuseiamConstantRestriction":{"properties":{"type":{"description":"A constant of type TRUE always applies, and of type FALSE never applies.","enum":["ALWAYS_TRUE","ALWAYS_FALSE"],"type":"string"}},"type":"object"},"AbuseiamContentRestriction":{"description":"Pair of Verdicts used for ProjectR age/geo gating. See http://go/projectr for more information.","properties":{"adminVerdict":{"description":"Takedowns specified by admins via AbuseIAm","items":{"$ref":"#/components/schemas/AbuseiamVerdict"},"type":"array"},"userVerdict":{"description":"User-specified takedowns","items":{"$ref":"#/components/schemas/AbuseiamVerdict"},"type":"array"}},"type":"object"},"AbuseiamEvaluation":{"description":"Backends return Evaluations to AbuseIAm. One of the things Evaluations are used for is to explain Verdicts.","properties":{"abuseType":{"$ref":"#/components/schemas/AbuseiamAbuseType"},"backend":{"description":"Who creates this Evaluation. This field is required.","enum":["UNKNOWN","ADMIN","GRADS","OCELOT","SPAMIAM","MANUAL_REVIEW","MAWLER","SNEAKY_JS","DOWNLOADER","PORN_CLASSIFIER","GIBBERISH_DETECTOR","ANTIVIRUS","GAUSS","REALUSERS","USERRANK","GRADS_AGGRESSIVE","BULK_ACTION","BADWORD","GAIA","LINKS_COUNT","RE_RULE","SLAM","AUTHORRANK","USERRANK_BADNESS","GAUSS_EXPLICIT","GAUSS_IMPLICIT","RETRIEVE_MESSAGE","SPAM_REPORT","SQUEAL","BLOGGER_LOGS","TRUSTRANK_PHISHING","CATFOOD","IMAGE_PORN_CLASSIFIER","OCELOT_IMPORT","FIFE_IMAGE_FETCHER","FAST_RISING_FEATURES","BOTGUARD","NAME_CHECKER","CHEETAH","GALLIFREY","OCELOT_DELETE","RULE","FOCUS","VIDEO_THUMBNAILER","PATTERNLIST","METADATA","METADATA_IMPORT","NAME_DETECTOR","SHINGLE_COMPUTER","WIGGUM","BINARY_EXPLORATION","REVNET","FURS","YOUTUBE_CLASSIFIER","IDV","CLUSTERCAT","CHEETAH_IMPORT","CHEETAH_READ","BOTGUARD_DECODE","QUOTASERVER","YOUTUBE","BLOGGER","SOCIAL_GRAPH","WEB_SIGNALS","TRAWLER","NOTIFICATIONS","CASES","BADURLS","LINK_IMPORT","SHINGLE_DEDUPER","DEV_CONSOLE","METADATA_QUERY","PLUS_PAGE","YOUTUBE_VIDEO_INFO","GOOGLE_ADMIN","RESPAY","COOKBOOK","EASY_LEARN","QUALITY_SAMPLER","BLOBSTORE","OWNER","POLICY","EXTERNAL","ABUSEIAM_FEEDBACK","BIGSTORE","PHOTO_SERVICE","GRADS_RELATED","REAPER","GATEKEEPER","VIPER","MSISDN","VIDEO_REVIEW","CSAI_MATCH","REDQUEEN","STREAMER_INDEXER","DREMEL","VISUAL_SEARCH_SERVICE_PORN","VISUAL_SEARCH_SERVICE_OCR","IMPLICIT_SOCIAL_GRAPH","EASY_LEARN_BLEND","USER_AURA","GOOPS","ANDROID_CHECKIN","ARES_DATA_PROVIDER","DROIDGUARD_VERDICT","ARES_DATA_WRITER","ADAPTIVE_QUOTA","AIAPLX","INFAME","ARES","VISUAL_SEARCH_SERVICE_ICA","VISUAL_SEARCH_SERVICE_BUTTON_DETECTION","VISUAL_SEARCH_SERVICE_LOGO_DETECTION"],"type":"string"},"clusterEvaluationContext":{"$ref":"#/components/schemas/AbuseiamClusterEvaluationContext","description":"Extra information regarding the cluster review context where the case received the evaluation."},"comment":{"description":"Backends can choose to put some debug info in addition to abuse_type, score, and status.","type":"string"},"feature":{"description":"A set of repeated features to allow adapters to return semi structured data. Please, prefer using feature instead of the old misc_data field since it supports richer and more structured data to be passed back.","items":{"$ref":"#/components/schemas/AbuseiamFeature"},"type":"array"},"manualReviewInfo":{"$ref":"#/components/schemas/AbuseiamManualReviewEvaluationInfo","description":"Information about the manual review, for manual review evaluations. Do NOT expect this field to be set if `backend != MANUAL_REVIEW`."},"miscData":{"description":"This field is used to store miscellaneous information that Backend might provide. If you find youself here considering to use this field, please prefer using the repeated feature field below instead. It supports a richer structure for passing complex data back from the backend.","items":{"$ref":"#/components/schemas/AbuseiamNameValuePair"},"type":"array"},"processTimeMillisecs":{"description":"Time in milliseconds when the Backend processed this Evaluation.","format":"int64","type":"string"},"processedMicros":{"description":"When the evaluation was processed by the decision script.","format":"int64","type":"string"},"region":{"description":"The list of regions where the evaluation applies.","items":{"$ref":"#/components/schemas/AbuseiamRegion"},"type":"array"},"score":{"format":"double","type":"number"},"status":{"enum":["OK","ERROR"],"type":"string"},"target":{"$ref":"#/components/schemas/AbuseiamTarget"},"timestampMicros":{"description":"When the Evaluation was generated.","format":"int64","type":"string"},"userRestriction":{"$ref":"#/components/schemas/AbuseiamUserRestriction","description":"A boolean expression tree used to define the restrictions where the verdict applies. Please use java/com/google/ccc/abuse/abuseiam/client/TakedownManager.java to evaluate this proto."},"version":{"description":"Version of Backend. For rules, this string is the only way to differentiate between them.","type":"string"},"videoReviewData":{"$ref":"#/components/schemas/AbuseiamVideoReviewData","description":"Information about the video review, for video review evaluations. Do NOT expect this field to be set if `backend != VIDEO_REVIEW`."}},"type":"object"},"AbuseiamFeature":{"properties":{"booleanValue":{"description":"Exactly one of the following should be filled in.","type":"boolean"},"doubleValue":{"format":"double","type":"number"},"featureCount":{"description":"Useful for applications that need to know how many times a specific feature occurs","format":"int64","type":"string"},"int64Value":{"description":"Useful for timestamps, or for numerical features where it is helpful for decision scripts to have exact values.","format":"int64","type":"string"},"integerValue":{"description":"integer value field is deprecated and shall only be used for passing the following features hardcoded in spamiam::SpamIAmMessage: spamiam::OrkutSenderId spamiam::OrkutPostnumReports spamiam::BloggerNumComments spamiam::BloggerNumCommentsByOthers Another hard-coded spamiam feature is spamiam::BlogName, which can be specified via string value.","format":"int32","type":"integer"},"name":{"type":"string"},"stringValue":{"items":{"type":"string"},"type":"array"},"timestampSequence":{"description":"This field should only be used to store a sequence of timestamps associated with the feature.","items":{"format":"int64","type":"string"},"type":"array"}},"type":"object"},"AbuseiamGeoRestriction":{"description":"A node representing a table of regions and restrictions that apply to those regions. This table understands region inclusion and knows to apply the most specific rule, for example, a rule for France would override a rule for the EU for a user in France.","properties":{"locale":{"items":{"$ref":"#/components/schemas/AbuseiamGeoRestrictionLocale"},"type":"array"}},"type":"object"},"AbuseiamGeoRestrictionLocale":{"properties":{"location":{"description":"The location where the restriction applies. Defaults to the \"The world\". See go/iii.","type":"string"},"restriction":{"$ref":"#/components/schemas/AbuseiamUserRestriction","description":"The UserRestriction that applies to this location. If not specified evaluates to true."}},"type":"object"},"AbuseiamHash":{"description":"Information about various hashes that can be computed on a message ex: simhash, attachment hash, etc","properties":{"hash":{"description":"64 bit hash in the hex form.","type":"string"},"type":{"type":"string"}},"type":"object"},"AbuseiamManualReviewEvaluationInfo":{"description":"Relevant information for manual review evaluations.","properties":{"reviewer":{"$ref":"#/components/schemas/AbuseiamManualReviewerInfo","description":"Reviewer performing the manual review."},"tool":{"$ref":"#/components/schemas/AbuseiamManualReviewTool","description":"Tool used to perform the manual review."}},"type":"object"},"AbuseiamManualReviewTool":{"properties":{"experimentId":{"type":"string"},"name":{"enum":["UNKNOWN","NUFF","GOOGLE_ADMIN","YOUTUBE"],"type":"string"}},"type":"object"},"AbuseiamManualReviewerInfo":{"properties":{"credential":{"items":{"enum":["UNKNOWN","LEGAL","POLICY","ANALYST","LEGAL_PANEL"],"type":"string"},"type":"array"},"username":{"type":"string"}},"type":"object"},"AbuseiamNameValuePair":{"properties":{"name":{"type":"string"},"nonUtf8Value":{"format":"byte","type":"string"},"value":{"type":"string"}},"type":"object"},"AbuseiamNotRestriction":{"properties":{"child":{"description":"This restriction applies if the child does not apply. Only one is allowed. \"repeated\" is used to avoid breaking Sawzall (See b/6758277).","items":{"$ref":"#/components/schemas/AbuseiamUserRestriction"},"type":"array"}},"type":"object"},"AbuseiamOrRestriction":{"properties":{"child":{"description":"This restriction applies if any of the children apply.","items":{"$ref":"#/components/schemas/AbuseiamUserRestriction"},"type":"array"}},"type":"object"},"AbuseiamRegion":{"properties":{"region":{"description":"This is a CLDR Region Code: http://wiki/Main/IIIHowTo#using_region It is used to denote the region affected by a verdict.","type":"string"}},"type":"object"},"AbuseiamSpecialRestriction":{"description":"A SpecialRestriction is a standardized UserRestriction which lives in a table maintained via CDD.","properties":{"type":{"enum":["ALCOHOL"],"type":"string"}},"type":"object"},"AbuseiamTarget":{"properties":{"id":{"type":"string"},"type":{"enum":["MESSAGE_ID","CHUNK_ID","IMAGE_URL","URL","USER_ID","IP","SITE","SITEDOMAIN","ENTITY_ID","PERFECT_STREAM_ID","ACTIVITY_ID","COMMENT_ID","AD_ID","TEXT","TEXT_FRAGMENT","CLUSTER_MEMBER_ID","EMBED_ID","ANDROID_ID"],"type":"string"}},"type":"object"},"AbuseiamUserNotification":{"description":"A structure used to configure a notification to a user.","properties":{"channel":{"enum":["UNKNOWN","BUILT_IN","EMAIL","GAIA"],"type":"string"}},"type":"object"},"AbuseiamUserRestriction":{"description":"Describes restrictions on where the verdict applies. Please use {@code TakedownManager} to evaluate this proto.","properties":{"ageRestriction":{"$ref":"#/components/schemas/AbuseiamAgeRestriction"},"andRestriction":{"$ref":"#/components/schemas/AbuseiamAndRestriction","description":"Operators"},"constantRestriction":{"$ref":"#/components/schemas/AbuseiamConstantRestriction","description":"Constant"},"geoRestriction":{"$ref":"#/components/schemas/AbuseiamGeoRestriction","description":"Leaf Nodes"},"notRestriction":{"$ref":"#/components/schemas/AbuseiamNotRestriction"},"orRestriction":{"$ref":"#/components/schemas/AbuseiamOrRestriction"},"specialRestriction":{"$ref":"#/components/schemas/AbuseiamSpecialRestriction"}},"type":"object"},"AbuseiamVerdict":{"description":"Verdict against a target. AbuseIAm generates a verdict based on evaluations. AbuseIAm can send such verdicts to clients for enforcement.","properties":{"client":{"$ref":"#/components/schemas/AbuseiamClient","description":"Target client of the verdict. It can be used to differentiate verdicts from multiple clients when such verdicts are processed in one common place."},"comment":{"description":"Additional info regarding the verdict.","type":"string"},"decision":{"enum":["ERROR","NO_ACTION","GOOD","DELETE","INTERSTITIAL","HIDE","BLACK_LIST","MARK_AS_SPAM","REWRITE_LINKS","HIDE_AND_NOTIFY","FREEZE_SERVICE","SUSPEND_SERVICE","SMS_DISABLE","NOTIFY"],"type":"string"},"durationMins":{"description":"Time duration (in minutes) of the verdict.","format":"int32","type":"integer"},"evaluation":{"description":"Evaluations relevant to this verdict. Every Verdict should contain at least one Evaluation.","items":{"$ref":"#/components/schemas/AbuseiamEvaluation"},"type":"array"},"hashes":{"description":"Details of all the hashes that can be computed on a message, such as simhash and attachment hash","items":{"$ref":"#/components/schemas/AbuseiamHash"},"type":"array"},"isLegalIssued":{"description":"Is this verdict issued by legal?","type":"boolean"},"miscScores":{"description":"This field is used to pass relevant / necessary scores to our clients. For eg: ASBE propogates these scores to moonshine.","items":{"$ref":"#/components/schemas/AbuseiamNameValuePair"},"type":"array"},"reasonCode":{"description":"A short description of the reason why the verdict decision is made.","type":"string"},"region":{"description":"The regions in which this verdict should be enforced. Absence of this field indicates that the verdict is applicable everywhere.","items":{"$ref":"#/components/schemas/AbuseiamRegion"},"type":"array"},"restriction":{"description":"Restrictions on where this verdict applies. If any restriction is met, the verdict is applied there. If no restrictions are present, the verdict is considered global.","items":{"$ref":"#/components/schemas/AbuseiamVerdictRestriction"},"type":"array"},"strikeCategory":{"description":"Category of the strike if this is a strike verdict.","enum":["ES","CP","COPYRIGHT","BLOGGER","GRANDCENTRAL","DRIVE","CLOUD","SITES"],"type":"string"},"target":{"$ref":"#/components/schemas/AbuseiamTarget"},"targetTimestampMicros":{"description":"The timestamp of the target. E.g., the time when the target was updated.","format":"int64","type":"string"},"timestampMicros":{"description":"When the verdict is generated","format":"int64","type":"string"},"userNotification":{"description":"Extra notification(s) to be delivered to target user or message owner about the verdict.","items":{"$ref":"#/components/schemas/AbuseiamUserNotification"},"type":"array"},"version":{"description":"version of decision script","type":"string"}},"type":"object"},"AbuseiamVerdictRestriction":{"description":"Describes restrictions on where the verdict applies.","properties":{"context":{"description":"For a restriction to apply, all contexts must be satisfied. For example, if context[0] is COUNTRY/'GERMANY' and context[1] is DESTINATION_STREAM/'gplus:SQUARE:knitting_discussion', then the verdict applies only when the 'knitting discussion'