@maxim_mazurok/gapi.client.analyticsadmin-v1beta 0.0.20231001 → 0.0.20231003
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 +4 -4
- package/package.json +1 -1
- package/readme.md +2 -2
- package/tests.ts +4 -4
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://analyticsadmin.googleapis.com/$discovery/rest?version=v1beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20231003
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -839,8 +839,8 @@ declare namespace gapi.client {
|
|
|
839
839
|
interface AccountsResource {
|
|
840
840
|
/**
|
|
841
841
|
* Marks target Account as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash
|
|
842
|
-
* Can UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams,
|
|
843
|
-
* purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.
|
|
842
|
+
* Can UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be
|
|
843
|
+
* permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.
|
|
844
844
|
*/
|
|
845
845
|
delete(request?: {
|
|
846
846
|
/** V1 error format. */
|
|
@@ -3583,7 +3583,7 @@ declare namespace gapi.client {
|
|
|
3583
3583
|
body: GoogleAnalyticsAdminV1betaProperty): Request<GoogleAnalyticsAdminV1betaProperty>;
|
|
3584
3584
|
/**
|
|
3585
3585
|
* Marks target Property as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the
|
|
3586
|
-
* Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams,
|
|
3586
|
+
* Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently
|
|
3587
3587
|
* purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not a GA4 Property.
|
|
3588
3588
|
*/
|
|
3589
3589
|
delete(request?: {
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -70,7 +70,7 @@ After that you can use Google Analytics Admin API resources: <!-- TODO: make thi
|
|
|
70
70
|
```typescript
|
|
71
71
|
|
|
72
72
|
/*
|
|
73
|
-
Marks target Account as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams,
|
|
73
|
+
Marks target Account as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.
|
|
74
74
|
*/
|
|
75
75
|
await gapi.client.analyticsadmin.accounts.delete({ name: "name", });
|
|
76
76
|
|
|
@@ -125,7 +125,7 @@ Creates an "GA4" property with the specified location and attributes.
|
|
|
125
125
|
await gapi.client.analyticsadmin.properties.create({ });
|
|
126
126
|
|
|
127
127
|
/*
|
|
128
|
-
Marks target Property as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams,
|
|
128
|
+
Marks target Property as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not a GA4 Property.
|
|
129
129
|
*/
|
|
130
130
|
await gapi.client.analyticsadmin.properties.delete({ name: "name", });
|
|
131
131
|
|
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: 20231003
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -33,8 +33,8 @@ gapi.load('client', async () => {
|
|
|
33
33
|
async function run() {
|
|
34
34
|
/**
|
|
35
35
|
* Marks target Account as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can
|
|
36
|
-
* UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams,
|
|
37
|
-
* https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.
|
|
36
|
+
* UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently
|
|
37
|
+
* purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.
|
|
38
38
|
*/
|
|
39
39
|
await gapi.client.analyticsadmin.accounts.delete({
|
|
40
40
|
name: "Test string",
|
|
@@ -256,7 +256,7 @@ gapi.load('client', async () => {
|
|
|
256
256
|
});
|
|
257
257
|
/**
|
|
258
258
|
* Marks target Property as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash
|
|
259
|
-
* Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams,
|
|
259
|
+
* Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged.
|
|
260
260
|
* https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not a GA4 Property.
|
|
261
261
|
*/
|
|
262
262
|
await gapi.client.analyticsadmin.properties.delete({
|