@maxim_mazurok/gapi.client.appengine-v1 0.0.20230309 → 0.0.20230403

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.
Files changed (3) hide show
  1. package/index.d.ts +76 -8
  2. package/package.json +1 -1
  3. package/tests.ts +41 -1
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://appengine.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230309
12
+ // Revision: 20230403
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -42,23 +42,23 @@ declare namespace gapi.client {
42
42
  /** Google Apps authentication domain that controls which users can access this application.Defaults to open access for any Google Account. */
43
43
  authDomain?: string;
44
44
  /**
45
- * Google Cloud Storage bucket that can be used for storing files associated with this application. This bucket is associated with the application and can be used by the gcloud
46
- * deployment commands.@OutputOnly
45
+ * Output only. Google Cloud Storage bucket that can be used for storing files associated with this application. This bucket is associated with the application and can be used by the
46
+ * gcloud deployment commands.@OutputOnly
47
47
  */
48
48
  codeBucket?: string;
49
49
  /** The type of the Cloud Firestore or Cloud Datastore database associated with this application. */
50
50
  databaseType?: string;
51
- /** Google Cloud Storage bucket that can be used by this application to store content.@OutputOnly */
51
+ /** Output only. Google Cloud Storage bucket that can be used by this application to store content.@OutputOnly */
52
52
  defaultBucket?: string;
53
53
  /** Cookie expiration policy for this application. */
54
54
  defaultCookieExpiration?: string;
55
- /** Hostname used to reach this application, as resolved by App Engine.@OutputOnly */
55
+ /** Output only. Hostname used to reach this application, as resolved by App Engine.@OutputOnly */
56
56
  defaultHostname?: string;
57
57
  /** HTTP path dispatch rules for requests to the application that do not explicitly target a service or version. Rules are order-dependent. Up to 20 dispatch rules can be supported. */
58
58
  dispatchRules?: UrlDispatchRule[];
59
59
  /** The feature specific settings to be used in the application. */
60
60
  featureSettings?: FeatureSettings;
61
- /** The Google Container Registry domain used for storing managed build docker images for this application. */
61
+ /** Output only. The Google Container Registry domain used for storing managed build docker images for this application. */
62
62
  gcrDomain?: string;
63
63
  iap?: IdentityAwareProxy;
64
64
  /**
@@ -71,7 +71,7 @@ declare namespace gapi.client {
71
71
  * is stored.Defaults to us-central.View the list of supported locations (https://cloud.google.com/appengine/docs/locations).
72
72
  */
73
73
  locationId?: string;
74
- /** Full path to the Application resource in the API. Example: apps/myapp.@OutputOnly */
74
+ /** Output only. Full path to the Application resource in the API. Example: apps/myapp.@OutputOnly */
75
75
  name?: string;
76
76
  /** The service account associated with the application. This is the app-level default identity. If no identity provided during create version, Admin API will fallback to this one. */
77
77
  serviceAccount?: string;
@@ -357,7 +357,7 @@ declare namespace gapi.client {
357
357
  * oauth2_client_secret_sha256 field.@InputOnly
358
358
  */
359
359
  oauth2ClientSecret?: string;
360
- /** Hex-encoded SHA-256 hash of the client secret.@OutputOnly */
360
+ /** Output only. Hex-encoded SHA-256 hash of the client secret.@OutputOnly */
361
361
  oauth2ClientSecretSha256?: string;
362
362
  }
363
363
  interface Instance {
@@ -2475,6 +2475,8 @@ declare namespace gapi.client {
2475
2475
  key?: string;
2476
2476
  /** OAuth 2.0 token for the current user. */
2477
2477
  oauth_token?: string;
2478
+ /** The project and location in which the application should be created, specified in the format projects/*‍/locations/* */
2479
+ parent?: string;
2478
2480
  /** Returns response with indentations and line breaks. */
2479
2481
  prettyPrint?: boolean;
2480
2482
  /** 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. */
@@ -2501,6 +2503,8 @@ declare namespace gapi.client {
2501
2503
  key?: string;
2502
2504
  /** OAuth 2.0 token for the current user. */
2503
2505
  oauth_token?: string;
2506
+ /** The project and location in which the application should be created, specified in the format projects/*‍/locations/* */
2507
+ parent?: string;
2504
2508
  /** Returns response with indentations and line breaks. */
2505
2509
  prettyPrint?: boolean;
2506
2510
  /** 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. */
@@ -2672,6 +2676,70 @@ declare namespace gapi.client {
2672
2676
  services: ServicesResource;
2673
2677
  }
2674
2678
  interface ApplicationsResource {
2679
+ /**
2680
+ * 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
2681
+ * (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,
2682
+ * Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).
2683
+ */
2684
+ create(request: {
2685
+ /** V1 error format. */
2686
+ "$.xgafv"?: string;
2687
+ /** OAuth access token. */
2688
+ access_token?: string;
2689
+ /** Data format for response. */
2690
+ alt?: string;
2691
+ /** JSONP */
2692
+ callback?: string;
2693
+ /** Selector specifying which fields to include in a partial response. */
2694
+ fields?: string;
2695
+ /** 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. */
2696
+ key?: string;
2697
+ /** Part of `parent`. See documentation of `projectsId`. */
2698
+ locationsId: string;
2699
+ /** OAuth 2.0 token for the current user. */
2700
+ oauth_token?: string;
2701
+ /** Returns response with indentations and line breaks. */
2702
+ prettyPrint?: boolean;
2703
+ /** Part of `parent`. The project and location in which the application should be created, specified in the format projects/*‍/locations/* */
2704
+ projectsId: string;
2705
+ /** 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. */
2706
+ quotaUser?: string;
2707
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2708
+ upload_protocol?: string;
2709
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2710
+ uploadType?: string;
2711
+ /** Request body */
2712
+ resource: Application;
2713
+ }): Request<Operation>;
2714
+ create(request: {
2715
+ /** V1 error format. */
2716
+ "$.xgafv"?: string;
2717
+ /** OAuth access token. */
2718
+ access_token?: string;
2719
+ /** Data format for response. */
2720
+ alt?: string;
2721
+ /** JSONP */
2722
+ callback?: string;
2723
+ /** Selector specifying which fields to include in a partial response. */
2724
+ fields?: string;
2725
+ /** 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. */
2726
+ key?: string;
2727
+ /** Part of `parent`. See documentation of `projectsId`. */
2728
+ locationsId: string;
2729
+ /** OAuth 2.0 token for the current user. */
2730
+ oauth_token?: string;
2731
+ /** Returns response with indentations and line breaks. */
2732
+ prettyPrint?: boolean;
2733
+ /** Part of `parent`. The project and location in which the application should be created, specified in the format projects/*‍/locations/* */
2734
+ projectsId: string;
2735
+ /** 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. */
2736
+ quotaUser?: string;
2737
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2738
+ upload_protocol?: string;
2739
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2740
+ uploadType?: string;
2741
+ },
2742
+ body: Application): Request<Operation>;
2675
2743
  /** Gets information about an application. */
2676
2744
  get(request?: {
2677
2745
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.appengine-v1",
3
- "version": "0.0.20230309",
3
+ "version": "0.0.20230403",
4
4
  "description": "TypeScript typings for App Engine Admin API v1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230309
6
+ // Revision: 20230403
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -39,6 +39,7 @@ gapi.load('client', async () => {
39
39
  * Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).
40
40
  */
41
41
  await gapi.client.appengine.apps.create({
42
+ parent: "Test string",
42
43
  }, {
43
44
  authDomain: "Test string",
44
45
  codeBucket: "Test string",
@@ -896,6 +897,45 @@ gapi.load('client', async () => {
896
897
  servicesId: "Test string",
897
898
  versionsId: "Test string",
898
899
  });
900
+ /**
901
+ * 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
902
+ * (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,
903
+ * Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).
904
+ */
905
+ await gapi.client.appengine.projects.locations.applications.create({
906
+ locationsId: "Test string",
907
+ projectsId: "Test string",
908
+ }, {
909
+ authDomain: "Test string",
910
+ codeBucket: "Test string",
911
+ databaseType: "Test string",
912
+ defaultBucket: "Test string",
913
+ defaultCookieExpiration: "Test string",
914
+ defaultHostname: "Test string",
915
+ dispatchRules: [
916
+ {
917
+ domain: "Test string",
918
+ path: "Test string",
919
+ service: "Test string",
920
+ }
921
+ ],
922
+ featureSettings: {
923
+ splitHealthChecks: true,
924
+ useContainerOptimizedOs: true,
925
+ },
926
+ gcrDomain: "Test string",
927
+ iap: {
928
+ enabled: true,
929
+ oauth2ClientId: "Test string",
930
+ oauth2ClientSecret: "Test string",
931
+ oauth2ClientSecretSha256: "Test string",
932
+ },
933
+ id: "Test string",
934
+ locationId: "Test string",
935
+ name: "Test string",
936
+ serviceAccount: "Test string",
937
+ servingStatus: "Test string",
938
+ });
899
939
  /** Gets information about an application. */
900
940
  await gapi.client.appengine.projects.locations.applications.get({
901
941
  applicationsId: "Test string",