• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "basePath": "",
3  "baseUrl": "https://firebasehosting.googleapis.com/",
4  "batchPath": "batch",
5  "canonicalName": "Firebase Hosting",
6  "description": "The Firebase Hosting REST API enables programmatic and customizable management and deployments to your Firebase-hosted sites. Use this REST API to create and manage channels and sites as well as to deploy new or updated hosting configurations and content files.",
7  "discoveryVersion": "v1",
8  "documentationLink": "https://firebase.google.com/docs/hosting/",
9  "fullyEncodeReservedExpansion": true,
10  "icons": {
11    "x16": "http://www.google.com/images/icons/product/search-16.gif",
12    "x32": "http://www.google.com/images/icons/product/search-32.gif"
13  },
14  "id": "firebasehosting:v1",
15  "kind": "discovery#restDescription",
16  "mtlsRootUrl": "https://firebasehosting.mtls.googleapis.com/",
17  "name": "firebasehosting",
18  "ownerDomain": "google.com",
19  "ownerName": "Google",
20  "parameters": {
21    "$.xgafv": {
22      "description": "V1 error format.",
23      "enum": [
24        "1",
25        "2"
26      ],
27      "enumDescriptions": [
28        "v1 error format",
29        "v2 error format"
30      ],
31      "location": "query",
32      "type": "string"
33    },
34    "access_token": {
35      "description": "OAuth access token.",
36      "location": "query",
37      "type": "string"
38    },
39    "alt": {
40      "default": "json",
41      "description": "Data format for response.",
42      "enum": [
43        "json",
44        "media",
45        "proto"
46      ],
47      "enumDescriptions": [
48        "Responses with Content-Type of application/json",
49        "Media download with context-dependent Content-Type",
50        "Responses with Content-Type of application/x-protobuf"
51      ],
52      "location": "query",
53      "type": "string"
54    },
55    "callback": {
56      "description": "JSONP",
57      "location": "query",
58      "type": "string"
59    },
60    "fields": {
61      "description": "Selector specifying which fields to include in a partial response.",
62      "location": "query",
63      "type": "string"
64    },
65    "key": {
66      "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.",
67      "location": "query",
68      "type": "string"
69    },
70    "oauth_token": {
71      "description": "OAuth 2.0 token for the current user.",
72      "location": "query",
73      "type": "string"
74    },
75    "prettyPrint": {
76      "default": "true",
77      "description": "Returns response with indentations and line breaks.",
78      "location": "query",
79      "type": "boolean"
80    },
81    "quotaUser": {
82      "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.",
83      "location": "query",
84      "type": "string"
85    },
86    "uploadType": {
87      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
88      "location": "query",
89      "type": "string"
90    },
91    "upload_protocol": {
92      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
93      "location": "query",
94      "type": "string"
95    }
96  },
97  "protocol": "rest",
98  "resources": {
99    "operations": {
100      "methods": {
101        "cancel": {
102          "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
103          "flatPath": "v1/operations/{operationsId}:cancel",
104          "httpMethod": "POST",
105          "id": "firebasehosting.operations.cancel",
106          "parameterOrder": [
107            "name"
108          ],
109          "parameters": {
110            "name": {
111              "description": "The name of the operation resource to be cancelled.",
112              "location": "path",
113              "pattern": "^operations/.*$",
114              "required": true,
115              "type": "string"
116            }
117          },
118          "path": "v1/{+name}:cancel",
119          "request": {
120            "$ref": "CancelOperationRequest"
121          },
122          "response": {
123            "$ref": "Empty"
124          }
125        },
126        "delete": {
127          "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.",
128          "flatPath": "v1/operations/{operationsId}",
129          "httpMethod": "DELETE",
130          "id": "firebasehosting.operations.delete",
131          "parameterOrder": [
132            "name"
133          ],
134          "parameters": {
135            "name": {
136              "description": "The name of the operation resource to be deleted.",
137              "location": "path",
138              "pattern": "^operations/.*$",
139              "required": true,
140              "type": "string"
141            }
142          },
143          "path": "v1/{+name}",
144          "response": {
145            "$ref": "Empty"
146          }
147        },
148        "list": {
149          "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
150          "flatPath": "v1/operations",
151          "httpMethod": "GET",
152          "id": "firebasehosting.operations.list",
153          "parameterOrder": [
154            "name"
155          ],
156          "parameters": {
157            "filter": {
158              "description": "The standard list filter.",
159              "location": "query",
160              "type": "string"
161            },
162            "name": {
163              "description": "The name of the operation's parent resource.",
164              "location": "path",
165              "pattern": "^operations$",
166              "required": true,
167              "type": "string"
168            },
169            "pageSize": {
170              "description": "The standard list page size.",
171              "format": "int32",
172              "location": "query",
173              "type": "integer"
174            },
175            "pageToken": {
176              "description": "The standard list page token.",
177              "location": "query",
178              "type": "string"
179            }
180          },
181          "path": "v1/{+name}",
182          "response": {
183            "$ref": "ListOperationsResponse"
184          }
185        }
186      }
187    }
188  },
189  "revision": "20211203",
190  "rootUrl": "https://firebasehosting.googleapis.com/",
191  "schemas": {
192    "CancelOperationRequest": {
193      "description": "The request message for Operations.CancelOperation.",
194      "id": "CancelOperationRequest",
195      "properties": {},
196      "type": "object"
197    },
198    "Empty": {
199      "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.",
200      "id": "Empty",
201      "properties": {},
202      "type": "object"
203    },
204    "ListOperationsResponse": {
205      "description": "The response message for Operations.ListOperations.",
206      "id": "ListOperationsResponse",
207      "properties": {
208        "nextPageToken": {
209          "description": "The standard List next-page token.",
210          "type": "string"
211        },
212        "operations": {
213          "description": "A list of operations that matches the specified filter in the request.",
214          "items": {
215            "$ref": "Operation"
216          },
217          "type": "array"
218        }
219      },
220      "type": "object"
221    },
222    "Operation": {
223      "description": "This resource represents a long-running operation that is the result of a network API call.",
224      "id": "Operation",
225      "properties": {
226        "done": {
227          "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.",
228          "type": "boolean"
229        },
230        "error": {
231          "$ref": "Status",
232          "description": "The error result of the operation in case of failure or cancellation."
233        },
234        "metadata": {
235          "additionalProperties": {
236            "description": "Properties of the object. Contains field @type with type URL.",
237            "type": "any"
238          },
239          "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.",
240          "type": "object"
241        },
242        "name": {
243          "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.",
244          "type": "string"
245        },
246        "response": {
247          "additionalProperties": {
248            "description": "Properties of the object. Contains field @type with type URL.",
249            "type": "any"
250          },
251          "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.",
252          "type": "object"
253        }
254      },
255      "type": "object"
256    },
257    "Status": {
258      "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
259      "id": "Status",
260      "properties": {
261        "code": {
262          "description": "The status code, which should be an enum value of google.rpc.Code.",
263          "format": "int32",
264          "type": "integer"
265        },
266        "details": {
267          "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
268          "items": {
269            "additionalProperties": {
270              "description": "Properties of the object. Contains field @type with type URL.",
271              "type": "any"
272            },
273            "type": "object"
274          },
275          "type": "array"
276        },
277        "message": {
278          "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
279          "type": "string"
280        }
281      },
282      "type": "object"
283    }
284  },
285  "servicePath": "",
286  "title": "Firebase Hosting API",
287  "version": "v1",
288  "version_module": true
289}