@maxim_mazurok/gapi.client.firebase-v1beta1 0.0.20220813 → 0.0.20220819
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +213 -1
- package/package.json +1 -1
- package/tests.ts +23 -1
package/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
11
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
12
|
// Generated from: https://firebase.googleapis.com/$discovery/rest?version=v1beta1
|
|
13
|
-
// Revision:
|
|
13
|
+
// Revision: 20220819
|
|
14
14
|
|
|
15
15
|
/// <reference types="gapi.client" />
|
|
16
16
|
|
|
@@ -458,6 +458,24 @@ declare namespace gapi.client {
|
|
|
458
458
|
*/
|
|
459
459
|
streamId?: string;
|
|
460
460
|
}
|
|
461
|
+
interface UndeleteAndroidAppRequest {
|
|
462
|
+
/** Checksum provided in the AndroidApp entity, which if provided ensures the client has an up-to-date value before proceeding. */
|
|
463
|
+
etag?: string;
|
|
464
|
+
/** If set to true, only validate the request and do not undelete the app. */
|
|
465
|
+
validateOnly?: boolean;
|
|
466
|
+
}
|
|
467
|
+
interface UndeleteIosAppRequest {
|
|
468
|
+
/** Checksum provided in the IosApp entity, which if provided ensures the client has an up-to-date value before proceeding. */
|
|
469
|
+
etag?: string;
|
|
470
|
+
/** If set to true, only validate the request and do not undelete the app. */
|
|
471
|
+
validateOnly?: boolean;
|
|
472
|
+
}
|
|
473
|
+
interface UndeleteWebAppRequest {
|
|
474
|
+
/** Checksum provided in the WebApp entity, which if provided ensures the client has an up-to-date value before proceeding. */
|
|
475
|
+
etag?: string;
|
|
476
|
+
/** If set to true, only validate the request and do not undelete the app. */
|
|
477
|
+
validateOnly?: boolean;
|
|
478
|
+
}
|
|
461
479
|
interface WebApp {
|
|
462
480
|
/**
|
|
463
481
|
* The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the `WebApp`. Be aware that this value is the UID of the API key, _not_ the
|
|
@@ -1028,6 +1046,70 @@ declare namespace gapi.client {
|
|
|
1028
1046
|
uploadType?: string;
|
|
1029
1047
|
},
|
|
1030
1048
|
body: RemoveAndroidAppRequest): Request<Operation>;
|
|
1049
|
+
/** Restores the specified AndroidApp to the project. */
|
|
1050
|
+
undelete(request: {
|
|
1051
|
+
/** V1 error format. */
|
|
1052
|
+
"$.xgafv"?: string;
|
|
1053
|
+
/** OAuth access token. */
|
|
1054
|
+
access_token?: string;
|
|
1055
|
+
/** Data format for response. */
|
|
1056
|
+
alt?: string;
|
|
1057
|
+
/** JSONP */
|
|
1058
|
+
callback?: string;
|
|
1059
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1060
|
+
fields?: string;
|
|
1061
|
+
/** 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. */
|
|
1062
|
+
key?: string;
|
|
1063
|
+
/**
|
|
1064
|
+
* Required. The resource name of the AndroidApp, in the format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from
|
|
1065
|
+
* Sub-Collection access pattern may be used here, in the format: projects/-/androidApps/APP_ID Refer to the AndroidApp [name](../projects.androidApps#AndroidApp.FIELDS.name) field
|
|
1066
|
+
* for details about PROJECT_IDENTIFIER and APP_ID values.
|
|
1067
|
+
*/
|
|
1068
|
+
name: string;
|
|
1069
|
+
/** OAuth 2.0 token for the current user. */
|
|
1070
|
+
oauth_token?: string;
|
|
1071
|
+
/** Returns response with indentations and line breaks. */
|
|
1072
|
+
prettyPrint?: boolean;
|
|
1073
|
+
/** 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. */
|
|
1074
|
+
quotaUser?: string;
|
|
1075
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1076
|
+
upload_protocol?: string;
|
|
1077
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1078
|
+
uploadType?: string;
|
|
1079
|
+
/** Request body */
|
|
1080
|
+
resource: UndeleteAndroidAppRequest;
|
|
1081
|
+
}): Request<Operation>;
|
|
1082
|
+
undelete(request: {
|
|
1083
|
+
/** V1 error format. */
|
|
1084
|
+
"$.xgafv"?: string;
|
|
1085
|
+
/** OAuth access token. */
|
|
1086
|
+
access_token?: string;
|
|
1087
|
+
/** Data format for response. */
|
|
1088
|
+
alt?: string;
|
|
1089
|
+
/** JSONP */
|
|
1090
|
+
callback?: string;
|
|
1091
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1092
|
+
fields?: string;
|
|
1093
|
+
/** 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. */
|
|
1094
|
+
key?: string;
|
|
1095
|
+
/**
|
|
1096
|
+
* Required. The resource name of the AndroidApp, in the format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from
|
|
1097
|
+
* Sub-Collection access pattern may be used here, in the format: projects/-/androidApps/APP_ID Refer to the AndroidApp [name](../projects.androidApps#AndroidApp.FIELDS.name) field
|
|
1098
|
+
* for details about PROJECT_IDENTIFIER and APP_ID values.
|
|
1099
|
+
*/
|
|
1100
|
+
name: string;
|
|
1101
|
+
/** OAuth 2.0 token for the current user. */
|
|
1102
|
+
oauth_token?: string;
|
|
1103
|
+
/** Returns response with indentations and line breaks. */
|
|
1104
|
+
prettyPrint?: boolean;
|
|
1105
|
+
/** 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. */
|
|
1106
|
+
quotaUser?: string;
|
|
1107
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1108
|
+
upload_protocol?: string;
|
|
1109
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1110
|
+
uploadType?: string;
|
|
1111
|
+
},
|
|
1112
|
+
body: UndeleteAndroidAppRequest): Request<Operation>;
|
|
1031
1113
|
sha: ShaResource;
|
|
1032
1114
|
}
|
|
1033
1115
|
interface AvailableLocationsResource {
|
|
@@ -1458,6 +1540,70 @@ declare namespace gapi.client {
|
|
|
1458
1540
|
uploadType?: string;
|
|
1459
1541
|
},
|
|
1460
1542
|
body: RemoveIosAppRequest): Request<Operation>;
|
|
1543
|
+
/** Restores the specified IosApp to the project. */
|
|
1544
|
+
undelete(request: {
|
|
1545
|
+
/** V1 error format. */
|
|
1546
|
+
"$.xgafv"?: string;
|
|
1547
|
+
/** OAuth access token. */
|
|
1548
|
+
access_token?: string;
|
|
1549
|
+
/** Data format for response. */
|
|
1550
|
+
alt?: string;
|
|
1551
|
+
/** JSONP */
|
|
1552
|
+
callback?: string;
|
|
1553
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1554
|
+
fields?: string;
|
|
1555
|
+
/** 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. */
|
|
1556
|
+
key?: string;
|
|
1557
|
+
/**
|
|
1558
|
+
* Required. The resource name of the IosApp, in the format: projects/ PROJECT_IDENTIFIER/iosApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from
|
|
1559
|
+
* Sub-Collection access pattern may be used here, in the format: projects/-/iosApps/APP_ID Refer to the IosApp [name](../projects.iosApps#IosApp.FIELDS.name) field for details
|
|
1560
|
+
* about PROJECT_IDENTIFIER and APP_ID values.
|
|
1561
|
+
*/
|
|
1562
|
+
name: string;
|
|
1563
|
+
/** OAuth 2.0 token for the current user. */
|
|
1564
|
+
oauth_token?: string;
|
|
1565
|
+
/** Returns response with indentations and line breaks. */
|
|
1566
|
+
prettyPrint?: boolean;
|
|
1567
|
+
/** 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. */
|
|
1568
|
+
quotaUser?: string;
|
|
1569
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1570
|
+
upload_protocol?: string;
|
|
1571
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1572
|
+
uploadType?: string;
|
|
1573
|
+
/** Request body */
|
|
1574
|
+
resource: UndeleteIosAppRequest;
|
|
1575
|
+
}): Request<Operation>;
|
|
1576
|
+
undelete(request: {
|
|
1577
|
+
/** V1 error format. */
|
|
1578
|
+
"$.xgafv"?: string;
|
|
1579
|
+
/** OAuth access token. */
|
|
1580
|
+
access_token?: string;
|
|
1581
|
+
/** Data format for response. */
|
|
1582
|
+
alt?: string;
|
|
1583
|
+
/** JSONP */
|
|
1584
|
+
callback?: string;
|
|
1585
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1586
|
+
fields?: string;
|
|
1587
|
+
/** 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. */
|
|
1588
|
+
key?: string;
|
|
1589
|
+
/**
|
|
1590
|
+
* Required. The resource name of the IosApp, in the format: projects/ PROJECT_IDENTIFIER/iosApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from
|
|
1591
|
+
* Sub-Collection access pattern may be used here, in the format: projects/-/iosApps/APP_ID Refer to the IosApp [name](../projects.iosApps#IosApp.FIELDS.name) field for details
|
|
1592
|
+
* about PROJECT_IDENTIFIER and APP_ID values.
|
|
1593
|
+
*/
|
|
1594
|
+
name: string;
|
|
1595
|
+
/** OAuth 2.0 token for the current user. */
|
|
1596
|
+
oauth_token?: string;
|
|
1597
|
+
/** Returns response with indentations and line breaks. */
|
|
1598
|
+
prettyPrint?: boolean;
|
|
1599
|
+
/** 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. */
|
|
1600
|
+
quotaUser?: string;
|
|
1601
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1602
|
+
upload_protocol?: string;
|
|
1603
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1604
|
+
uploadType?: string;
|
|
1605
|
+
},
|
|
1606
|
+
body: UndeleteIosAppRequest): Request<Operation>;
|
|
1461
1607
|
}
|
|
1462
1608
|
interface WebAppsResource {
|
|
1463
1609
|
/**
|
|
@@ -1763,6 +1909,70 @@ declare namespace gapi.client {
|
|
|
1763
1909
|
uploadType?: string;
|
|
1764
1910
|
},
|
|
1765
1911
|
body: RemoveWebAppRequest): Request<Operation>;
|
|
1912
|
+
/** Restores the specified WebApp to the project. */
|
|
1913
|
+
undelete(request: {
|
|
1914
|
+
/** V1 error format. */
|
|
1915
|
+
"$.xgafv"?: string;
|
|
1916
|
+
/** OAuth access token. */
|
|
1917
|
+
access_token?: string;
|
|
1918
|
+
/** Data format for response. */
|
|
1919
|
+
alt?: string;
|
|
1920
|
+
/** JSONP */
|
|
1921
|
+
callback?: string;
|
|
1922
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1923
|
+
fields?: string;
|
|
1924
|
+
/** 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. */
|
|
1925
|
+
key?: string;
|
|
1926
|
+
/**
|
|
1927
|
+
* Required. The resource name of the WebApp, in the format: projects/ PROJECT_IDENTIFIER/webApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from
|
|
1928
|
+
* Sub-Collection access pattern may be used here, in the format: projects/-/webApps/APP_ID Refer to the WebApp [name](../projects.webApps#WebApp.FIELDS.name) field for details
|
|
1929
|
+
* about PROJECT_IDENTIFIER and APP_ID values.
|
|
1930
|
+
*/
|
|
1931
|
+
name: string;
|
|
1932
|
+
/** OAuth 2.0 token for the current user. */
|
|
1933
|
+
oauth_token?: string;
|
|
1934
|
+
/** Returns response with indentations and line breaks. */
|
|
1935
|
+
prettyPrint?: boolean;
|
|
1936
|
+
/** 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. */
|
|
1937
|
+
quotaUser?: string;
|
|
1938
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1939
|
+
upload_protocol?: string;
|
|
1940
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1941
|
+
uploadType?: string;
|
|
1942
|
+
/** Request body */
|
|
1943
|
+
resource: UndeleteWebAppRequest;
|
|
1944
|
+
}): Request<Operation>;
|
|
1945
|
+
undelete(request: {
|
|
1946
|
+
/** V1 error format. */
|
|
1947
|
+
"$.xgafv"?: string;
|
|
1948
|
+
/** OAuth access token. */
|
|
1949
|
+
access_token?: string;
|
|
1950
|
+
/** Data format for response. */
|
|
1951
|
+
alt?: string;
|
|
1952
|
+
/** JSONP */
|
|
1953
|
+
callback?: string;
|
|
1954
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1955
|
+
fields?: string;
|
|
1956
|
+
/** 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. */
|
|
1957
|
+
key?: string;
|
|
1958
|
+
/**
|
|
1959
|
+
* Required. The resource name of the WebApp, in the format: projects/ PROJECT_IDENTIFIER/webApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from
|
|
1960
|
+
* Sub-Collection access pattern may be used here, in the format: projects/-/webApps/APP_ID Refer to the WebApp [name](../projects.webApps#WebApp.FIELDS.name) field for details
|
|
1961
|
+
* about PROJECT_IDENTIFIER and APP_ID values.
|
|
1962
|
+
*/
|
|
1963
|
+
name: string;
|
|
1964
|
+
/** OAuth 2.0 token for the current user. */
|
|
1965
|
+
oauth_token?: string;
|
|
1966
|
+
/** Returns response with indentations and line breaks. */
|
|
1967
|
+
prettyPrint?: boolean;
|
|
1968
|
+
/** 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. */
|
|
1969
|
+
quotaUser?: string;
|
|
1970
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1971
|
+
upload_protocol?: string;
|
|
1972
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1973
|
+
uploadType?: string;
|
|
1974
|
+
},
|
|
1975
|
+
body: UndeleteWebAppRequest): Request<Operation>;
|
|
1766
1976
|
}
|
|
1767
1977
|
interface ProjectsResource {
|
|
1768
1978
|
/**
|
|
@@ -2047,6 +2257,8 @@ declare namespace gapi.client {
|
|
|
2047
2257
|
prettyPrint?: boolean;
|
|
2048
2258
|
/** 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. */
|
|
2049
2259
|
quotaUser?: string;
|
|
2260
|
+
/** Optional. Controls whether Projects in the DELETING state should be returned. Defaults to false. */
|
|
2261
|
+
showDeleted?: boolean;
|
|
2050
2262
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2051
2263
|
upload_protocol?: string;
|
|
2052
2264
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20220819
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -111,6 +111,7 @@ gapi.load('client', async () => {
|
|
|
111
111
|
await gapi.client.firebase.projects.list({
|
|
112
112
|
pageSize: 42,
|
|
113
113
|
pageToken: "Test string",
|
|
114
|
+
showDeleted: true,
|
|
114
115
|
});
|
|
115
116
|
/** Updates the attributes of the specified FirebaseProject. All [query parameters](#query-parameters) are required. */
|
|
116
117
|
await gapi.client.firebase.projects.patch({
|
|
@@ -210,6 +211,13 @@ gapi.load('client', async () => {
|
|
|
210
211
|
etag: "Test string",
|
|
211
212
|
validateOnly: true,
|
|
212
213
|
});
|
|
214
|
+
/** Restores the specified AndroidApp to the project. */
|
|
215
|
+
await gapi.client.firebase.projects.androidApps.undelete({
|
|
216
|
+
name: "Test string",
|
|
217
|
+
}, {
|
|
218
|
+
etag: "Test string",
|
|
219
|
+
validateOnly: true,
|
|
220
|
+
});
|
|
213
221
|
/** Adds a ShaCertificate to the specified AndroidApp. */
|
|
214
222
|
await gapi.client.firebase.projects.androidApps.sha.create({
|
|
215
223
|
parent: "Test string",
|
|
@@ -316,6 +324,13 @@ gapi.load('client', async () => {
|
|
|
316
324
|
etag: "Test string",
|
|
317
325
|
validateOnly: true,
|
|
318
326
|
});
|
|
327
|
+
/** Restores the specified IosApp to the project. */
|
|
328
|
+
await gapi.client.firebase.projects.iosApps.undelete({
|
|
329
|
+
name: "Test string",
|
|
330
|
+
}, {
|
|
331
|
+
etag: "Test string",
|
|
332
|
+
validateOnly: true,
|
|
333
|
+
});
|
|
319
334
|
/**
|
|
320
335
|
* Requests the creation of a new WebApp in the specified FirebaseProject. The result of this call is an `Operation` which can be used to track the provisioning process. The `Operation` is
|
|
321
336
|
* automatically deleted after completion, so there is no need to call `DeleteOperation`.
|
|
@@ -376,5 +391,12 @@ gapi.load('client', async () => {
|
|
|
376
391
|
etag: "Test string",
|
|
377
392
|
validateOnly: true,
|
|
378
393
|
});
|
|
394
|
+
/** Restores the specified WebApp to the project. */
|
|
395
|
+
await gapi.client.firebase.projects.webApps.undelete({
|
|
396
|
+
name: "Test string",
|
|
397
|
+
}, {
|
|
398
|
+
etag: "Test string",
|
|
399
|
+
validateOnly: true,
|
|
400
|
+
});
|
|
379
401
|
}
|
|
380
402
|
});
|