@maxim_mazurok/gapi.client.networkconnectivity-v1 0.0.20230712 → 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 +172 -14
  2. package/package.json +1 -1
  3. package/tests.ts +43 -4
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: 20230712
12
+ // Revision: 20230727
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -103,6 +103,9 @@ declare namespace gapi.client {
103
103
  /** The most recent error during operating this connection. */
104
104
  error?:
105
105
  GoogleRpcStatus;
106
+ /** Output only. The error info for the latest error during operating this connection. */
107
+ errorInfo?:
108
+ GoogleRpcErrorInfo;
106
109
  /** The error type indicates whether the error is consumer facing, producer facing or system internal. */
107
110
  errorType?:
108
111
  string;
@@ -189,6 +192,28 @@ declare namespace gapi.client {
189
192
  response?:
190
193
  { [P in string]: any };
191
194
  }
195
+ interface GoogleRpcErrorInfo {
196
+ /**
197
+ * The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example:
198
+ * "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API
199
+ * infrastructure, the error domain is "googleapis.com".
200
+ */
201
+ domain?:
202
+ string;
203
+ /**
204
+ * Additional structured details about this error. Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit,
205
+ * the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the
206
+ * client exceeds the number of instances that can be created in a single (batch) request.
207
+ */
208
+ metadata?:
209
+ { [P in string]: string };
210
+ /**
211
+ * The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at
212
+ * most 63 characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.
213
+ */
214
+ reason?:
215
+ string;
216
+ }
192
217
  interface GoogleRpcStatus {
193
218
  /** The status code, which should be an enum value of google.rpc.Code. */
194
219
  code?:
@@ -203,6 +228,35 @@ declare namespace gapi.client {
203
228
  message?:
204
229
  string;
205
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
+ }
206
260
  interface Hub {
207
261
  /** Output only. The time the hub was created. */
208
262
  createTime?:
@@ -354,6 +408,17 @@ declare namespace gapi.client {
354
408
  vpcNetwork?:
355
409
  string;
356
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
+ }
357
422
  interface ListHubSpokesResponse {
358
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. */
359
424
  nextPageToken?:
@@ -583,6 +648,9 @@ declare namespace gapi.client {
583
648
  /** The most recent error during operating this connection. */
584
649
  error?:
585
650
  GoogleRpcStatus;
651
+ /** Output only. The error info for the latest error during operating this connection. */
652
+ errorInfo?:
653
+ GoogleRpcErrorInfo;
586
654
  /** The error type indicates whether the error is consumer facing, producer facing or system internal. */
587
655
  errorType?:
588
656
  string;
@@ -730,9 +798,6 @@ declare namespace gapi.client {
730
798
  /** Output only. The generated service class name. Use this name to refer to the Service class in Service Connection Maps and Service Connection Policies. */
731
799
  serviceClass?:
732
800
  string;
733
- /** Output only. URIs of all Service Connection Maps using this service class. */
734
- serviceConnectionMaps?:
735
- string[];
736
801
  /** Output only. Time when the ServiceClass was updated. */
737
802
  updateTime?:
738
803
  string;
@@ -878,6 +943,9 @@ declare namespace gapi.client {
878
943
  /** An optional description of the spoke. */
879
944
  description?:
880
945
  string;
946
+ /** The name of the group that this spoke is associated with. */
947
+ group?:
948
+ string;
881
949
  /** Immutable. The name of the hub that this spoke is attached to. */
882
950
  hub?:
883
951
  string;
@@ -981,6 +1049,45 @@ declare namespace gapi.client {
981
1049
  string[];
982
1050
  }
983
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>;
984
1091
  /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
985
1092
  getIamPolicy(request?: {
986
1093
  /** V1 error format. */
@@ -1032,6 +1139,57 @@ declare namespace gapi.client {
1032
1139
  uploadType?:
1033
1140
  string;
1034
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>;
1035
1193
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
1036
1194
  setIamPolicy(request: {
1037
1195
  /** V1 error format. */
@@ -2776,7 +2934,7 @@ declare namespace gapi.client {
2776
2934
  /** The page token. */
2777
2935
  pageToken?:
2778
2936
  string;
2779
- /** Required. The parent resource's name. */
2937
+ /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */
2780
2938
  parent:
2781
2939
  string;
2782
2940
  /** Returns response with indentations and line breaks. */
@@ -3023,7 +3181,7 @@ declare namespace gapi.client {
3023
3181
  /** OAuth 2.0 token for the current user. */
3024
3182
  oauth_token?:
3025
3183
  string;
3026
- /** 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 */
3027
3185
  parent:
3028
3186
  string;
3029
3187
  /** Returns response with indentations and line breaks. */
@@ -3079,7 +3237,7 @@ declare namespace gapi.client {
3079
3237
  /** OAuth 2.0 token for the current user. */
3080
3238
  oauth_token?:
3081
3239
  string;
3082
- /** 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 */
3083
3241
  parent:
3084
3242
  string;
3085
3243
  /** Returns response with indentations and line breaks. */
@@ -3287,7 +3445,7 @@ declare namespace gapi.client {
3287
3445
  /** The page token. */
3288
3446
  pageToken?:
3289
3447
  string;
3290
- /** Required. The parent resource's name. */
3448
+ /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */
3291
3449
  parent:
3292
3450
  string;
3293
3451
  /** Returns response with indentations and line breaks. */
@@ -3534,7 +3692,7 @@ declare namespace gapi.client {
3534
3692
  /** OAuth 2.0 token for the current user. */
3535
3693
  oauth_token?:
3536
3694
  string;
3537
- /** 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 */
3538
3696
  parent:
3539
3697
  string;
3540
3698
  /** Returns response with indentations and line breaks. */
@@ -3587,7 +3745,7 @@ declare namespace gapi.client {
3587
3745
  /** OAuth 2.0 token for the current user. */
3588
3746
  oauth_token?:
3589
3747
  string;
3590
- /** 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 */
3591
3749
  parent:
3592
3750
  string;
3593
3751
  /** Returns response with indentations and line breaks. */
@@ -3792,7 +3950,7 @@ declare namespace gapi.client {
3792
3950
  /** The page token. */
3793
3951
  pageToken?:
3794
3952
  string;
3795
- /** Required. The parent resource's name. */
3953
+ /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */
3796
3954
  parent:
3797
3955
  string;
3798
3956
  /** Returns response with indentations and line breaks. */
@@ -4039,7 +4197,7 @@ declare namespace gapi.client {
4039
4197
  /** OAuth 2.0 token for the current user. */
4040
4198
  oauth_token?:
4041
4199
  string;
4042
- /** 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 */
4043
4201
  parent:
4044
4202
  string;
4045
4203
  /** Returns response with indentations and line breaks. */
@@ -4095,7 +4253,7 @@ declare namespace gapi.client {
4095
4253
  /** OAuth 2.0 token for the current user. */
4096
4254
  oauth_token?:
4097
4255
  string;
4098
- /** 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 */
4099
4257
  parent:
4100
4258
  string;
4101
4259
  /** Returns response with indentations and line breaks. */
@@ -4252,7 +4410,7 @@ declare namespace gapi.client {
4252
4410
  /** The page token. */
4253
4411
  pageToken?:
4254
4412
  string;
4255
- /** Required. The parent resource's name. */
4413
+ /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */
4256
4414
  parent:
4257
4415
  string;
4258
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.20230712",
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: 20230712
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",
@@ -481,9 +493,6 @@ gapi.load('client', async () => {
481
493
  },
482
494
  name: "Test string",
483
495
  serviceClass: "Test string",
484
- serviceConnectionMaps: [
485
- "Test string"
486
- ],
487
496
  updateTime: "Test string",
488
497
  });
489
498
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
@@ -559,6 +568,13 @@ gapi.load('client', async () => {
559
568
  ],
560
569
  message: "Test string",
561
570
  },
571
+ errorInfo: {
572
+ domain: "Test string",
573
+ metadata: {
574
+ A: "Test string"
575
+ },
576
+ reason: "Test string",
577
+ },
562
578
  errorType: "Test string",
563
579
  forwardingRule: "Test string",
564
580
  gceOperation: "Test string",
@@ -636,6 +652,13 @@ gapi.load('client', async () => {
636
652
  ],
637
653
  message: "Test string",
638
654
  },
655
+ errorInfo: {
656
+ domain: "Test string",
657
+ metadata: {
658
+ A: "Test string"
659
+ },
660
+ reason: "Test string",
661
+ },
639
662
  errorType: "Test string",
640
663
  forwardingRule: "Test string",
641
664
  gceOperation: "Test string",
@@ -748,6 +771,13 @@ gapi.load('client', async () => {
748
771
  ],
749
772
  message: "Test string",
750
773
  },
774
+ errorInfo: {
775
+ domain: "Test string",
776
+ metadata: {
777
+ A: "Test string"
778
+ },
779
+ reason: "Test string",
780
+ },
751
781
  errorType: "Test string",
752
782
  gceOperation: "Test string",
753
783
  pscConnectionId: "Test string",
@@ -815,6 +845,13 @@ gapi.load('client', async () => {
815
845
  ],
816
846
  message: "Test string",
817
847
  },
848
+ errorInfo: {
849
+ domain: "Test string",
850
+ metadata: {
851
+ A: "Test string"
852
+ },
853
+ reason: "Test string",
854
+ },
818
855
  errorType: "Test string",
819
856
  gceOperation: "Test string",
820
857
  pscConnectionId: "Test string",
@@ -922,6 +959,7 @@ gapi.load('client', async () => {
922
959
  }, {
923
960
  createTime: "Test string",
924
961
  description: "Test string",
962
+ group: "Test string",
925
963
  hub: "Test string",
926
964
  labels: {
927
965
  A: "Test string"
@@ -999,6 +1037,7 @@ gapi.load('client', async () => {
999
1037
  }, {
1000
1038
  createTime: "Test string",
1001
1039
  description: "Test string",
1040
+ group: "Test string",
1002
1041
  hub: "Test string",
1003
1042
  labels: {
1004
1043
  A: "Test string"