@maxim_mazurok/gapi.client.appengine-v1 0.0.20230522 → 0.0.20230601
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 +203 -1
- package/package.json +1 -1
- package/tests.ts +29 -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:
|
|
12
|
+
// Revision: 20230601
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -3727,6 +3727,107 @@ declare namespace gapi.client {
|
|
|
3727
3727
|
services:
|
|
3728
3728
|
ServicesResource;
|
|
3729
3729
|
}
|
|
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
|
+
}
|
|
3730
3831
|
interface ApplicationsResource {
|
|
3731
3832
|
/**
|
|
3732
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
|
|
@@ -3864,6 +3965,107 @@ declare namespace gapi.client {
|
|
|
3864
3965
|
uploadType?:
|
|
3865
3966
|
string;
|
|
3866
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;
|
|
3867
4069
|
}
|
|
3868
4070
|
interface LocationsResource {
|
|
3869
4071
|
applications:
|
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: 20230601
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -942,5 +942,33 @@ gapi.load('client', async () => {
|
|
|
942
942
|
locationsId: "Test string",
|
|
943
943
|
projectsId: "Test string",
|
|
944
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
|
+
});
|
|
945
973
|
}
|
|
946
974
|
});
|