{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/analytics:googleapis-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-add-gran":{"post":{"operationId":"analytics_googleapis_bigquerydatapolicy_bigquerydatapolicy_projects_locations_data_policies_add_gran","summary":"Adds new grantees to a data policy. The new grantees will be added to the existing grantees. If the request…","description":"POST /v2/{+dataPolicy}:addGrantees","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["dataPolicy","body"],"properties":{"dataPolicy":{"type":"string","description":"Required. Resource name of this data policy, in the format of…"},"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-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-list":{"get":{"operationId":"analytics_googleapis_bigquerydatapolicy_bigquerydatapolicy_projects_locations_data_policies_list","summary":"List all of the data policies in the specified parent project.","description":"GET /v2/{+parent}/dataPolicies","tags":["analytics"],"parameters":[{"name":"filter","in":"query","required":false,"description":"Optional. Filters the data policies by policy tags that they are associated with. Currently filter only supports \"policy_tag\" based…","schema":{"type":"string","description":"Optional. Filters the data policies by policy tags that they are associated with. Currently filter only supports \"policy_tag\" based…"}},{"name":"pageSize","in":"query","required":false,"description":"Optional. The maximum number of data policies to return. Must be a value between 1 and 1000. If not set, defaults to 50.","schema":{"type":"integer","description":"Optional. The maximum number of data policies to return. Must be a value between 1 and 1000. If not set, defaults to 50."}},{"name":"pageToken","in":"query","required":false,"description":"Optional. The `nextPageToken` value returned from a previous list request, if any. If not set, defaults to an empty string.","schema":{"type":"string","description":"Optional. The `nextPageToken` value returned from a previous list request, if any. If not set, defaults to an empty string."}},{"name":"parent","in":"query","required":true,"description":"Required. Resource name of the project for which to list data policies. Format is `projects/{project_number}/locations/{location_id}`.","schema":{"type":"string","description":"Required. Resource name of the project for which to list data policies. Format is `projects/{project_number}/locations/{location_id}`."}}],"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-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-create":{"post":{"operationId":"analytics_googleapis_bigquerydatapolicy_bigquerydatapolicy_projects_locations_data_policies_create","summary":"Creates a new data policy under a project with the given `data_policy_id` (used as the display name), and…","description":"POST /v2/{+parent}/dataPolicies","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["parent","body"],"properties":{"parent":{"type":"string","description":"Required. Resource name of the project that the data policy will belong to. The format is…"},"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-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-get":{"get":{"operationId":"analytics_googleapis_bigquerydatapolicy_bigquerydatapolicy_projects_locations_data_policies_get","summary":"Gets the data policy specified by its resource name.","description":"GET /v2/{+name}","tags":["analytics"],"parameters":[{"name":"name","in":"query","required":true,"description":"Required. Resource name of the requested data policy. Format is `projects/{project_number}/locations/{location_id}/dataPolicies/{id}`.","schema":{"type":"string","description":"Required. Resource name of the requested data policy. Format is `projects/{project_number}/locations/{location_id}/dataPolicies/{id}`."}}],"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-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-patch":{"post":{"operationId":"analytics_googleapis_bigquerydatapolicy_bigquerydatapolicy_projects_locations_data_policies_patch","summary":"Updates the metadata for an existing data policy. The target data policy can be specified by the resource…","description":"PATCH /v2/{+name}","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","body"],"properties":{"allowMissing":{"type":"boolean","description":"Optional. If set to true, and the data policy is not found, a new data policy will be created. In this situation, update_mask is ignored."},"name":{"type":"string","description":"Identifier. Resource name of this data policy, in the format of…"},"updateMask":{"type":"string","description":"Optional. The update mask applies to the resource. For the `FieldMask` definition, see…"},"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-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-delete":{"post":{"operationId":"analytics_googleapis_bigquerydatapolicy_bigquerydatapolicy_projects_locations_data_policies_delete","summary":"Deletes the data policy specified by its resource name.","description":"DELETE /v2/{+name}","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Required. Resource name of the data policy to delete. Format is `projects/{project_number}/locations/{location_id}/dataPolicies/{id}`."}}}}}},"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-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-get-iam":{"post":{"operationId":"analytics_googleapis_bigquerydatapolicy_bigquerydatapolicy_projects_locations_data_policies_get_iam","summary":"Gets the IAM policy for the specified data policy.","description":"POST /v2/{+resource}:getIamPolicy","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 requested. 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-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-remove-g":{"post":{"operationId":"analytics_googleapis_bigquerydatapolicy_bigquerydatapolicy_projects_locations_data_policies_remove_g","summary":"Removes grantees from a data policy. The grantees will be removed from the existing grantees. If the request…","description":"POST /v2/{+dataPolicy}:removeGrantees","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["dataPolicy","body"],"properties":{"dataPolicy":{"type":"string","description":"Required. Resource name of this data policy, in the format of…"},"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-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-set-iam":{"post":{"operationId":"analytics_googleapis_bigquerydatapolicy_bigquerydatapolicy_projects_locations_data_policies_set_iam","summary":"Sets the IAM policy for the specified data policy.","description":"POST /v2/{+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-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-test-iam":{"post":{"operationId":"analytics_googleapis_bigquerydatapolicy_bigquerydatapolicy_projects_locations_data_policies_test_iam","summary":"Returns the caller's permission on the specified data policy resource.","description":"POST /v2/{+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"}}}}}}}