@maxim_mazurok/gapi.client.gkehub-v1 0.0.20230424 → 0.0.20230515
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 +145 -2
- package/package.json +1 -1
- package/tests.ts +55 -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://gkehub.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230515
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -920,7 +920,7 @@ declare namespace gapi.client {
|
|
|
920
920
|
/** The resource name for the membershipbinding itself `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}` */
|
|
921
921
|
name?:
|
|
922
922
|
string;
|
|
923
|
-
/** A
|
|
923
|
+
/** A Scope resource name in the format `projects/*/locations/*/scopes/*`. */
|
|
924
924
|
scope?:
|
|
925
925
|
string;
|
|
926
926
|
/** Output only. State of the membership binding resource. */
|
|
@@ -1996,6 +1996,9 @@ declare namespace gapi.client {
|
|
|
1996
1996
|
/** Selector specifying which fields to include in a partial response. */
|
|
1997
1997
|
fields?:
|
|
1998
1998
|
string;
|
|
1999
|
+
/** Optional. Lists MembershipBindings that match the filter expression, following the syntax outlined in https://google.aip.dev/160. */
|
|
2000
|
+
filter?:
|
|
2001
|
+
string;
|
|
1999
2002
|
/** 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. */
|
|
2000
2003
|
key?:
|
|
2001
2004
|
string;
|
|
@@ -3077,6 +3080,57 @@ declare namespace gapi.client {
|
|
|
3077
3080
|
uploadType?:
|
|
3078
3081
|
string;
|
|
3079
3082
|
}): Request<Scope>;
|
|
3083
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
3084
|
+
getIamPolicy(request?: {
|
|
3085
|
+
/** V1 error format. */
|
|
3086
|
+
"$.xgafv"?:
|
|
3087
|
+
string;
|
|
3088
|
+
/** OAuth access token. */
|
|
3089
|
+
access_token?:
|
|
3090
|
+
string;
|
|
3091
|
+
/** Data format for response. */
|
|
3092
|
+
alt?:
|
|
3093
|
+
string;
|
|
3094
|
+
/** JSONP */
|
|
3095
|
+
callback?:
|
|
3096
|
+
string;
|
|
3097
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3098
|
+
fields?:
|
|
3099
|
+
string;
|
|
3100
|
+
/** 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. */
|
|
3101
|
+
key?:
|
|
3102
|
+
string;
|
|
3103
|
+
/** OAuth 2.0 token for the current user. */
|
|
3104
|
+
oauth_token?:
|
|
3105
|
+
string;
|
|
3106
|
+
/**
|
|
3107
|
+
* Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for
|
|
3108
|
+
* policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy
|
|
3109
|
+
* in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional
|
|
3110
|
+
* role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
|
|
3111
|
+
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
3112
|
+
*/
|
|
3113
|
+
"options.requestedPolicyVersion"?:
|
|
3114
|
+
number;
|
|
3115
|
+
/** Returns response with indentations and line breaks. */
|
|
3116
|
+
prettyPrint?:
|
|
3117
|
+
boolean;
|
|
3118
|
+
/** 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. */
|
|
3119
|
+
quotaUser?:
|
|
3120
|
+
string;
|
|
3121
|
+
/**
|
|
3122
|
+
* REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
|
|
3123
|
+
* field.
|
|
3124
|
+
*/
|
|
3125
|
+
resource:
|
|
3126
|
+
string;
|
|
3127
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3128
|
+
upload_protocol?:
|
|
3129
|
+
string;
|
|
3130
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3131
|
+
uploadType?:
|
|
3132
|
+
string;
|
|
3133
|
+
}): Request<Policy>;
|
|
3080
3134
|
/** Lists Scopes. */
|
|
3081
3135
|
list(request?: {
|
|
3082
3136
|
/** V1 error format. */
|
|
@@ -3122,6 +3176,95 @@ declare namespace gapi.client {
|
|
|
3122
3176
|
uploadType?:
|
|
3123
3177
|
string;
|
|
3124
3178
|
}): Request<ListScopesResponse>;
|
|
3179
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
3180
|
+
setIamPolicy(request: {
|
|
3181
|
+
/** V1 error format. */
|
|
3182
|
+
"$.xgafv"?:
|
|
3183
|
+
string;
|
|
3184
|
+
/** OAuth access token. */
|
|
3185
|
+
access_token?:
|
|
3186
|
+
string;
|
|
3187
|
+
/** Data format for response. */
|
|
3188
|
+
alt?:
|
|
3189
|
+
string;
|
|
3190
|
+
/** JSONP */
|
|
3191
|
+
callback?:
|
|
3192
|
+
string;
|
|
3193
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3194
|
+
fields?:
|
|
3195
|
+
string;
|
|
3196
|
+
/** 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. */
|
|
3197
|
+
key?:
|
|
3198
|
+
string;
|
|
3199
|
+
/** OAuth 2.0 token for the current user. */
|
|
3200
|
+
oauth_token?:
|
|
3201
|
+
string;
|
|
3202
|
+
/** Returns response with indentations and line breaks. */
|
|
3203
|
+
prettyPrint?:
|
|
3204
|
+
boolean;
|
|
3205
|
+
/** 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. */
|
|
3206
|
+
quotaUser?:
|
|
3207
|
+
string;
|
|
3208
|
+
/**
|
|
3209
|
+
* REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
|
|
3210
|
+
* field.
|
|
3211
|
+
*/
|
|
3212
|
+
resource:
|
|
3213
|
+
string;
|
|
3214
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3215
|
+
upload_protocol?:
|
|
3216
|
+
string;
|
|
3217
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3218
|
+
uploadType?:
|
|
3219
|
+
string;
|
|
3220
|
+
},
|
|
3221
|
+
body: SetIamPolicyRequest): Request<Policy>;
|
|
3222
|
+
/**
|
|
3223
|
+
* Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
|
|
3224
|
+
* operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
|
|
3225
|
+
*/
|
|
3226
|
+
testIamPermissions(request: {
|
|
3227
|
+
/** V1 error format. */
|
|
3228
|
+
"$.xgafv"?:
|
|
3229
|
+
string;
|
|
3230
|
+
/** OAuth access token. */
|
|
3231
|
+
access_token?:
|
|
3232
|
+
string;
|
|
3233
|
+
/** Data format for response. */
|
|
3234
|
+
alt?:
|
|
3235
|
+
string;
|
|
3236
|
+
/** JSONP */
|
|
3237
|
+
callback?:
|
|
3238
|
+
string;
|
|
3239
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3240
|
+
fields?:
|
|
3241
|
+
string;
|
|
3242
|
+
/** 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. */
|
|
3243
|
+
key?:
|
|
3244
|
+
string;
|
|
3245
|
+
/** OAuth 2.0 token for the current user. */
|
|
3246
|
+
oauth_token?:
|
|
3247
|
+
string;
|
|
3248
|
+
/** Returns response with indentations and line breaks. */
|
|
3249
|
+
prettyPrint?:
|
|
3250
|
+
boolean;
|
|
3251
|
+
/** 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. */
|
|
3252
|
+
quotaUser?:
|
|
3253
|
+
string;
|
|
3254
|
+
/**
|
|
3255
|
+
* REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
|
|
3256
|
+
* this field.
|
|
3257
|
+
*/
|
|
3258
|
+
resource:
|
|
3259
|
+
string;
|
|
3260
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3261
|
+
upload_protocol?:
|
|
3262
|
+
string;
|
|
3263
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3264
|
+
uploadType?:
|
|
3265
|
+
string;
|
|
3266
|
+
},
|
|
3267
|
+
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
3125
3268
|
}
|
|
3126
3269
|
interface LocationsResource {
|
|
3127
3270
|
/** Gets information about a location. */
|
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: 20230515
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -1113,6 +1113,7 @@ gapi.load('client', async () => {
|
|
|
1113
1113
|
});
|
|
1114
1114
|
/** Lists MembershipBindings. */
|
|
1115
1115
|
await gapi.client.gkehub.projects.locations.memberships.bindings.list({
|
|
1116
|
+
filter: "Test string",
|
|
1116
1117
|
pageSize: 42,
|
|
1117
1118
|
pageToken: "Test string",
|
|
1118
1119
|
parent: "Test string",
|
|
@@ -1184,11 +1185,64 @@ gapi.load('client', async () => {
|
|
|
1184
1185
|
await gapi.client.gkehub.projects.locations.scopes.get({
|
|
1185
1186
|
name: "Test string",
|
|
1186
1187
|
});
|
|
1188
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
1189
|
+
await gapi.client.gkehub.projects.locations.scopes.getIamPolicy({
|
|
1190
|
+
"options.requestedPolicyVersion": 42,
|
|
1191
|
+
resource: "Test string",
|
|
1192
|
+
});
|
|
1187
1193
|
/** Lists Scopes. */
|
|
1188
1194
|
await gapi.client.gkehub.projects.locations.scopes.list({
|
|
1189
1195
|
pageSize: 42,
|
|
1190
1196
|
pageToken: "Test string",
|
|
1191
1197
|
parent: "Test string",
|
|
1192
1198
|
});
|
|
1199
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
1200
|
+
await gapi.client.gkehub.projects.locations.scopes.setIamPolicy({
|
|
1201
|
+
resource: "Test string",
|
|
1202
|
+
}, {
|
|
1203
|
+
policy: {
|
|
1204
|
+
auditConfigs: [
|
|
1205
|
+
{
|
|
1206
|
+
auditLogConfigs: [
|
|
1207
|
+
{
|
|
1208
|
+
exemptedMembers: [
|
|
1209
|
+
"Test string"
|
|
1210
|
+
],
|
|
1211
|
+
logType: "Test string",
|
|
1212
|
+
}
|
|
1213
|
+
],
|
|
1214
|
+
service: "Test string",
|
|
1215
|
+
}
|
|
1216
|
+
],
|
|
1217
|
+
bindings: [
|
|
1218
|
+
{
|
|
1219
|
+
condition: {
|
|
1220
|
+
description: "Test string",
|
|
1221
|
+
expression: "Test string",
|
|
1222
|
+
location: "Test string",
|
|
1223
|
+
title: "Test string",
|
|
1224
|
+
},
|
|
1225
|
+
members: [
|
|
1226
|
+
"Test string"
|
|
1227
|
+
],
|
|
1228
|
+
role: "Test string",
|
|
1229
|
+
}
|
|
1230
|
+
],
|
|
1231
|
+
etag: "Test string",
|
|
1232
|
+
version: 42,
|
|
1233
|
+
},
|
|
1234
|
+
updateMask: "Test string",
|
|
1235
|
+
});
|
|
1236
|
+
/**
|
|
1237
|
+
* Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
|
|
1238
|
+
* operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
|
|
1239
|
+
*/
|
|
1240
|
+
await gapi.client.gkehub.projects.locations.scopes.testIamPermissions({
|
|
1241
|
+
resource: "Test string",
|
|
1242
|
+
}, {
|
|
1243
|
+
permissions: [
|
|
1244
|
+
"Test string"
|
|
1245
|
+
],
|
|
1246
|
+
});
|
|
1193
1247
|
}
|
|
1194
1248
|
});
|