@maxim_mazurok/gapi.client.appengine-v1beta 0.0.20231107 → 0.0.20231204

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/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.appengine-v1beta",
3
- "version": "0.0.20231107",
3
+ "version": "0.0.20231204",
4
4
  "description": "TypeScript typings for App Engine Admin API v1beta",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
8
+ },
5
9
  "license": "MIT",
6
10
  "author": {
7
- "email": "maxim@mazurok.com",
8
11
  "name": "Maxim Mazurok",
12
+ "email": "maxim@mazurok.com",
9
13
  "url": "https://maxim.mazurok.com"
10
14
  },
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
14
- },
15
15
  "types": "index.d.ts",
16
16
  "dependencies": {
17
17
  "@types/gapi.client": "*",
package/readme.md CHANGED
@@ -25,10 +25,13 @@ gapi.load('client', () => {
25
25
  Then load api client wrapper:
26
26
 
27
27
  ```typescript
28
- gapi.client.load('https://appengine.googleapis.com/$discovery/rest?version=v1beta', () => {
29
- // now we can use:
30
- // gapi.client.appengine
31
- });
28
+ gapi.client.load(
29
+ 'https://appengine.googleapis.com/$discovery/rest?version=v1beta',
30
+ () => {
31
+ // now we can use:
32
+ // gapi.client.appengine
33
+ }
34
+ );
32
35
  ```
33
36
 
34
37
  ```typescript
@@ -45,55 +48,55 @@ Don't forget to authenticate your client before sending any request to resources
45
48
  // declare client_id registered in Google Developers Console
46
49
  var client_id = '',
47
50
  scope = [
48
- // View and manage your applications deployed on Google App Engine
49
- 'https://www.googleapis.com/auth/appengine.admin',
51
+ // View and manage your applications deployed on Google App Engine
52
+ 'https://www.googleapis.com/auth/appengine.admin',
50
53
 
51
- // See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
52
- 'https://www.googleapis.com/auth/cloud-platform',
54
+ // See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
55
+ 'https://www.googleapis.com/auth/cloud-platform',
53
56
 
54
- // View your data across Google Cloud services and see the email address of your Google Account
55
- 'https://www.googleapis.com/auth/cloud-platform.read-only',
56
- ],
57
- immediate = true;
57
+ // View your data across Google Cloud services and see the email address of your Google Account
58
+ 'https://www.googleapis.com/auth/cloud-platform.read-only',
59
+ ],
60
+ immediate = true;
58
61
  // ...
59
62
 
60
63
  gapi.auth.authorize(
61
- { client_id: client_id, scope: scope, immediate: immediate },
64
+ {client_id: client_id, scope: scope, immediate: immediate},
62
65
  authResult => {
63
66
  if (authResult && !authResult.error) {
64
- /* handle successful authorization */
67
+ /* handle successful authorization */
65
68
  } else {
66
- /* handle authorization error */
69
+ /* handle authorization error */
67
70
  }
68
- });
71
+ }
72
+ );
69
73
  ```
70
74
 
71
75
  After that you can use App Engine Admin API resources: <!-- TODO: make this work for multiple namespaces -->
72
76
 
73
77
  ```typescript
74
-
75
78
  /*
76
79
  Creates an App Engine application for a Google Cloud Platform project. Required fields: id - The ID of the target Cloud Platform project. location - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).
77
80
  */
78
- await gapi.client.appengine.apps.create({ });
81
+ await gapi.client.appengine.apps.create({});
79
82
 
80
83
  /*
81
84
  Gets information about an application.
82
85
  */
83
- await gapi.client.appengine.apps.get({ appsId: "appsId", });
86
+ await gapi.client.appengine.apps.get({appsId: 'appsId'});
84
87
 
85
88
  /*
86
89
  Lists all the available runtimes for the application.
87
90
  */
88
- await gapi.client.appengine.apps.listRuntimes({ appsId: "appsId", });
91
+ await gapi.client.appengine.apps.listRuntimes({appsId: 'appsId'});
89
92
 
90
93
  /*
91
94
  Updates the specified Application resource. You can update the following fields: auth_domain - Google authentication domain for controlling user access to the application. default_cookie_expiration - Cookie expiration policy for the application. iap - Identity-Aware Proxy properties for the application.
92
95
  */
93
- await gapi.client.appengine.apps.patch({ appsId: "appsId", });
96
+ await gapi.client.appengine.apps.patch({appsId: 'appsId'});
94
97
 
95
98
  /*
96
99
  Recreates the required App Engine features for the specified App Engine application, for example a Cloud Storage bucket or App Engine service account. Use this method if you receive an error message about a missing feature, for example, Error retrieving the App Engine service account. If you have deleted your App Engine service account, this will not be able to recreate it. Instead, you should attempt to use the IAM undelete API if possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B"name"%3A"projects%2F-%2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%7D . If the deletion was recent, the numeric ID can be found in the Cloud Console Activity Log.
97
100
  */
98
- await gapi.client.appengine.apps.repair({ appsId: "appsId", });
101
+ await gapi.client.appengine.apps.repair({appsId: 'appsId'});
99
102
  ```