{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://www.apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-get-config":{"get":{"operationId":"analytics_googleapis_sourcerepo_sourcerepo_projects_get_config","summary":"Returns the Cloud Source Repositories configuration of the project.","description":"GET /v1/{+name}/config","tags":["analytics"],"parameters":[{"name":"name","in":"query","required":true,"description":"The name of the requested project. Values are of the form `projects/`.","schema":{"type":"string","description":"The name of the requested project. Values are of the form `projects/`."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-update-config":{"post":{"operationId":"analytics_googleapis_sourcerepo_sourcerepo_projects_update_config","summary":"Updates the Cloud Source Repositories configuration of the project.","description":"PATCH /v1/{+name}/config","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","body"],"properties":{"name":{"type":"string","description":"The name of the requested project. Values are of the form `projects/`."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-repos-create":{"post":{"operationId":"analytics_googleapis_sourcerepo_sourcerepo_projects_repos_create","summary":"Creates a repo in the given project with the given name. If the named repository already exists,…","description":"POST /v1/{+parent}/repos","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["parent","body"],"properties":{"parent":{"type":"string","description":"The project in which to create the repo. Values are of the form `projects/`."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-repos-get":{"get":{"operationId":"analytics_googleapis_sourcerepo_sourcerepo_projects_repos_get","summary":"Returns information about a repo.","description":"GET /v1/{+name}","tags":["analytics"],"parameters":[{"name":"name","in":"query","required":true,"description":"The name of the requested repository. Values are of the form `projects//repos/`.","schema":{"type":"string","description":"The name of the requested repository. Values are of the form `projects//repos/`."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-repos-patch":{"post":{"operationId":"analytics_googleapis_sourcerepo_sourcerepo_projects_repos_patch","summary":"Updates information about a repo.","description":"PATCH /v1/{+name}","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","body"],"properties":{"name":{"type":"string","description":"The name of the requested repository. Values are of the form `projects//repos/`."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-repos-delete":{"post":{"operationId":"analytics_googleapis_sourcerepo_sourcerepo_projects_repos_delete","summary":"Deletes a repo.","description":"DELETE /v1/{+name}","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"The name of the repo to delete. Values are of the form `projects//repos/`."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-repos-get-iam-policy":{"get":{"operationId":"analytics_googleapis_sourcerepo_sourcerepo_projects_repos_get_iam_policy","summary":"Gets the IAM policy policy for a resource. Returns an empty policy if the resource exists and does not have…","description":"GET /v1/{+resource}:getIamPolicy","tags":["analytics"],"parameters":[{"name":"options.requestedPolicyVersion","in":"query","required":false,"description":"Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid…","schema":{"type":"integer","description":"Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid…"}},{"name":"resource","in":"query","required":true,"description":"REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names)…","schema":{"type":"string","description":"REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names)…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-repos-list":{"get":{"operationId":"analytics_googleapis_sourcerepo_sourcerepo_projects_repos_list","summary":"Returns all repos belonging to a project. The sizes of the repos are not set by ListRepos. To get the size…","description":"GET /v1/{+name}/repos","tags":["analytics"],"parameters":[{"name":"name","in":"query","required":true,"description":"The project ID whose repos should be listed. Values are of the form `projects/`.","schema":{"type":"string","description":"The project ID whose repos should be listed. Values are of the form `projects/`."}},{"name":"pageSize","in":"query","required":false,"description":"Maximum number of repositories to return; between 1 and 500. If not set or zero, defaults to 100 at the server.","schema":{"type":"integer","description":"Maximum number of repositories to return; between 1 and 500. If not set or zero, defaults to 100 at the server."}},{"name":"pageToken","in":"query","required":false,"description":"Resume listing repositories where a prior ListReposResponse left off. This is an opaque token that must be obtained from a recent, prior…","schema":{"type":"string","description":"Resume listing repositories where a prior ListReposResponse left off. This is an opaque token that must be obtained from a recent, prior…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-repos-set-iam-policy":{"post":{"operationId":"analytics_googleapis_sourcerepo_sourcerepo_projects_repos_set_iam_policy","summary":"Sets the IAM policy on the specified resource. Replaces any existing policy.","description":"POST /v1/{+resource}:setIamPolicy","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["resource","body"],"properties":{"resource":{"type":"string","description":"REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names)…"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-repos-sync":{"post":{"operationId":"analytics_googleapis_sourcerepo_sourcerepo_projects_repos_sync","summary":"Synchronize a connected repo. The response contains SyncRepoMetadata in the metadata field.","description":"POST /v1/{+name}:sync","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","body"],"properties":{"name":{"type":"string","description":"The name of the repo to synchronize. Values are of the form `projects//repos/`."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-repos-test-iam-permissions":{"post":{"operationId":"analytics_googleapis_sourcerepo_sourcerepo_projects_repos_test_iam_permissions","summary":"Returns permissions that a caller has on the specified resource. If the resource does not exist, this will…","description":"POST /v1/{+resource}:testIamPermissions","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["resource","body"],"properties":{"resource":{"type":"string","description":"REQUIRED: The resource for which the policy detail is being requested. See [Resource…"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}