@maxim_mazurok/gapi.client.networkconnectivity-v1 0.0.20230721 → 0.0.20230727

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 +144 -11
  2. package/package.json +1 -1
  3. package/tests.ts +15 -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://networkconnectivity.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230721
12
+ // Revision: 20230727
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -228,6 +228,35 @@ declare namespace gapi.client {
228
228
  message?:
229
229
  string;
230
230
  }
231
+ interface Group {
232
+ /** Output only. The time the group was created. */
233
+ createTime?:
234
+ string;
235
+ /** Optional. The description of the group. */
236
+ description?:
237
+ string;
238
+ /**
239
+ * Optional. Labels in key:value format. For more information about labels, see [Requirements for
240
+ * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
241
+ */
242
+ labels?:
243
+ { [P in string]: string };
244
+ /** Immutable. The name of the group. Group names must be unique. They use the following form: `projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}` */
245
+ name?:
246
+ string;
247
+ /** Output only. The current lifecycle state of this group. */
248
+ state?:
249
+ string;
250
+ /**
251
+ * Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route
252
+ * table is assigned a different unique_id.
253
+ */
254
+ uid?:
255
+ string;
256
+ /** Output only. The time the group was last updated. */
257
+ updateTime?:
258
+ string;
259
+ }
231
260
  interface Hub {
232
261
  /** Output only. The time the hub was created. */
233
262
  createTime?:
@@ -379,6 +408,17 @@ declare namespace gapi.client {
379
408
  vpcNetwork?:
380
409
  string;
381
410
  }
411
+ interface ListGroupsResponse {
412
+ /** The requested groups. */
413
+ groups?:
414
+ Group[];
415
+ /** The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results. */
416
+ nextPageToken?:
417
+ string;
418
+ /** Hubs that could not be reached. */
419
+ unreachable?:
420
+ string[];
421
+ }
382
422
  interface ListHubSpokesResponse {
383
423
  /** The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results. */
384
424
  nextPageToken?:
@@ -903,6 +943,9 @@ declare namespace gapi.client {
903
943
  /** An optional description of the spoke. */
904
944
  description?:
905
945
  string;
946
+ /** The name of the group that this spoke is associated with. */
947
+ group?:
948
+ string;
906
949
  /** Immutable. The name of the hub that this spoke is attached to. */
907
950
  hub?:
908
951
  string;
@@ -1006,6 +1049,45 @@ declare namespace gapi.client {
1006
1049
  string[];
1007
1050
  }
1008
1051
  interface GroupsResource {
1052
+ /** Gets details about a Network Connectivity Center group. */
1053
+ get(request?: {
1054
+ /** V1 error format. */
1055
+ "$.xgafv"?:
1056
+ string;
1057
+ /** OAuth access token. */
1058
+ access_token?:
1059
+ string;
1060
+ /** Data format for response. */
1061
+ alt?:
1062
+ string;
1063
+ /** JSONP */
1064
+ callback?:
1065
+ string;
1066
+ /** Selector specifying which fields to include in a partial response. */
1067
+ fields?:
1068
+ string;
1069
+ /** 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. */
1070
+ key?:
1071
+ string;
1072
+ /** Required. The name of the route table resource. */
1073
+ name:
1074
+ string;
1075
+ /** OAuth 2.0 token for the current user. */
1076
+ oauth_token?:
1077
+ string;
1078
+ /** Returns response with indentations and line breaks. */
1079
+ prettyPrint?:
1080
+ boolean;
1081
+ /** 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. */
1082
+ quotaUser?:
1083
+ string;
1084
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1085
+ upload_protocol?:
1086
+ string;
1087
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1088
+ uploadType?:
1089
+ string;
1090
+ }): Request<Group>;
1009
1091
  /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
1010
1092
  getIamPolicy(request?: {
1011
1093
  /** V1 error format. */
@@ -1057,6 +1139,57 @@ declare namespace gapi.client {
1057
1139
  uploadType?:
1058
1140
  string;
1059
1141
  }): Request<Policy>;
1142
+ /** Lists groups in a given hub. */
1143
+ list(request?: {
1144
+ /** V1 error format. */
1145
+ "$.xgafv"?:
1146
+ string;
1147
+ /** OAuth access token. */
1148
+ access_token?:
1149
+ string;
1150
+ /** Data format for response. */
1151
+ alt?:
1152
+ string;
1153
+ /** JSONP */
1154
+ callback?:
1155
+ string;
1156
+ /** Selector specifying which fields to include in a partial response. */
1157
+ fields?:
1158
+ string;
1159
+ /** An expression that filters the list of results. */
1160
+ filter?:
1161
+ string;
1162
+ /** 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. */
1163
+ key?:
1164
+ string;
1165
+ /** OAuth 2.0 token for the current user. */
1166
+ oauth_token?:
1167
+ string;
1168
+ /** Sort the results by a certain order. */
1169
+ orderBy?:
1170
+ string;
1171
+ /** The maximum number of results to return per page. */
1172
+ pageSize?:
1173
+ number;
1174
+ /** The page token. */
1175
+ pageToken?:
1176
+ string;
1177
+ /** Required. The parent resource's name. */
1178
+ parent:
1179
+ string;
1180
+ /** Returns response with indentations and line breaks. */
1181
+ prettyPrint?:
1182
+ boolean;
1183
+ /** 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. */
1184
+ quotaUser?:
1185
+ string;
1186
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1187
+ upload_protocol?:
1188
+ string;
1189
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1190
+ uploadType?:
1191
+ string;
1192
+ }): Request<ListGroupsResponse>;
1060
1193
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
1061
1194
  setIamPolicy(request: {
1062
1195
  /** V1 error format. */
@@ -2801,7 +2934,7 @@ declare namespace gapi.client {
2801
2934
  /** The page token. */
2802
2935
  pageToken?:
2803
2936
  string;
2804
- /** Required. The parent resource's name. */
2937
+ /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */
2805
2938
  parent:
2806
2939
  string;
2807
2940
  /** Returns response with indentations and line breaks. */
@@ -3048,7 +3181,7 @@ declare namespace gapi.client {
3048
3181
  /** OAuth 2.0 token for the current user. */
3049
3182
  oauth_token?:
3050
3183
  string;
3051
- /** Required. The parent resource's name of the ServiceConnectionMap. */
3184
+ /** Required. The parent resource's name of the ServiceConnectionMap. ex. projects/123/locations/us-east1 */
3052
3185
  parent:
3053
3186
  string;
3054
3187
  /** Returns response with indentations and line breaks. */
@@ -3104,7 +3237,7 @@ declare namespace gapi.client {
3104
3237
  /** OAuth 2.0 token for the current user. */
3105
3238
  oauth_token?:
3106
3239
  string;
3107
- /** Required. The parent resource's name of the ServiceConnectionMap. */
3240
+ /** Required. The parent resource's name of the ServiceConnectionMap. ex. projects/123/locations/us-east1 */
3108
3241
  parent:
3109
3242
  string;
3110
3243
  /** Returns response with indentations and line breaks. */
@@ -3312,7 +3445,7 @@ declare namespace gapi.client {
3312
3445
  /** The page token. */
3313
3446
  pageToken?:
3314
3447
  string;
3315
- /** Required. The parent resource's name. */
3448
+ /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */
3316
3449
  parent:
3317
3450
  string;
3318
3451
  /** Returns response with indentations and line breaks. */
@@ -3559,7 +3692,7 @@ declare namespace gapi.client {
3559
3692
  /** OAuth 2.0 token for the current user. */
3560
3693
  oauth_token?:
3561
3694
  string;
3562
- /** Required. The parent resource's name of the ServiceConnectionPolicy. */
3695
+ /** Required. The parent resource's name of the ServiceConnectionPolicy. ex. projects/123/locations/us-east1 */
3563
3696
  parent:
3564
3697
  string;
3565
3698
  /** Returns response with indentations and line breaks. */
@@ -3612,7 +3745,7 @@ declare namespace gapi.client {
3612
3745
  /** OAuth 2.0 token for the current user. */
3613
3746
  oauth_token?:
3614
3747
  string;
3615
- /** Required. The parent resource's name of the ServiceConnectionPolicy. */
3748
+ /** Required. The parent resource's name of the ServiceConnectionPolicy. ex. projects/123/locations/us-east1 */
3616
3749
  parent:
3617
3750
  string;
3618
3751
  /** Returns response with indentations and line breaks. */
@@ -3817,7 +3950,7 @@ declare namespace gapi.client {
3817
3950
  /** The page token. */
3818
3951
  pageToken?:
3819
3952
  string;
3820
- /** Required. The parent resource's name. */
3953
+ /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */
3821
3954
  parent:
3822
3955
  string;
3823
3956
  /** Returns response with indentations and line breaks. */
@@ -4064,7 +4197,7 @@ declare namespace gapi.client {
4064
4197
  /** OAuth 2.0 token for the current user. */
4065
4198
  oauth_token?:
4066
4199
  string;
4067
- /** Required. The parent resource's name of the ServiceConnectionToken. */
4200
+ /** Required. The parent resource's name of the ServiceConnectionToken. ex. projects/123/locations/us-east1 */
4068
4201
  parent:
4069
4202
  string;
4070
4203
  /** Returns response with indentations and line breaks. */
@@ -4120,7 +4253,7 @@ declare namespace gapi.client {
4120
4253
  /** OAuth 2.0 token for the current user. */
4121
4254
  oauth_token?:
4122
4255
  string;
4123
- /** Required. The parent resource's name of the ServiceConnectionToken. */
4256
+ /** Required. The parent resource's name of the ServiceConnectionToken. ex. projects/123/locations/us-east1 */
4124
4257
  parent:
4125
4258
  string;
4126
4259
  /** Returns response with indentations and line breaks. */
@@ -4277,7 +4410,7 @@ declare namespace gapi.client {
4277
4410
  /** The page token. */
4278
4411
  pageToken?:
4279
4412
  string;
4280
- /** Required. The parent resource's name. */
4413
+ /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */
4281
4414
  parent:
4282
4415
  string;
4283
4416
  /** Returns response with indentations and line breaks. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.networkconnectivity-v1",
3
- "version": "0.0.20230721",
3
+ "version": "0.0.20230727",
4
4
  "description": "TypeScript typings for Network Connectivity 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: 20230721
6
+ // Revision: 20230727
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -213,11 +213,23 @@ gapi.load('client', async () => {
213
213
  "Test string"
214
214
  ],
215
215
  });
216
+ /** Gets details about a Network Connectivity Center group. */
217
+ await gapi.client.networkconnectivity.projects.locations.global.hubs.groups.get({
218
+ name: "Test string",
219
+ });
216
220
  /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
217
221
  await gapi.client.networkconnectivity.projects.locations.global.hubs.groups.getIamPolicy({
218
222
  "options.requestedPolicyVersion": 42,
219
223
  resource: "Test string",
220
224
  });
225
+ /** Lists groups in a given hub. */
226
+ await gapi.client.networkconnectivity.projects.locations.global.hubs.groups.list({
227
+ filter: "Test string",
228
+ orderBy: "Test string",
229
+ pageSize: 42,
230
+ pageToken: "Test string",
231
+ parent: "Test string",
232
+ });
221
233
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
222
234
  await gapi.client.networkconnectivity.projects.locations.global.hubs.groups.setIamPolicy({
223
235
  resource: "Test string",
@@ -947,6 +959,7 @@ gapi.load('client', async () => {
947
959
  }, {
948
960
  createTime: "Test string",
949
961
  description: "Test string",
962
+ group: "Test string",
950
963
  hub: "Test string",
951
964
  labels: {
952
965
  A: "Test string"
@@ -1024,6 +1037,7 @@ gapi.load('client', async () => {
1024
1037
  }, {
1025
1038
  createTime: "Test string",
1026
1039
  description: "Test string",
1040
+ group: "Test string",
1027
1041
  hub: "Test string",
1028
1042
  labels: {
1029
1043
  A: "Test string"