Debian Codegraph @

docs/dyn/firebasedatabase_v1beta.projects.locations.instances.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="firebasedatabase_v1beta.html">Firebase Realtime Database Management API</a> . <a href="firebasedatabase_v1beta.projects.html">projects</a> . <a href="firebasedatabase_v1beta.projects.locations.html">locations</a> . <a href="firebasedatabase_v1beta.projects.locations.instances.html">instances</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, databaseId=None, validateOnly=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Requests that a new DatabaseInstance be created. The state of a successfully created DatabaseInstance is ACTIVE. Only available for projects on the Blaze plan. Projects can be upgraded using the Cloud Billing API https://cloud.google.com/billing/reference/rest/v1/projects/updateBillingInfo. Note that it might take a few minutes for billing enablement state to propagate to Firebase systems.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Marks a DatabaseInstance to be deleted. The DatabaseInstance will be set to the DELETED state for 20 days, and will be purged within 30 days. The default database cannot be deleted. IDs for deleted database instances may never be recovered or re-used. The Database may only be deleted if it is already in a DISABLED state.</p>
86 <p class="toc_element">
87 <code><a href="#disable">disable(name, body=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Disables a DatabaseInstance. The database can be re-enabled later using ReenableDatabaseInstance. When a database is disabled, all reads and writes are denied, including view access in the Firebase console.</p>
89 <p class="toc_element">
90 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
91 <p class="firstline">Gets the DatabaseInstance identified by the specified resource name.</p>
92 <p class="toc_element">
93 <code><a href="#list">list(parent, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Lists each DatabaseInstance associated with the specified parent project. The list items are returned in no particular order, but will be a consistent view of the database instances when additional requests are made with a `pageToken`. The resulting list contains instances in any STATE. The list results may be stale by a few seconds. Use GetDatabaseInstance for consistent reads.</p>
95 <p class="toc_element">
96 <code><a href="#list_next">list_next()</a></code></p>
97 <p class="firstline">Retrieves the next page of results.</p>
98 <p class="toc_element">
99 <code><a href="#reenable">reenable(name, body=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Enables a DatabaseInstance. The database must have been disabled previously using DisableDatabaseInstance. The state of a successfully reenabled DatabaseInstance is ACTIVE.</p>
101 <p class="toc_element">
102 <code><a href="#undelete">undelete(name, body=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Restores a DatabaseInstance that was previously marked to be deleted. After the delete method is used, DatabaseInstances are set to the DELETED state for 20 days, and will be purged within 30 days. Databases in the DELETED state can be undeleted without losing any data. This method may only be used on a DatabaseInstance in the DELETED state. Purged DatabaseInstances may not be recovered.</p>
104 <h3>Method Details</h3>
105 <div class="method">
106 <code class="details" id="close">close()</code>
107 <pre>Close httplib2 connections.</pre>
108 </div>
109
110 <div class="method">
111 <code class="details" id="create">create(parent, body=None, databaseId=None, validateOnly=None, x__xgafv=None)</code>
112 <pre>Requests that a new DatabaseInstance be created. The state of a successfully created DatabaseInstance is ACTIVE. Only available for projects on the Blaze plan. Projects can be upgraded using the Cloud Billing API https://cloud.google.com/billing/reference/rest/v1/projects/updateBillingInfo. Note that it might take a few minutes for billing enablement state to propagate to Firebase systems.
113
114 Args:
115 parent: string, Required. The parent project for which to create a database instance, in the form: `projects/{project-number}/locations/{location-id}`. (required)
116 body: object, The request body.
117 The object takes the form of:
118
119 { # Representation of a Realtime Database instance. Details on interacting with contents of a DatabaseInstance can be found at: https://firebase.google.com/docs/database/rest/start.
120 &quot;databaseUrl&quot;: &quot;A String&quot;, # Output only. Output Only. The globally unique hostname of the database.
121 &quot;name&quot;: &quot;A String&quot;, # The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`.
122 &quot;project&quot;: &quot;A String&quot;, # Output only. The resource name of the project this instance belongs to. For example: `projects/{project-number}`.
123 &quot;state&quot;: &quot;A String&quot;, # Output only. The database&#x27;s lifecycle state. Read-only.
124 &quot;type&quot;: &quot;A String&quot;, # Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
125 }
126
127 databaseId: string, The globally unique identifier of the database instance.
128 validateOnly: boolean, When set to true, the request will be validated but not submitted.
129 x__xgafv: string, V1 error format.
130 Allowed values
131 1 - v1 error format
132 2 - v2 error format
133
134 Returns:
135 An object of the form:
136
137 { # Representation of a Realtime Database instance. Details on interacting with contents of a DatabaseInstance can be found at: https://firebase.google.com/docs/database/rest/start.
138 &quot;databaseUrl&quot;: &quot;A String&quot;, # Output only. Output Only. The globally unique hostname of the database.
139 &quot;name&quot;: &quot;A String&quot;, # The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`.
140 &quot;project&quot;: &quot;A String&quot;, # Output only. The resource name of the project this instance belongs to. For example: `projects/{project-number}`.
141 &quot;state&quot;: &quot;A String&quot;, # Output only. The database&#x27;s lifecycle state. Read-only.
142 &quot;type&quot;: &quot;A String&quot;, # Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
143 }</pre>
144 </div>
145
146 <div class="method">
147 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
148 <pre>Marks a DatabaseInstance to be deleted. The DatabaseInstance will be set to the DELETED state for 20 days, and will be purged within 30 days. The default database cannot be deleted. IDs for deleted database instances may never be recovered or re-used. The Database may only be deleted if it is already in a DISABLED state.
149
150 Args:
151 name: string, Required. The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}` (required)
152 x__xgafv: string, V1 error format.
153 Allowed values
154 1 - v1 error format
155 2 - v2 error format
156
157 Returns:
158 An object of the form:
159
160 { # Representation of a Realtime Database instance. Details on interacting with contents of a DatabaseInstance can be found at: https://firebase.google.com/docs/database/rest/start.
161 &quot;databaseUrl&quot;: &quot;A String&quot;, # Output only. Output Only. The globally unique hostname of the database.
162 &quot;name&quot;: &quot;A String&quot;, # The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`.
163 &quot;project&quot;: &quot;A String&quot;, # Output only. The resource name of the project this instance belongs to. For example: `projects/{project-number}`.
164 &quot;state&quot;: &quot;A String&quot;, # Output only. The database&#x27;s lifecycle state. Read-only.
165 &quot;type&quot;: &quot;A String&quot;, # Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
166 }</pre>
167 </div>
168
169 <div class="method">
170 <code class="details" id="disable">disable(name, body=None, x__xgafv=None)</code>
171 <pre>Disables a DatabaseInstance. The database can be re-enabled later using ReenableDatabaseInstance. When a database is disabled, all reads and writes are denied, including view access in the Firebase console.
172
173 Args:
174 name: string, Required. The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}` (required)
175 body: object, The request body.
176 The object takes the form of:
177
178 { # The request sent to the DisableDatabaseInstance method.
179 }
180
181 x__xgafv: string, V1 error format.
182 Allowed values
183 1 - v1 error format
184 2 - v2 error format
185
186 Returns:
187 An object of the form:
188
189 { # Representation of a Realtime Database instance. Details on interacting with contents of a DatabaseInstance can be found at: https://firebase.google.com/docs/database/rest/start.
190 &quot;databaseUrl&quot;: &quot;A String&quot;, # Output only. Output Only. The globally unique hostname of the database.
191 &quot;name&quot;: &quot;A String&quot;, # The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`.
192 &quot;project&quot;: &quot;A String&quot;, # Output only. The resource name of the project this instance belongs to. For example: `projects/{project-number}`.
193 &quot;state&quot;: &quot;A String&quot;, # Output only. The database&#x27;s lifecycle state. Read-only.
194 &quot;type&quot;: &quot;A String&quot;, # Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
195 }</pre>
196 </div>
197
198 <div class="method">
199 <code class="details" id="get">get(name, x__xgafv=None)</code>
200 <pre>Gets the DatabaseInstance identified by the specified resource name.
201
202 Args:
203 name: string, Required. The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`. `database-id` is a globally unique identifier across all parent collections. For convenience, this method allows you to supply `-` as a wildcard character in place of specific collections under `projects` and `locations`. The resulting wildcarding form of the method is: `projects/-/locations/-/instances/{database-id}`. (required)
204 x__xgafv: string, V1 error format.
205 Allowed values
206 1 - v1 error format
207 2 - v2 error format
208
209 Returns:
210 An object of the form:
211
212 { # Representation of a Realtime Database instance. Details on interacting with contents of a DatabaseInstance can be found at: https://firebase.google.com/docs/database/rest/start.
213 &quot;databaseUrl&quot;: &quot;A String&quot;, # Output only. Output Only. The globally unique hostname of the database.
214 &quot;name&quot;: &quot;A String&quot;, # The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`.
215 &quot;project&quot;: &quot;A String&quot;, # Output only. The resource name of the project this instance belongs to. For example: `projects/{project-number}`.
216 &quot;state&quot;: &quot;A String&quot;, # Output only. The database&#x27;s lifecycle state. Read-only.
217 &quot;type&quot;: &quot;A String&quot;, # Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
218 }</pre>
219 </div>
220
221 <div class="method">
222 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)</code>
223 <pre>Lists each DatabaseInstance associated with the specified parent project. The list items are returned in no particular order, but will be a consistent view of the database instances when additional requests are made with a `pageToken`. The resulting list contains instances in any STATE. The list results may be stale by a few seconds. Use GetDatabaseInstance for consistent reads.
224
225 Args:
226 parent: string, Required. The parent project for which to list database instances, in the form: `projects/{project-number}/locations/{location-id}` To list across all locations, use a parent in the form: `projects/{project-number}/locations/-` (required)
227 pageSize: integer, The maximum number of database instances to return in the response. The server may return fewer than this at its discretion. If no value is specified (or too large a value is specified), then the server will impose its own limit.
228 pageToken: string, Token returned from a previous call to `ListDatabaseInstances` indicating where in the set of database instances to resume listing.
229 showDeleted: boolean, Indicate that DatabaseInstances in the `DELETED` state should also be returned.
230 x__xgafv: string, V1 error format.
231 Allowed values
232 1 - v1 error format
233 2 - v2 error format
234
235 Returns:
236 An object of the form:
237
238 { # The response from the ListDatabaseInstances method.
239 &quot;instances&quot;: [ # List of each DatabaseInstance that is in the parent Firebase project.
240 { # Representation of a Realtime Database instance. Details on interacting with contents of a DatabaseInstance can be found at: https://firebase.google.com/docs/database/rest/start.
241 &quot;databaseUrl&quot;: &quot;A String&quot;, # Output only. Output Only. The globally unique hostname of the database.
242 &quot;name&quot;: &quot;A String&quot;, # The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`.
243 &quot;project&quot;: &quot;A String&quot;, # Output only. The resource name of the project this instance belongs to. For example: `projects/{project-number}`.
244 &quot;state&quot;: &quot;A String&quot;, # Output only. The database&#x27;s lifecycle state. Read-only.
245 &quot;type&quot;: &quot;A String&quot;, # Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
246 },
247 ],
248 &quot;nextPageToken&quot;: &quot;A String&quot;, # If the result list is too large to fit in a single response, then a token is returned. If the string is empty, then this response is the last page of results. This token can be used in a subsequent call to `ListDatabaseInstances` to find the next group of database instances. Page tokens are short-lived and should not be persisted.
249 }</pre>
250 </div>
251
252 <div class="method">
253 <code class="details" id="list_next">list_next()</code>
254 <pre>Retrieves the next page of results.
255
256 Args:
257 previous_request: The request for the previous page. (required)
258 previous_response: The response from the request for the previous page. (required)
259
260 Returns:
261 A request object that you can call &#x27;execute()&#x27; on to request the next
262 page. Returns None if there are no more items in the collection.
263 </pre>
264 </div>
265
266 <div class="method">
267 <code class="details" id="reenable">reenable(name, body=None, x__xgafv=None)</code>
268 <pre>Enables a DatabaseInstance. The database must have been disabled previously using DisableDatabaseInstance. The state of a successfully reenabled DatabaseInstance is ACTIVE.
269
270 Args:
271 name: string, Required. The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}` (required)
272 body: object, The request body.
273 The object takes the form of:
274
275 { # The request sent to the ReenableDatabaseInstance method.
276 }
277
278 x__xgafv: string, V1 error format.
279 Allowed values
280 1 - v1 error format
281 2 - v2 error format
282
283 Returns:
284 An object of the form:
285
286 { # Representation of a Realtime Database instance. Details on interacting with contents of a DatabaseInstance can be found at: https://firebase.google.com/docs/database/rest/start.
287 &quot;databaseUrl&quot;: &quot;A String&quot;, # Output only. Output Only. The globally unique hostname of the database.
288 &quot;name&quot;: &quot;A String&quot;, # The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`.
289 &quot;project&quot;: &quot;A String&quot;, # Output only. The resource name of the project this instance belongs to. For example: `projects/{project-number}`.
290 &quot;state&quot;: &quot;A String&quot;, # Output only. The database&#x27;s lifecycle state. Read-only.
291 &quot;type&quot;: &quot;A String&quot;, # Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
292 }</pre>
293 </div>
294
295 <div class="method">
296 <code class="details" id="undelete">undelete(name, body=None, x__xgafv=None)</code>
297 <pre>Restores a DatabaseInstance that was previously marked to be deleted. After the delete method is used, DatabaseInstances are set to the DELETED state for 20 days, and will be purged within 30 days. Databases in the DELETED state can be undeleted without losing any data. This method may only be used on a DatabaseInstance in the DELETED state. Purged DatabaseInstances may not be recovered.
298
299 Args:
300 name: string, Required. The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}` (required)
301 body: object, The request body.
302 The object takes the form of:
303
304 { # The request sent to UndeleteDatabaseInstance method.
305 }
306
307 x__xgafv: string, V1 error format.
308 Allowed values
309 1 - v1 error format
310 2 - v2 error format
311
312 Returns:
313 An object of the form:
314
315 { # Representation of a Realtime Database instance. Details on interacting with contents of a DatabaseInstance can be found at: https://firebase.google.com/docs/database/rest/start.
316 &quot;databaseUrl&quot;: &quot;A String&quot;, # Output only. Output Only. The globally unique hostname of the database.
317 &quot;name&quot;: &quot;A String&quot;, # The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`.
318 &quot;project&quot;: &quot;A String&quot;, # Output only. The resource name of the project this instance belongs to. For example: `projects/{project-number}`.
319 &quot;state&quot;: &quot;A String&quot;, # Output only. The database&#x27;s lifecycle state. Read-only.
320 &quot;type&quot;: &quot;A String&quot;, # Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
321 }</pre>
322 </div>
323
324 </body></html>