Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 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="firebase_v1beta1.html">Firebase Management API</a> . <a href="firebase_v1beta1.projects.html">projects</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="firebase_v1beta1.projects.androidApps.html">androidApps()</a></code> |
| 79 | </p> |
| 80 | <p class="firstline">Returns the androidApps Resource.</p> |
| 81 | |
| 82 | <p class="toc_element"> |
| 83 | <code><a href="firebase_v1beta1.projects.availableLocations.html">availableLocations()</a></code> |
| 84 | </p> |
| 85 | <p class="firstline">Returns the availableLocations Resource.</p> |
| 86 | |
| 87 | <p class="toc_element"> |
| 88 | <code><a href="firebase_v1beta1.projects.defaultLocation.html">defaultLocation()</a></code> |
| 89 | </p> |
| 90 | <p class="firstline">Returns the defaultLocation Resource.</p> |
| 91 | |
| 92 | <p class="toc_element"> |
| 93 | <code><a href="firebase_v1beta1.projects.iosApps.html">iosApps()</a></code> |
| 94 | </p> |
| 95 | <p class="firstline">Returns the iosApps Resource.</p> |
| 96 | |
| 97 | <p class="toc_element"> |
| 98 | <code><a href="firebase_v1beta1.projects.webApps.html">webApps()</a></code> |
| 99 | </p> |
| 100 | <p class="firstline">Returns the webApps Resource.</p> |
| 101 | |
| 102 | <p class="toc_element"> |
| 103 | <code><a href="#addFirebase">addFirebase(project, body=None, x__xgafv=None)</a></code></p> |
| 104 | <p class="firstline">Adds Firebase resources to the specified existing</p> |
| 105 | <p class="toc_element"> |
| 106 | <code><a href="#addGoogleAnalytics">addGoogleAnalytics(parent, body=None, x__xgafv=None)</a></code></p> |
| 107 | <p class="firstline">Links a FirebaseProject with an existing</p> |
| 108 | <p class="toc_element"> |
| 109 | <code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 110 | <p class="firstline">Gets the FirebaseProject identified by the specified resource name.</p> |
| 111 | <p class="toc_element"> |
| 112 | <code><a href="#getAdminSdkConfig">getAdminSdkConfig(name, x__xgafv=None)</a></code></p> |
| 113 | <p class="firstline">Gets the configuration artifact used by servers to simplify initialization.</p> |
| 114 | <p class="toc_element"> |
| 115 | <code><a href="#getAnalyticsDetails">getAnalyticsDetails(name, x__xgafv=None)</a></code></p> |
| 116 | <p class="firstline">Gets the Google Analytics details currently associated with a</p> |
| 117 | <p class="toc_element"> |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 118 | <code><a href="#list">list(pageToken=None, pageSize=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 119 | <p class="firstline">Lists each FirebaseProject accessible to the caller.</p> |
| 120 | <p class="toc_element"> |
| 121 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 122 | <p class="firstline">Retrieves the next page of results.</p> |
| 123 | <p class="toc_element"> |
| 124 | <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> |
| 125 | <p class="firstline">Updates the attributes of the FirebaseProject identified by the</p> |
| 126 | <p class="toc_element"> |
| 127 | <code><a href="#removeAnalytics">removeAnalytics(parent, body=None, x__xgafv=None)</a></code></p> |
| 128 | <p class="firstline">Unlinks the specified `FirebaseProject` from its Google Analytics account.</p> |
| 129 | <p class="toc_element"> |
| 130 | <code><a href="#searchApps">searchApps(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p> |
| 131 | <p class="firstline">A convenience method that lists all available Apps for the specified</p> |
| 132 | <p class="toc_element"> |
| 133 | <code><a href="#searchApps_next">searchApps_next(previous_request, previous_response)</a></code></p> |
| 134 | <p class="firstline">Retrieves the next page of results.</p> |
| 135 | <h3>Method Details</h3> |
| 136 | <div class="method"> |
| 137 | <code class="details" id="addFirebase">addFirebase(project, body=None, x__xgafv=None)</code> |
| 138 | <pre>Adds Firebase resources to the specified existing |
| 139 | [Google Cloud Platform (GCP) `Project`] |
| 140 | (https://cloud.google.com/resource-manager/reference/rest/v1/projects). |
| 141 | <br> |
| 142 | <br>Since a FirebaseProject is actually also a GCP `Project`, a |
| 143 | `FirebaseProject` uses underlying GCP identifiers (most importantly, |
| 144 | the `projectId`) as its own for easy interop with GCP APIs. |
| 145 | <br> |
| 146 | <br>The result of this call is an [`Operation`](../../v1beta1/operations). |
| 147 | Poll the `Operation` to track the provisioning process by calling |
| 148 | GetOperation until |
| 149 | [`done`](../../v1beta1/operations#Operation.FIELDS.done) is `true`. When |
| 150 | `done` is `true`, the `Operation` has either succeeded or failed. If the |
| 151 | `Operation` succeeded, its |
| 152 | [`response`](../../v1beta1/operations#Operation.FIELDS.response) is set to |
| 153 | a FirebaseProject; if the `Operation` failed, its |
| 154 | [`error`](../../v1beta1/operations#Operation.FIELDS.error) is set to a |
| 155 | google.rpc.Status. The `Operation` is automatically deleted after |
| 156 | completion, so there is no need to call |
| 157 | DeleteOperation. |
| 158 | <br> |
| 159 | <br>This method does not modify any billing account information on the |
| 160 | underlying GCP `Project`. |
| 161 | <br> |
| 162 | <br>To call `AddFirebase`, a project member or service account must have |
| 163 | the following permissions (the IAM roles of Editor and Owner contain these |
| 164 | permissions): |
| 165 | `firebase.projects.update`, `resourcemanager.projects.get`, |
| 166 | `serviceusage.services.enable`, and `serviceusage.services.get`. |
| 167 | |
| 168 | Args: |
| 169 | project: string, The resource name of the GCP `Project` to which Firebase resources will be |
| 170 | added, in the format: |
| 171 | <br><code>projects/<var>projectId</var></code> |
| 172 | After calling `AddFirebase`, the |
| 173 | [`projectId`](https://cloud.google.com/resource-manager/reference/rest/v1/projects#Project.FIELDS.project_id) |
| 174 | of the GCP `Project` is also the `projectId` of the FirebaseProject. (required) |
| 175 | body: object, The request body. |
| 176 | The object takes the form of: |
| 177 | |
| 178 | { # All fields are required. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 179 | "timeZone": "A String", # Deprecated. Instead, to link your Project with a Google Analytics account, |
| 180 | # call [`AddGoogleAnalytics`](../../v1beta1/projects/addGoogleAnalytics) |
| 181 | # after you add Firebase resources to your Project. |
| 182 | # <br> |
| 183 | # <br>The time zone that the account will use for Firebase Analytics data. |
| 184 | # <br>For example: America/Los_Angeles or Africa/Abidjan |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 185 | "locationId": "A String", # Deprecated. Instead, to set your project's default GCP resource location, |
| 186 | # call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) |
| 187 | # after you add Firebase resources to your project. |
| 188 | # <br> |
| 189 | # <br>The ID of the project's default GCP resource location. The location |
| 190 | # must be one of the available |
| 191 | # [GCP resource |
| 192 | # locations](https://firebase.google.com/docs/projects/locations). |
| 193 | "regionCode": "A String", # Deprecated. Instead, to link your Project with a Google Analytics account, |
| 194 | # call [`AddGoogleAnalytics`](../../v1beta1/projects/addGoogleAnalytics) |
| 195 | # after you add Firebase resources to your Project. |
| 196 | # <br> |
| 197 | # <br>The region code (CLDR) that the account will use for Firebase Analytics |
| 198 | # data. |
| 199 | # <br>For example: US, GB, or DE |
| 200 | # <br> |
| 201 | # <br>In Java, use `com.google.i18n.identifiers.RegionCode`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 202 | } |
| 203 | |
| 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 | { # This resource represents a long-running operation that is the result of a |
| 213 | # network API call. |
| 214 | "done": True or False, # If the value is `false`, it means the operation is still in progress. |
| 215 | # If `true`, the operation is completed, and either `error` or `response` is |
| 216 | # available. |
| 217 | "response": { # The normal response of the operation in case of success. If the original |
| 218 | # method returns no data on success, such as `Delete`, the response is |
| 219 | # `google.protobuf.Empty`. If the original method is standard |
| 220 | # `Get`/`Create`/`Update`, the response should be the resource. For other |
| 221 | # methods, the response should have the type `XxxResponse`, where `Xxx` |
| 222 | # is the original method name. For example, if the original method name |
| 223 | # is `TakeSnapshot()`, the inferred response type is |
| 224 | # `TakeSnapshotResponse`. |
| 225 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 226 | }, |
| 227 | "name": "A String", # The server-assigned name, which is only unique within the same service that |
| 228 | # originally returns it. If you use the default HTTP mapping, the |
| 229 | # `name` should be a resource name ending with `operations/{unique_id}`. |
| 230 | "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. |
| 231 | # different programming environments, including REST APIs and RPC APIs. It is |
| 232 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 233 | # three pieces of data: error code, error message, and error details. |
| 234 | # |
| 235 | # You can find out more about this error model and how to work with it in the |
| 236 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
| 237 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 238 | # user-facing error message should be localized and sent in the |
| 239 | # google.rpc.Status.details field, or localized by the client. |
| 240 | "details": [ # A list of messages that carry the error details. There is a common set of |
| 241 | # message types for APIs to use. |
| 242 | { |
| 243 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 244 | }, |
| 245 | ], |
| 246 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 247 | }, |
| 248 | "metadata": { # Service-specific metadata associated with the operation. It typically |
| 249 | # contains progress information and common metadata such as create time. |
| 250 | # Some services might not provide such metadata. Any method that returns a |
| 251 | # long-running operation should document the metadata type, if any. |
| 252 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 253 | }, |
| 254 | }</pre> |
| 255 | </div> |
| 256 | |
| 257 | <div class="method"> |
| 258 | <code class="details" id="addGoogleAnalytics">addGoogleAnalytics(parent, body=None, x__xgafv=None)</code> |
| 259 | <pre>Links a FirebaseProject with an existing |
| 260 | [Google Analytics account](http://www.google.com/analytics/). |
| 261 | <br> |
| 262 | <br>Using this call, you can either: |
| 263 | <ul> |
| 264 | <li>Specify an `analyticsAccountId` to provision a new Google Analytics |
| 265 | property within the specified account and associate the new property with |
| 266 | your `FirebaseProject`.</li> |
| 267 | <li>Specify an existing `analyticsPropertyId` to associate the property |
| 268 | with your `FirebaseProject`.</li> |
| 269 | </ul> |
| 270 | <br> |
| 271 | Note that when you call `AddGoogleAnalytics`: |
| 272 | <ol> |
| 273 | <li>The first check determines if any existing data streams in the |
| 274 | Google Analytics property correspond to any existing Firebase Apps in your |
| 275 | `FirebaseProject` (based on the `packageName` or `bundleId` associated with |
| 276 | the data stream). Then, as applicable, the data streams and apps are |
| 277 | linked. Note that this auto-linking only applies to Android Apps and iOS |
| 278 | Apps.</li> |
| 279 | <li>If no corresponding data streams are found for your Firebase Apps, |
| 280 | new data streams are provisioned in the Google Analytics property |
| 281 | for each of your Firebase Apps. Note that a new data stream is always |
| 282 | provisioned for a Web App even if it was previously associated with a |
| 283 | data stream in your Analytics property.</li> |
| 284 | </ol> |
| 285 | Learn more about the hierarchy and structure of Google Analytics |
| 286 | accounts in the |
| 287 | [Analytics |
| 288 | documentation](https://support.google.com/analytics/answer/9303323). |
| 289 | <br> |
| 290 | <br>The result of this call is an [`Operation`](../../v1beta1/operations). |
| 291 | Poll the `Operation` to track the provisioning process by calling |
| 292 | GetOperation until |
| 293 | [`done`](../../v1beta1/operations#Operation.FIELDS.done) is `true`. When |
| 294 | `done` is `true`, the `Operation` has either succeeded or failed. If the |
| 295 | `Operation` succeeded, its |
| 296 | [`response`](../../v1beta1/operations#Operation.FIELDS.response) is set to |
| 297 | an AnalyticsDetails; if the `Operation` failed, its |
| 298 | [`error`](../../v1beta1/operations#Operation.FIELDS.error) is set to a |
| 299 | google.rpc.Status. |
| 300 | <br> |
| 301 | <br>To call `AddGoogleAnalytics`, a member must be an Owner for |
| 302 | the existing `FirebaseProject` and have the |
| 303 | [`Edit` permission](https://support.google.com/analytics/answer/2884495) |
| 304 | for the Google Analytics account. |
| 305 | <br> |
| 306 | <br>If a `FirebaseProject` already has Google Analytics enabled, and you |
| 307 | call `AddGoogleAnalytics` using an `analyticsPropertyId` that's different |
| 308 | from the currently associated property, then the call will fail. Analytics |
| 309 | may have already been enabled in the Firebase console or by specifying |
| 310 | `timeZone` and `regionCode` in the call to |
| 311 | [`AddFirebase`](../../v1beta1/projects/addFirebase). |
| 312 | |
| 313 | Args: |
| 314 | parent: string, The parent `FirebaseProject` to link to an existing Google Analytics |
| 315 | account, in the format: |
| 316 | <br><code>projects/<var>projectId</var></code> (required) |
| 317 | body: object, The request body. |
| 318 | The object takes the form of: |
| 319 | |
| 320 | { |
| 321 | "analyticsPropertyId": "A String", # The ID for the existing Google Analytics property that you want to |
| 322 | # associate with your `FirebaseProject`. |
| 323 | "analyticsAccountId": "A String", # The ID for the existing |
| 324 | # [Google Analytics account](http://www.google.com/analytics/) that you |
| 325 | # want to link with your `FirebaseProject`. |
| 326 | # <br> |
| 327 | # <br>Specifying this field will provision a new Google Analytics |
| 328 | # property in your Google Analytics account and associate the new property |
| 329 | # with your `FirebaseProject`. |
| 330 | } |
| 331 | |
| 332 | x__xgafv: string, V1 error format. |
| 333 | Allowed values |
| 334 | 1 - v1 error format |
| 335 | 2 - v2 error format |
| 336 | |
| 337 | Returns: |
| 338 | An object of the form: |
| 339 | |
| 340 | { # This resource represents a long-running operation that is the result of a |
| 341 | # network API call. |
| 342 | "done": True or False, # If the value is `false`, it means the operation is still in progress. |
| 343 | # If `true`, the operation is completed, and either `error` or `response` is |
| 344 | # available. |
| 345 | "response": { # The normal response of the operation in case of success. If the original |
| 346 | # method returns no data on success, such as `Delete`, the response is |
| 347 | # `google.protobuf.Empty`. If the original method is standard |
| 348 | # `Get`/`Create`/`Update`, the response should be the resource. For other |
| 349 | # methods, the response should have the type `XxxResponse`, where `Xxx` |
| 350 | # is the original method name. For example, if the original method name |
| 351 | # is `TakeSnapshot()`, the inferred response type is |
| 352 | # `TakeSnapshotResponse`. |
| 353 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 354 | }, |
| 355 | "name": "A String", # The server-assigned name, which is only unique within the same service that |
| 356 | # originally returns it. If you use the default HTTP mapping, the |
| 357 | # `name` should be a resource name ending with `operations/{unique_id}`. |
| 358 | "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. |
| 359 | # different programming environments, including REST APIs and RPC APIs. It is |
| 360 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 361 | # three pieces of data: error code, error message, and error details. |
| 362 | # |
| 363 | # You can find out more about this error model and how to work with it in the |
| 364 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
| 365 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 366 | # user-facing error message should be localized and sent in the |
| 367 | # google.rpc.Status.details field, or localized by the client. |
| 368 | "details": [ # A list of messages that carry the error details. There is a common set of |
| 369 | # message types for APIs to use. |
| 370 | { |
| 371 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 372 | }, |
| 373 | ], |
| 374 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 375 | }, |
| 376 | "metadata": { # Service-specific metadata associated with the operation. It typically |
| 377 | # contains progress information and common metadata such as create time. |
| 378 | # Some services might not provide such metadata. Any method that returns a |
| 379 | # long-running operation should document the metadata type, if any. |
| 380 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 381 | }, |
| 382 | }</pre> |
| 383 | </div> |
| 384 | |
| 385 | <div class="method"> |
| 386 | <code class="details" id="get">get(name, x__xgafv=None)</code> |
| 387 | <pre>Gets the FirebaseProject identified by the specified resource name. |
| 388 | |
| 389 | Args: |
| 390 | name: string, The fully qualified resource name of the Project, in the format: |
| 391 | <br><code>projects/<var>projectId</var></code> (required) |
| 392 | x__xgafv: string, V1 error format. |
| 393 | Allowed values |
| 394 | 1 - v1 error format |
| 395 | 2 - v2 error format |
| 396 | |
| 397 | Returns: |
| 398 | An object of the form: |
| 399 | |
| 400 | { # A `FirebaseProject` is the top-level Firebase entity. It is the container for |
| 401 | # Firebase Apps, Firebase Hosting sites, storage systems (Firebase Realtime |
| 402 | # Database, Cloud Firestore, Cloud Storage buckets) and other Firebase and |
| 403 | # Google Cloud Platform (GCP) resources. |
| 404 | # <br> |
| 405 | # <br>You can create a new `FirebaseProject` in the |
| 406 | # [Firebase console](https://console.firebase.google.com/), |
| 407 | # or you can add Firebase resources to an existing |
| 408 | # [GCP |
| 409 | # `Project`](https://cloud.google.com/resource-manager/reference/rest/v1/projects) |
| 410 | # by calling |
| 411 | # AddFirebase. |
| 412 | # <br> |
| 413 | # <br>A `FirebaseProject` is actually also a GCP `Project`, so a |
| 414 | # `FirebaseProject` uses underlying GCP identifiers (most importantly, |
| 415 | # `projectId`) as its own for easy interop with GCP APIs. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 416 | "resources": { # The default resources associated with a `FirebaseProject`. # The default Firebase resources associated with the Project. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 417 | "storageBucket": "A String", # The default Cloud Storage for Firebase storage bucket, in the format: |
| 418 | # <br><code><var>projectId</var>.appspot.com</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 419 | "realtimeDatabaseInstance": "A String", # The default Firebase Realtime Database instance name, in the format: |
| 420 | # <br><code><var>projectId</var></code> |
| 421 | # <br>Though rare, your `projectId` might already be used as the name for an |
| 422 | # existing Realtime Database instance in another project (learn more about |
| 423 | # [database |
| 424 | # sharding](https://firebase.google.com/docs/database/usage/sharding)). In |
| 425 | # these cases, your `projectId` is appended with a hyphen then five |
| 426 | # alphanumeric characters to create your default Realtime Database instance |
| 427 | # name. For example, if your `projectId` is `myproject123`, your default |
| 428 | # database instance name might be: |
| 429 | # <br><code>myproject123-a5c16</code> |
| 430 | "locationId": "A String", # The ID of the project's default GCP resource location. The location is one |
| 431 | # of the available |
| 432 | # [GCP resource |
| 433 | # locations](https://firebase.google.com/docs/projects/locations). <br> |
| 434 | # <br>This field is omitted if the default GCP resource location has not been |
| 435 | # finalized yet. To set your project's default GCP resource location, |
| 436 | # call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) |
| 437 | # after you add Firebase services to your project. |
| 438 | "hostingSite": "A String", # The default Firebase Hosting site name, in the format: |
| 439 | # <br><code><var>projectId</var></code> |
| 440 | # <br>Though rare, your `projectId` might already be used as the name for an |
| 441 | # existing Hosting site in another project (learn more about creating |
| 442 | # non-default, |
| 443 | # [additional sites](https://firebase.google.com/docs/hosting/multisites)). |
| 444 | # In these cases, your `projectId` is appended with a hyphen then five |
| 445 | # alphanumeric characters to create your default Hosting site name. For |
| 446 | # example, if your `projectId` is `myproject123`, your default Hosting site |
| 447 | # name might be: |
| 448 | # <br><code>myproject123-a5c16</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 449 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 450 | "name": "A String", # The fully qualified resource name of the Project, in the format: |
| 451 | # <br><code>projects/<var>projectId</var></code> |
| 452 | "displayName": "A String", # The user-assigned display name of the Project. |
| 453 | "projectId": "A String", # Immutable. The globally unique, user-assigned ID of the Project. |
| 454 | "projectNumber": "A String", # The globally unique, Google-assigned identifier of the Project. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 455 | }</pre> |
| 456 | </div> |
| 457 | |
| 458 | <div class="method"> |
| 459 | <code class="details" id="getAdminSdkConfig">getAdminSdkConfig(name, x__xgafv=None)</code> |
| 460 | <pre>Gets the configuration artifact used by servers to simplify initialization. |
| 461 | <br> |
| 462 | <br>Typically, this configuration is used with the Firebase Admin SDK |
| 463 | [initializeApp](https://firebase.google.com/docs/admin/setup#initialize_the_sdk) |
| 464 | command. |
| 465 | |
| 466 | Args: |
| 467 | name: string, The fully qualified resource name of the Project, in the format: |
| 468 | <br><code>projects/<var>projectId</var>/adminSdkConfig</code> (required) |
| 469 | x__xgafv: string, V1 error format. |
| 470 | Allowed values |
| 471 | 1 - v1 error format |
| 472 | 2 - v2 error format |
| 473 | |
| 474 | Returns: |
| 475 | An object of the form: |
| 476 | |
| 477 | { |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 478 | "storageBucket": "A String", # The default Cloud Storage for Firebase storage bucket name. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 479 | "locationId": "A String", # The ID of the project's default GCP resource location. The location is one |
| 480 | # of the available |
| 481 | # [GCP resource |
| 482 | # locations](https://firebase.google.com/docs/projects/locations). <br> |
| 483 | # <br>This field is omitted if the default GCP resource location has not been |
| 484 | # finalized yet. To set your project's default GCP resource location, |
| 485 | # call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) |
| 486 | # after you add Firebase services to your project. |
| 487 | "projectId": "A String", # Immutable. The globally unique, user-assigned project ID of the parent |
| 488 | # Project. |
| 489 | "databaseURL": "A String", # The default Firebase Realtime Database URL. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 490 | }</pre> |
| 491 | </div> |
| 492 | |
| 493 | <div class="method"> |
| 494 | <code class="details" id="getAnalyticsDetails">getAnalyticsDetails(name, x__xgafv=None)</code> |
| 495 | <pre>Gets the Google Analytics details currently associated with a |
| 496 | FirebaseProject. |
| 497 | <br> |
| 498 | <br>If the `FirebaseProject` is not yet linked to Google Analytics, then |
| 499 | the response to `GetAnalyticsDetails` is NOT_FOUND. |
| 500 | |
| 501 | Args: |
| 502 | name: string, The fully qualified resource name, in the format: |
| 503 | <br><code>projects/<var>projectId</var>/analyticsDetails</code> (required) |
| 504 | x__xgafv: string, V1 error format. |
| 505 | Allowed values |
| 506 | 1 - v1 error format |
| 507 | 2 - v2 error format |
| 508 | |
| 509 | Returns: |
| 510 | An object of the form: |
| 511 | |
| 512 | { |
| 513 | "analyticsProperty": { # Details of a Google Analytics property # The Analytics Property object associated with the specified |
| 514 | # `FirebaseProject`. |
| 515 | # <br> |
| 516 | # <br>This object contains the details of the Google Analytics property |
| 517 | # associated with the specified `FirebaseProject`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 518 | "id": "A String", # The globally unique, Google-assigned identifier of the Google Analytics |
| 519 | # property associated with the specified `FirebaseProject`. |
| 520 | # <br> |
| 521 | # <br>If you called |
| 522 | # [`AddGoogleAnalytics`](../../v1beta1/projects/addGoogleAnalytics) to link |
| 523 | # your `FirebaseProject` with a Google Analytics account, the value in this |
| 524 | # `id` field is the same as the ID of the property either specified or |
| 525 | # provisioned with that call to `AddGoogleAnalytics`. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 526 | "displayName": "A String", # The display name of the Google Analytics property associated with the |
| 527 | # specified `FirebaseProject`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 528 | }, |
| 529 | "streamMappings": [ # For Android Apps and iOS Apps: A map of `app` to `streamId` for each |
| 530 | # Firebase App in the specified `FirebaseProject`. Each `app` and |
| 531 | # `streamId` appears only once.<br> |
| 532 | # <br> |
| 533 | # For Web Apps: A map of `app` to `streamId` and `measurementId` for each |
| 534 | # Firebase App in the specified `FirebaseProject`. Each `app`, `streamId`, |
| 535 | # and `measurementId` appears only once. |
| 536 | { # A mapping of a Firebase App to a Google Analytics data stream |
| 537 | "streamId": "A String", # The unique Google-assigned identifier of the Google Analytics data stream |
| 538 | # associated with the Firebase App. |
| 539 | # <br> |
| 540 | # <br>Learn more about Google Analytics data streams in the |
| 541 | # [Analytics |
| 542 | # documentation](https://support.google.com/analytics/answer/9303323). |
| 543 | "app": "A String", # The fully qualified resource name of the Firebase App associated with the |
| 544 | # Google Analytics data stream, in the format: |
| 545 | # <br><code>projects/<var>projectId</var>/androidApps/<var>appId</var></code> |
| 546 | # or |
| 547 | # <code>projects/<var>projectId</var>/iosApps/<var>appId</var></code> |
| 548 | # or |
| 549 | # <code>projects/<var>projectId</var>/webApps/<var>appId</var></code> |
| 550 | "measurementId": "A String", # Applicable for Firebase Web Apps only.<br> |
| 551 | # <br>The unique Google-assigned identifier of the Google Analytics web |
| 552 | # stream associated with the Firebase Web App. Firebase SDKs use this ID to |
| 553 | # interact with Google Analytics APIs. |
| 554 | # <br> |
| 555 | # <br>Learn more about this ID and Google Analytics web streams in the |
| 556 | # [Analytics |
| 557 | # documentation](https://support.google.com/analytics/topic/9303475). |
| 558 | }, |
| 559 | ], |
| 560 | }</pre> |
| 561 | </div> |
| 562 | |
| 563 | <div class="method"> |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 564 | <code class="details" id="list">list(pageToken=None, pageSize=None, x__xgafv=None)</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 565 | <pre>Lists each FirebaseProject accessible to the caller. |
| 566 | <br> |
| 567 | <br>The elements are returned in no particular order, but they will be a |
| 568 | consistent view of the Projects when additional requests are made with a |
| 569 | `pageToken`. |
| 570 | <br> |
| 571 | <br>This method is eventually consistent with Project mutations, which |
| 572 | means newly provisioned Projects and recent modifications to existing |
| 573 | Projects might not be reflected in the set of Projects. The list will |
| 574 | include only ACTIVE Projects. |
| 575 | <br> |
| 576 | <br>Use |
| 577 | GetFirebaseProject |
| 578 | for consistent reads as well as for additional Project details. |
| 579 | |
| 580 | Args: |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 581 | pageToken: string, Token returned from a previous call to `ListFirebaseProjects` indicating |
| 582 | where in the set of Projects to resume listing. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 583 | pageSize: integer, The maximum number of Projects to return in the response. |
| 584 | <br> |
| 585 | <br>The server may return fewer than this at its discretion. |
| 586 | If no value is specified (or too large a value is specified), the server |
| 587 | will impose its own limit. |
| 588 | <br> |
| 589 | <br>This value cannot be negative. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 590 | x__xgafv: string, V1 error format. |
| 591 | Allowed values |
| 592 | 1 - v1 error format |
| 593 | 2 - v2 error format |
| 594 | |
| 595 | Returns: |
| 596 | An object of the form: |
| 597 | |
| 598 | { |
| 599 | "nextPageToken": "A String", # If the result list is too large to fit in a single response, then a token |
| 600 | # is returned. If the string is empty, then this response is the last page of |
| 601 | # results. |
| 602 | # <br> |
| 603 | # <br>This token can be used in a subsequent calls to `ListFirebaseProjects` |
| 604 | # to find the next group of Projects. |
| 605 | # <br> |
| 606 | # <br>Page tokens are short-lived and should not be persisted. |
| 607 | "results": [ # One page of the list of Projects that are accessible to the caller. |
| 608 | { # A `FirebaseProject` is the top-level Firebase entity. It is the container for |
| 609 | # Firebase Apps, Firebase Hosting sites, storage systems (Firebase Realtime |
| 610 | # Database, Cloud Firestore, Cloud Storage buckets) and other Firebase and |
| 611 | # Google Cloud Platform (GCP) resources. |
| 612 | # <br> |
| 613 | # <br>You can create a new `FirebaseProject` in the |
| 614 | # [Firebase console](https://console.firebase.google.com/), |
| 615 | # or you can add Firebase resources to an existing |
| 616 | # [GCP |
| 617 | # `Project`](https://cloud.google.com/resource-manager/reference/rest/v1/projects) |
| 618 | # by calling |
| 619 | # AddFirebase. |
| 620 | # <br> |
| 621 | # <br>A `FirebaseProject` is actually also a GCP `Project`, so a |
| 622 | # `FirebaseProject` uses underlying GCP identifiers (most importantly, |
| 623 | # `projectId`) as its own for easy interop with GCP APIs. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 624 | "resources": { # The default resources associated with a `FirebaseProject`. # The default Firebase resources associated with the Project. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 625 | "storageBucket": "A String", # The default Cloud Storage for Firebase storage bucket, in the format: |
| 626 | # <br><code><var>projectId</var>.appspot.com</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 627 | "realtimeDatabaseInstance": "A String", # The default Firebase Realtime Database instance name, in the format: |
| 628 | # <br><code><var>projectId</var></code> |
| 629 | # <br>Though rare, your `projectId` might already be used as the name for an |
| 630 | # existing Realtime Database instance in another project (learn more about |
| 631 | # [database |
| 632 | # sharding](https://firebase.google.com/docs/database/usage/sharding)). In |
| 633 | # these cases, your `projectId` is appended with a hyphen then five |
| 634 | # alphanumeric characters to create your default Realtime Database instance |
| 635 | # name. For example, if your `projectId` is `myproject123`, your default |
| 636 | # database instance name might be: |
| 637 | # <br><code>myproject123-a5c16</code> |
| 638 | "locationId": "A String", # The ID of the project's default GCP resource location. The location is one |
| 639 | # of the available |
| 640 | # [GCP resource |
| 641 | # locations](https://firebase.google.com/docs/projects/locations). <br> |
| 642 | # <br>This field is omitted if the default GCP resource location has not been |
| 643 | # finalized yet. To set your project's default GCP resource location, |
| 644 | # call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) |
| 645 | # after you add Firebase services to your project. |
| 646 | "hostingSite": "A String", # The default Firebase Hosting site name, in the format: |
| 647 | # <br><code><var>projectId</var></code> |
| 648 | # <br>Though rare, your `projectId` might already be used as the name for an |
| 649 | # existing Hosting site in another project (learn more about creating |
| 650 | # non-default, |
| 651 | # [additional sites](https://firebase.google.com/docs/hosting/multisites)). |
| 652 | # In these cases, your `projectId` is appended with a hyphen then five |
| 653 | # alphanumeric characters to create your default Hosting site name. For |
| 654 | # example, if your `projectId` is `myproject123`, your default Hosting site |
| 655 | # name might be: |
| 656 | # <br><code>myproject123-a5c16</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 657 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 658 | "name": "A String", # The fully qualified resource name of the Project, in the format: |
| 659 | # <br><code>projects/<var>projectId</var></code> |
| 660 | "displayName": "A String", # The user-assigned display name of the Project. |
| 661 | "projectId": "A String", # Immutable. The globally unique, user-assigned ID of the Project. |
| 662 | "projectNumber": "A String", # The globally unique, Google-assigned identifier of the Project. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 663 | }, |
| 664 | ], |
| 665 | }</pre> |
| 666 | </div> |
| 667 | |
| 668 | <div class="method"> |
| 669 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 670 | <pre>Retrieves the next page of results. |
| 671 | |
| 672 | Args: |
| 673 | previous_request: The request for the previous page. (required) |
| 674 | previous_response: The response from the request for the previous page. (required) |
| 675 | |
| 676 | Returns: |
| 677 | A request object that you can call 'execute()' on to request the next |
| 678 | page. Returns None if there are no more items in the collection. |
| 679 | </pre> |
| 680 | </div> |
| 681 | |
| 682 | <div class="method"> |
| 683 | <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> |
| 684 | <pre>Updates the attributes of the FirebaseProject identified by the |
| 685 | specified resource name. |
| 686 | <br> |
| 687 | <br>All [query parameters](#query-parameters) are required. |
| 688 | |
| 689 | Args: |
| 690 | name: string, The fully qualified resource name of the Project, in the format: |
| 691 | <br><code>projects/<var>projectId</var></code> (required) |
| 692 | body: object, The request body. |
| 693 | The object takes the form of: |
| 694 | |
| 695 | { # A `FirebaseProject` is the top-level Firebase entity. It is the container for |
| 696 | # Firebase Apps, Firebase Hosting sites, storage systems (Firebase Realtime |
| 697 | # Database, Cloud Firestore, Cloud Storage buckets) and other Firebase and |
| 698 | # Google Cloud Platform (GCP) resources. |
| 699 | # <br> |
| 700 | # <br>You can create a new `FirebaseProject` in the |
| 701 | # [Firebase console](https://console.firebase.google.com/), |
| 702 | # or you can add Firebase resources to an existing |
| 703 | # [GCP |
| 704 | # `Project`](https://cloud.google.com/resource-manager/reference/rest/v1/projects) |
| 705 | # by calling |
| 706 | # AddFirebase. |
| 707 | # <br> |
| 708 | # <br>A `FirebaseProject` is actually also a GCP `Project`, so a |
| 709 | # `FirebaseProject` uses underlying GCP identifiers (most importantly, |
| 710 | # `projectId`) as its own for easy interop with GCP APIs. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 711 | "resources": { # The default resources associated with a `FirebaseProject`. # The default Firebase resources associated with the Project. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 712 | "storageBucket": "A String", # The default Cloud Storage for Firebase storage bucket, in the format: |
| 713 | # <br><code><var>projectId</var>.appspot.com</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 714 | "realtimeDatabaseInstance": "A String", # The default Firebase Realtime Database instance name, in the format: |
| 715 | # <br><code><var>projectId</var></code> |
| 716 | # <br>Though rare, your `projectId` might already be used as the name for an |
| 717 | # existing Realtime Database instance in another project (learn more about |
| 718 | # [database |
| 719 | # sharding](https://firebase.google.com/docs/database/usage/sharding)). In |
| 720 | # these cases, your `projectId` is appended with a hyphen then five |
| 721 | # alphanumeric characters to create your default Realtime Database instance |
| 722 | # name. For example, if your `projectId` is `myproject123`, your default |
| 723 | # database instance name might be: |
| 724 | # <br><code>myproject123-a5c16</code> |
| 725 | "locationId": "A String", # The ID of the project's default GCP resource location. The location is one |
| 726 | # of the available |
| 727 | # [GCP resource |
| 728 | # locations](https://firebase.google.com/docs/projects/locations). <br> |
| 729 | # <br>This field is omitted if the default GCP resource location has not been |
| 730 | # finalized yet. To set your project's default GCP resource location, |
| 731 | # call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) |
| 732 | # after you add Firebase services to your project. |
| 733 | "hostingSite": "A String", # The default Firebase Hosting site name, in the format: |
| 734 | # <br><code><var>projectId</var></code> |
| 735 | # <br>Though rare, your `projectId` might already be used as the name for an |
| 736 | # existing Hosting site in another project (learn more about creating |
| 737 | # non-default, |
| 738 | # [additional sites](https://firebase.google.com/docs/hosting/multisites)). |
| 739 | # In these cases, your `projectId` is appended with a hyphen then five |
| 740 | # alphanumeric characters to create your default Hosting site name. For |
| 741 | # example, if your `projectId` is `myproject123`, your default Hosting site |
| 742 | # name might be: |
| 743 | # <br><code>myproject123-a5c16</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 744 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 745 | "name": "A String", # The fully qualified resource name of the Project, in the format: |
| 746 | # <br><code>projects/<var>projectId</var></code> |
| 747 | "displayName": "A String", # The user-assigned display name of the Project. |
| 748 | "projectId": "A String", # Immutable. The globally unique, user-assigned ID of the Project. |
| 749 | "projectNumber": "A String", # The globally unique, Google-assigned identifier of the Project. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 750 | } |
| 751 | |
| 752 | updateMask: string, Specifies which fields to update. |
| 753 | <br> |
| 754 | <br>If this list is empty, then no state will be updated. |
| 755 | <br>Note that the fields `name`, `project_id`, and `project_number` are all |
| 756 | immutable. |
| 757 | x__xgafv: string, V1 error format. |
| 758 | Allowed values |
| 759 | 1 - v1 error format |
| 760 | 2 - v2 error format |
| 761 | |
| 762 | Returns: |
| 763 | An object of the form: |
| 764 | |
| 765 | { # A `FirebaseProject` is the top-level Firebase entity. It is the container for |
| 766 | # Firebase Apps, Firebase Hosting sites, storage systems (Firebase Realtime |
| 767 | # Database, Cloud Firestore, Cloud Storage buckets) and other Firebase and |
| 768 | # Google Cloud Platform (GCP) resources. |
| 769 | # <br> |
| 770 | # <br>You can create a new `FirebaseProject` in the |
| 771 | # [Firebase console](https://console.firebase.google.com/), |
| 772 | # or you can add Firebase resources to an existing |
| 773 | # [GCP |
| 774 | # `Project`](https://cloud.google.com/resource-manager/reference/rest/v1/projects) |
| 775 | # by calling |
| 776 | # AddFirebase. |
| 777 | # <br> |
| 778 | # <br>A `FirebaseProject` is actually also a GCP `Project`, so a |
| 779 | # `FirebaseProject` uses underlying GCP identifiers (most importantly, |
| 780 | # `projectId`) as its own for easy interop with GCP APIs. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 781 | "resources": { # The default resources associated with a `FirebaseProject`. # The default Firebase resources associated with the Project. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 782 | "storageBucket": "A String", # The default Cloud Storage for Firebase storage bucket, in the format: |
| 783 | # <br><code><var>projectId</var>.appspot.com</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 784 | "realtimeDatabaseInstance": "A String", # The default Firebase Realtime Database instance name, in the format: |
| 785 | # <br><code><var>projectId</var></code> |
| 786 | # <br>Though rare, your `projectId` might already be used as the name for an |
| 787 | # existing Realtime Database instance in another project (learn more about |
| 788 | # [database |
| 789 | # sharding](https://firebase.google.com/docs/database/usage/sharding)). In |
| 790 | # these cases, your `projectId` is appended with a hyphen then five |
| 791 | # alphanumeric characters to create your default Realtime Database instance |
| 792 | # name. For example, if your `projectId` is `myproject123`, your default |
| 793 | # database instance name might be: |
| 794 | # <br><code>myproject123-a5c16</code> |
| 795 | "locationId": "A String", # The ID of the project's default GCP resource location. The location is one |
| 796 | # of the available |
| 797 | # [GCP resource |
| 798 | # locations](https://firebase.google.com/docs/projects/locations). <br> |
| 799 | # <br>This field is omitted if the default GCP resource location has not been |
| 800 | # finalized yet. To set your project's default GCP resource location, |
| 801 | # call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) |
| 802 | # after you add Firebase services to your project. |
| 803 | "hostingSite": "A String", # The default Firebase Hosting site name, in the format: |
| 804 | # <br><code><var>projectId</var></code> |
| 805 | # <br>Though rare, your `projectId` might already be used as the name for an |
| 806 | # existing Hosting site in another project (learn more about creating |
| 807 | # non-default, |
| 808 | # [additional sites](https://firebase.google.com/docs/hosting/multisites)). |
| 809 | # In these cases, your `projectId` is appended with a hyphen then five |
| 810 | # alphanumeric characters to create your default Hosting site name. For |
| 811 | # example, if your `projectId` is `myproject123`, your default Hosting site |
| 812 | # name might be: |
| 813 | # <br><code>myproject123-a5c16</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 814 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 815 | "name": "A String", # The fully qualified resource name of the Project, in the format: |
| 816 | # <br><code>projects/<var>projectId</var></code> |
| 817 | "displayName": "A String", # The user-assigned display name of the Project. |
| 818 | "projectId": "A String", # Immutable. The globally unique, user-assigned ID of the Project. |
| 819 | "projectNumber": "A String", # The globally unique, Google-assigned identifier of the Project. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 820 | }</pre> |
| 821 | </div> |
| 822 | |
| 823 | <div class="method"> |
| 824 | <code class="details" id="removeAnalytics">removeAnalytics(parent, body=None, x__xgafv=None)</code> |
| 825 | <pre>Unlinks the specified `FirebaseProject` from its Google Analytics account. |
| 826 | <br> |
| 827 | <br>This call removes the association of the specified `FirebaseProject` |
| 828 | with its current Google Analytics property. However, this call does not |
| 829 | delete the Google Analytics resources, such as the Google Analytics |
| 830 | property or any data streams. |
| 831 | <br> |
| 832 | <br>These resources may be re-associated later to the `FirebaseProject` by |
| 833 | calling |
| 834 | [`AddGoogleAnalytics`](../../v1beta1/projects/addGoogleAnalytics) and |
| 835 | specifying the same `analyticsPropertyId`. For Android Apps and iOS Apps, |
| 836 | this call re-links data streams with their corresponding apps. However, |
| 837 | for Web Apps, this call provisions a <em>new</em> data stream for each Web |
| 838 | App. |
| 839 | <br> |
| 840 | <br>To call `RemoveAnalytics`, a member must be an Owner for |
| 841 | the `FirebaseProject`. |
| 842 | |
| 843 | Args: |
| 844 | parent: string, The parent `FirebaseProject` to unlink from its Google Analytics account, |
| 845 | in the format: |
| 846 | <br><code>projects/<var>projectId</var></code> (required) |
| 847 | body: object, The request body. |
| 848 | The object takes the form of: |
| 849 | |
| 850 | { |
| 851 | "analyticsPropertyId": "A String", # Optional. The ID of the Google Analytics property associated with the |
| 852 | # specified `FirebaseProject`. |
| 853 | # <ul> |
| 854 | # <li>If not set, then the Google Analytics property that is currently |
| 855 | # associated with the specified `FirebaseProject` is removed.</li> |
| 856 | # <li>If set, and the specified `FirebaseProject` is currently associated |
| 857 | # with a <em>different</em> Google Analytics property, then the response is a |
| 858 | # `412 Precondition Failed` error.</li> |
| 859 | # </ul> |
| 860 | } |
| 861 | |
| 862 | x__xgafv: string, V1 error format. |
| 863 | Allowed values |
| 864 | 1 - v1 error format |
| 865 | 2 - v2 error format |
| 866 | |
| 867 | Returns: |
| 868 | An object of the form: |
| 869 | |
| 870 | { # A generic empty message that you can re-use to avoid defining duplicated |
| 871 | # empty messages in your APIs. A typical example is to use it as the request |
| 872 | # or the response type of an API method. For instance: |
| 873 | # |
| 874 | # service Foo { |
| 875 | # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 876 | # } |
| 877 | # |
| 878 | # The JSON representation for `Empty` is empty JSON object `{}`. |
| 879 | }</pre> |
| 880 | </div> |
| 881 | |
| 882 | <div class="method"> |
| 883 | <code class="details" id="searchApps">searchApps(parent, pageToken=None, pageSize=None, x__xgafv=None)</code> |
| 884 | <pre>A convenience method that lists all available Apps for the specified |
| 885 | FirebaseProject. |
| 886 | <br> |
| 887 | <br>Typically, interaction with an App should be done using the |
| 888 | platform-specific service, but some tool use-cases require a summary of all |
| 889 | known Apps (such as for App selector interfaces). |
| 890 | |
| 891 | Args: |
| 892 | parent: string, The parent Project for which to list Apps, in the format: |
| 893 | <br><code>projects/<var>projectId</var></code> (required) |
| 894 | pageToken: string, Token returned from a previous call to `SearchFirebaseApps` indicating |
| 895 | where in the set of Apps to resume listing. |
| 896 | pageSize: integer, The maximum number of Apps to return in the response. |
| 897 | <br> |
| 898 | <br>The server may return fewer than this value at its discretion. |
| 899 | If no value is specified (or too large a value is specified), then the |
| 900 | server will impose its own limit. |
| 901 | <br> |
| 902 | <br>This value cannot be negative. |
| 903 | x__xgafv: string, V1 error format. |
| 904 | Allowed values |
| 905 | 1 - v1 error format |
| 906 | 2 - v2 error format |
| 907 | |
| 908 | Returns: |
| 909 | An object of the form: |
| 910 | |
| 911 | { |
| 912 | "apps": [ # One page of results from a call to `SearchFirebaseApps`. |
| 913 | { # A high-level summary of an App. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 914 | "appId": "A String", # Immutable. The globally unique, Firebase-assigned identifier of the App. |
| 915 | # <br> |
| 916 | # <br>This identifier should be treated as an opaque token, as the data |
| 917 | # format is not specified. |
| 918 | "platform": "A String", # The platform of the Firebase App. |
| 919 | "name": "A String", # The fully qualified resource name of the Firebase App, in the format: |
| 920 | # <br><code>projects/<var>projectId</var>/iosApps/<var>appId</var></code> |
| 921 | # or <br><code>projects/<var>projectId</var>/androidApps/<var>appId</var> |
| 922 | # </code> |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 923 | "displayName": "A String", # The user-assigned display name of the Firebase App. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 924 | }, |
| 925 | ], |
| 926 | "nextPageToken": "A String", # If the result list is too large to fit in a single response, then a token |
| 927 | # is returned. |
| 928 | # <br> |
| 929 | # <br>This token can be used in a subsequent calls to `SearchFirebaseApps` |
| 930 | # to find the next group of Apps. |
| 931 | # <br>If the string is empty, then this response is the last page of results. |
| 932 | # <br>Page tokens are short-lived and should not be persisted. |
| 933 | }</pre> |
| 934 | </div> |
| 935 | |
| 936 | <div class="method"> |
| 937 | <code class="details" id="searchApps_next">searchApps_next(previous_request, previous_response)</code> |
| 938 | <pre>Retrieves the next page of results. |
| 939 | |
| 940 | Args: |
| 941 | previous_request: The request for the previous page. (required) |
| 942 | previous_response: The response from the request for the previous page. (required) |
| 943 | |
| 944 | Returns: |
| 945 | A request object that you can call 'execute()' on to request the next |
| 946 | page. Returns None if there are no more items in the collection. |
| 947 | </pre> |
| 948 | </div> |
| 949 | |
| 950 | </body></html> |