@maxim_mazurok/gapi.client.appengine-v1 0.0.20230609 → 0.0.20230706

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 +1 -357
  2. package/package.json +1 -1
  3. package/tests.ts +1 -75
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: 20230609
12
+ // Revision: 20230706
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -3438,9 +3438,6 @@ declare namespace gapi.client {
3438
3438
  /** OAuth 2.0 token for the current user. */
3439
3439
  oauth_token?:
3440
3440
  string;
3441
- /** The project and location in which the application should be created, specified in the format projects/*‍/locations/* */
3442
- parent?:
3443
- string;
3444
3441
  /** Returns response with indentations and line breaks. */
3445
3442
  prettyPrint?:
3446
3443
  boolean;
@@ -3479,9 +3476,6 @@ declare namespace gapi.client {
3479
3476
  /** OAuth 2.0 token for the current user. */
3480
3477
  oauth_token?:
3481
3478
  string;
3482
- /** The project and location in which the application should be created, specified in the format projects/*‍/locations/* */
3483
- parent?:
3484
- string;
3485
3479
  /** Returns response with indentations and line breaks. */
3486
3480
  prettyPrint?:
3487
3481
  boolean;
@@ -3727,357 +3721,7 @@ declare namespace gapi.client {
3727
3721
  services:
3728
3722
  ServicesResource;
3729
3723
  }
3730
- interface ServicesResource {
3731
- /** Gets the current configuration of the specified service. */
3732
- get(request?: {
3733
- /** V1 error format. */
3734
- "$.xgafv"?:
3735
- string;
3736
- /** OAuth access token. */
3737
- access_token?:
3738
- string;
3739
- /** Data format for response. */
3740
- alt?:
3741
- string;
3742
- /** Part of `name`. See documentation of `projectsId`. */
3743
- applicationsId:
3744
- string;
3745
- /** JSONP */
3746
- callback?:
3747
- string;
3748
- /** Selector specifying which fields to include in a partial response. */
3749
- fields?:
3750
- string;
3751
- /** 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. */
3752
- key?:
3753
- string;
3754
- /** Part of `name`. See documentation of `projectsId`. */
3755
- locationsId:
3756
- string;
3757
- /** OAuth 2.0 token for the current user. */
3758
- oauth_token?:
3759
- string;
3760
- /** Returns response with indentations and line breaks. */
3761
- prettyPrint?:
3762
- boolean;
3763
- /** Part of `name`. Name of the resource requested. Example: apps/myapp/services/default. */
3764
- projectsId:
3765
- string;
3766
- /** 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. */
3767
- quotaUser?:
3768
- string;
3769
- /** Part of `name`. See documentation of `projectsId`. */
3770
- servicesId:
3771
- string;
3772
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3773
- upload_protocol?:
3774
- string;
3775
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3776
- uploadType?:
3777
- string;
3778
- }): Request<Service>;
3779
- /** Lists all the services in the application. */
3780
- list(request?: {
3781
- /** V1 error format. */
3782
- "$.xgafv"?:
3783
- string;
3784
- /** OAuth access token. */
3785
- access_token?:
3786
- string;
3787
- /** Data format for response. */
3788
- alt?:
3789
- string;
3790
- /** Part of `parent`. See documentation of `projectsId`. */
3791
- applicationsId:
3792
- string;
3793
- /** JSONP */
3794
- callback?:
3795
- string;
3796
- /** Selector specifying which fields to include in a partial response. */
3797
- fields?:
3798
- string;
3799
- /** 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. */
3800
- key?:
3801
- string;
3802
- /** Part of `parent`. See documentation of `projectsId`. */
3803
- locationsId:
3804
- string;
3805
- /** OAuth 2.0 token for the current user. */
3806
- oauth_token?:
3807
- string;
3808
- /** Maximum results to return per page. */
3809
- pageSize?:
3810
- number;
3811
- /** Continuation token for fetching the next page of results. */
3812
- pageToken?:
3813
- string;
3814
- /** Returns response with indentations and line breaks. */
3815
- prettyPrint?:
3816
- boolean;
3817
- /** Part of `parent`. Name of the parent Application resource. Example: apps/myapp. */
3818
- projectsId:
3819
- string;
3820
- /** 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. */
3821
- quotaUser?:
3822
- string;
3823
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3824
- upload_protocol?:
3825
- string;
3826
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3827
- uploadType?:
3828
- string;
3829
- }): Request<ListServicesResponse>;
3830
- }
3831
- interface ApplicationsResource {
3832
- /**
3833
- * 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
3834
- * (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,
3835
- * Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).
3836
- */
3837
- create(request: {
3838
- /** V1 error format. */
3839
- "$.xgafv"?:
3840
- string;
3841
- /** OAuth access token. */
3842
- access_token?:
3843
- string;
3844
- /** Data format for response. */
3845
- alt?:
3846
- string;
3847
- /** JSONP */
3848
- callback?:
3849
- string;
3850
- /** Selector specifying which fields to include in a partial response. */
3851
- fields?:
3852
- string;
3853
- /** 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. */
3854
- key?:
3855
- string;
3856
- /** Part of `parent`. See documentation of `projectsId`. */
3857
- locationsId:
3858
- string;
3859
- /** OAuth 2.0 token for the current user. */
3860
- oauth_token?:
3861
- string;
3862
- /** Returns response with indentations and line breaks. */
3863
- prettyPrint?:
3864
- boolean;
3865
- /** Part of `parent`. The project and location in which the application should be created, specified in the format projects/*‍/locations/* */
3866
- projectsId:
3867
- string;
3868
- /** 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. */
3869
- quotaUser?:
3870
- string;
3871
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3872
- upload_protocol?:
3873
- string;
3874
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3875
- uploadType?:
3876
- string;
3877
- /** Request body */
3878
- resource:
3879
- Application;
3880
- }): Request<Operation>;
3881
- create(request: {
3882
- /** V1 error format. */
3883
- "$.xgafv"?:
3884
- string;
3885
- /** OAuth access token. */
3886
- access_token?:
3887
- string;
3888
- /** Data format for response. */
3889
- alt?:
3890
- string;
3891
- /** JSONP */
3892
- callback?:
3893
- string;
3894
- /** Selector specifying which fields to include in a partial response. */
3895
- fields?:
3896
- string;
3897
- /** 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. */
3898
- key?:
3899
- string;
3900
- /** Part of `parent`. See documentation of `projectsId`. */
3901
- locationsId:
3902
- string;
3903
- /** OAuth 2.0 token for the current user. */
3904
- oauth_token?:
3905
- string;
3906
- /** Returns response with indentations and line breaks. */
3907
- prettyPrint?:
3908
- boolean;
3909
- /** Part of `parent`. The project and location in which the application should be created, specified in the format projects/*‍/locations/* */
3910
- projectsId:
3911
- string;
3912
- /** 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. */
3913
- quotaUser?:
3914
- string;
3915
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3916
- upload_protocol?:
3917
- string;
3918
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3919
- uploadType?:
3920
- string;
3921
- },
3922
- body: Application): Request<Operation>;
3923
- /** Gets information about an application. */
3924
- get(request?: {
3925
- /** V1 error format. */
3926
- "$.xgafv"?:
3927
- string;
3928
- /** OAuth access token. */
3929
- access_token?:
3930
- string;
3931
- /** Data format for response. */
3932
- alt?:
3933
- string;
3934
- /** Part of `name`. See documentation of `projectsId`. */
3935
- applicationsId:
3936
- string;
3937
- /** JSONP */
3938
- callback?:
3939
- string;
3940
- /** Selector specifying which fields to include in a partial response. */
3941
- fields?:
3942
- string;
3943
- /** 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. */
3944
- key?:
3945
- string;
3946
- /** Part of `name`. See documentation of `projectsId`. */
3947
- locationsId:
3948
- string;
3949
- /** OAuth 2.0 token for the current user. */
3950
- oauth_token?:
3951
- string;
3952
- /** Returns response with indentations and line breaks. */
3953
- prettyPrint?:
3954
- boolean;
3955
- /** Part of `name`. Name of the Application resource to get. Example: apps/myapp. */
3956
- projectsId:
3957
- string;
3958
- /** 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. */
3959
- quotaUser?:
3960
- string;
3961
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3962
- upload_protocol?:
3963
- string;
3964
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3965
- uploadType?:
3966
- string;
3967
- }): Request<Application>;
3968
- /**
3969
- * 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
3970
- * 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
3971
- * recreate it. Instead, you should attempt to use the IAM undelete API if possible at
3972
- * 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
3973
- * the deletion was recent, the numeric ID can be found in the Cloud Console Activity Log.
3974
- */
3975
- repair(request: {
3976
- /** V1 error format. */
3977
- "$.xgafv"?:
3978
- string;
3979
- /** OAuth access token. */
3980
- access_token?:
3981
- string;
3982
- /** Data format for response. */
3983
- alt?:
3984
- string;
3985
- /** Part of `name`. See documentation of `projectsId`. */
3986
- applicationsId:
3987
- string;
3988
- /** JSONP */
3989
- callback?:
3990
- string;
3991
- /** Selector specifying which fields to include in a partial response. */
3992
- fields?:
3993
- string;
3994
- /** 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. */
3995
- key?:
3996
- string;
3997
- /** Part of `name`. See documentation of `projectsId`. */
3998
- locationsId:
3999
- string;
4000
- /** OAuth 2.0 token for the current user. */
4001
- oauth_token?:
4002
- string;
4003
- /** Returns response with indentations and line breaks. */
4004
- prettyPrint?:
4005
- boolean;
4006
- /** Part of `name`. Name of the application to repair. Example: apps/myapp */
4007
- projectsId:
4008
- string;
4009
- /** 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. */
4010
- quotaUser?:
4011
- string;
4012
- /** Upload protocol for media (e.g. "raw", "multipart"). */
4013
- upload_protocol?:
4014
- string;
4015
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4016
- uploadType?:
4017
- string;
4018
- /** Request body */
4019
- resource:
4020
- RepairApplicationRequest;
4021
- }): Request<Operation>;
4022
- repair(request: {
4023
- /** V1 error format. */
4024
- "$.xgafv"?:
4025
- string;
4026
- /** OAuth access token. */
4027
- access_token?:
4028
- string;
4029
- /** Data format for response. */
4030
- alt?:
4031
- string;
4032
- /** Part of `name`. See documentation of `projectsId`. */
4033
- applicationsId:
4034
- string;
4035
- /** JSONP */
4036
- callback?:
4037
- string;
4038
- /** Selector specifying which fields to include in a partial response. */
4039
- fields?:
4040
- string;
4041
- /** 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. */
4042
- key?:
4043
- string;
4044
- /** Part of `name`. See documentation of `projectsId`. */
4045
- locationsId:
4046
- string;
4047
- /** OAuth 2.0 token for the current user. */
4048
- oauth_token?:
4049
- string;
4050
- /** Returns response with indentations and line breaks. */
4051
- prettyPrint?:
4052
- boolean;
4053
- /** Part of `name`. Name of the application to repair. Example: apps/myapp */
4054
- projectsId:
4055
- string;
4056
- /** 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. */
4057
- quotaUser?:
4058
- string;
4059
- /** Upload protocol for media (e.g. "raw", "multipart"). */
4060
- upload_protocol?:
4061
- string;
4062
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4063
- uploadType?:
4064
- string;
4065
- },
4066
- body: RepairApplicationRequest): Request<Operation>;
4067
- services:
4068
- ServicesResource;
4069
- }
4070
- interface LocationsResource {
4071
- applications:
4072
- ApplicationsResource;
4073
- }
4074
- interface ProjectsResource {
4075
- locations:
4076
- LocationsResource;
4077
- }
4078
3724
 
4079
3725
  const apps: AppsResource;
4080
-
4081
- const projects: ProjectsResource;
4082
3726
  }
4083
3727
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.appengine-v1",
3
- "version": "0.0.20230609",
3
+ "version": "0.0.20230706",
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: 20230609
6
+ // Revision: 20230706
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -39,7 +39,6 @@ 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",
43
42
  }, {
44
43
  authDomain: "Test string",
45
44
  codeBucket: "Test string",
@@ -897,78 +896,5 @@ gapi.load('client', async () => {
897
896
  servicesId: "Test string",
898
897
  versionsId: "Test string",
899
898
  });
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
- });
939
- /** Gets information about an application. */
940
- await gapi.client.appengine.projects.locations.applications.get({
941
- applicationsId: "Test string",
942
- locationsId: "Test string",
943
- projectsId: "Test string",
944
- });
945
- /**
946
- * 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
947
- * 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
948
- * recreate it. Instead, you should attempt to use the IAM undelete API if possible at
949
- * 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
950
- * deletion was recent, the numeric ID can be found in the Cloud Console Activity Log.
951
- */
952
- await gapi.client.appengine.projects.locations.applications.repair({
953
- applicationsId: "Test string",
954
- locationsId: "Test string",
955
- projectsId: "Test string",
956
- }, {
957
- });
958
- /** Gets the current configuration of the specified service. */
959
- await gapi.client.appengine.projects.locations.applications.services.get({
960
- applicationsId: "Test string",
961
- locationsId: "Test string",
962
- projectsId: "Test string",
963
- servicesId: "Test string",
964
- });
965
- /** Lists all the services in the application. */
966
- await gapi.client.appengine.projects.locations.applications.services.list({
967
- applicationsId: "Test string",
968
- locationsId: "Test string",
969
- pageSize: 42,
970
- pageToken: "Test string",
971
- projectsId: "Test string",
972
- });
973
899
  }
974
900
  });