@maxim_mazurok/gapi.client.networkconnectivity-v1 0.0.20230921 → 0.0.20231109

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 -191
  2. package/package.json +1 -1
  3. package/tests.ts +1 -17
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: 20230921
12
+ // Revision: 20231109
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -41,17 +41,6 @@ declare namespace gapi.client {
41
41
  spoke?:
42
42
  Spoke;
43
43
  }
44
- interface AcceptSpokeRequest {
45
- /**
46
- * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been
47
- * completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an
48
- * initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it
49
- * was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID, with the exception
50
- * that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
51
- */
52
- requestId?:
53
- string;
54
- }
55
44
  interface AuditConfig {
56
45
  /** The configuration for logging of each type of permission. */
57
46
  auditLogConfigs?:
@@ -785,20 +774,6 @@ declare namespace gapi.client {
785
774
  spoke?:
786
775
  Spoke;
787
776
  }
788
- interface RejectSpokeRequest {
789
- /** Optional. Additional information provided by the hub administrator in the `RejectSpoke` call. */
790
- details?:
791
- string;
792
- /**
793
- * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been
794
- * completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an
795
- * initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it
796
- * was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID, with the exception
797
- * that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
798
- */
799
- requestId?:
800
- string;
801
- }
802
777
  interface Route {
803
778
  /** Output only. The time the route was created. */
804
779
  createTime?:
@@ -4977,87 +4952,6 @@ declare namespace gapi.client {
4977
4952
  }): Request<ListServiceConnectionTokensResponse>;
4978
4953
  }
4979
4954
  interface SpokesResource {
4980
- /** Accepts a proposal to attach a Network Connectivity Center spoke to the hub. */
4981
- accept(request: {
4982
- /** V1 error format. */
4983
- "$.xgafv"?:
4984
- string;
4985
- /** OAuth access token. */
4986
- access_token?:
4987
- string;
4988
- /** Data format for response. */
4989
- alt?:
4990
- string;
4991
- /** JSONP */
4992
- callback?:
4993
- string;
4994
- /** Selector specifying which fields to include in a partial response. */
4995
- fields?:
4996
- string;
4997
- /** 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. */
4998
- key?:
4999
- string;
5000
- /** Required. The name of the spoke to accept. */
5001
- name:
5002
- string;
5003
- /** OAuth 2.0 token for the current user. */
5004
- oauth_token?:
5005
- string;
5006
- /** Returns response with indentations and line breaks. */
5007
- prettyPrint?:
5008
- boolean;
5009
- /** 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. */
5010
- quotaUser?:
5011
- string;
5012
- /** Upload protocol for media (e.g. "raw", "multipart"). */
5013
- upload_protocol?:
5014
- string;
5015
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5016
- uploadType?:
5017
- string;
5018
- /** Request body */
5019
- resource:
5020
- AcceptSpokeRequest;
5021
- }): Request<GoogleLongrunningOperation>;
5022
- accept(request: {
5023
- /** V1 error format. */
5024
- "$.xgafv"?:
5025
- string;
5026
- /** OAuth access token. */
5027
- access_token?:
5028
- string;
5029
- /** Data format for response. */
5030
- alt?:
5031
- string;
5032
- /** JSONP */
5033
- callback?:
5034
- string;
5035
- /** Selector specifying which fields to include in a partial response. */
5036
- fields?:
5037
- string;
5038
- /** 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. */
5039
- key?:
5040
- string;
5041
- /** Required. The name of the spoke to accept. */
5042
- name:
5043
- string;
5044
- /** OAuth 2.0 token for the current user. */
5045
- oauth_token?:
5046
- string;
5047
- /** Returns response with indentations and line breaks. */
5048
- prettyPrint?:
5049
- boolean;
5050
- /** 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. */
5051
- quotaUser?:
5052
- string;
5053
- /** Upload protocol for media (e.g. "raw", "multipart"). */
5054
- upload_protocol?:
5055
- string;
5056
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5057
- uploadType?:
5058
- string;
5059
- },
5060
- body: AcceptSpokeRequest): Request<GoogleLongrunningOperation>;
5061
4955
  /** Creates a Network Connectivity Center spoke. */
5062
4956
  create(request: {
5063
4957
  /** V1 error format. */
@@ -5463,90 +5357,6 @@ declare namespace gapi.client {
5463
5357
  string;
5464
5358
  },
5465
5359
  body: Spoke): Request<GoogleLongrunningOperation>;
5466
- /**
5467
- * Rejects a Network Connectivity Center spoke from being attached to the hub. If the spoke was previously in the `ACTIVE` state, it transitions to the `INACTIVE` state and is no
5468
- * longer able to connect to other spokes that are attached to the hub.
5469
- */
5470
- reject(request: {
5471
- /** V1 error format. */
5472
- "$.xgafv"?:
5473
- string;
5474
- /** OAuth access token. */
5475
- access_token?:
5476
- string;
5477
- /** Data format for response. */
5478
- alt?:
5479
- string;
5480
- /** JSONP */
5481
- callback?:
5482
- string;
5483
- /** Selector specifying which fields to include in a partial response. */
5484
- fields?:
5485
- string;
5486
- /** 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. */
5487
- key?:
5488
- string;
5489
- /** Required. The name of the spoke to reject. */
5490
- name:
5491
- string;
5492
- /** OAuth 2.0 token for the current user. */
5493
- oauth_token?:
5494
- string;
5495
- /** Returns response with indentations and line breaks. */
5496
- prettyPrint?:
5497
- boolean;
5498
- /** 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. */
5499
- quotaUser?:
5500
- string;
5501
- /** Upload protocol for media (e.g. "raw", "multipart"). */
5502
- upload_protocol?:
5503
- string;
5504
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5505
- uploadType?:
5506
- string;
5507
- /** Request body */
5508
- resource:
5509
- RejectSpokeRequest;
5510
- }): Request<GoogleLongrunningOperation>;
5511
- reject(request: {
5512
- /** V1 error format. */
5513
- "$.xgafv"?:
5514
- string;
5515
- /** OAuth access token. */
5516
- access_token?:
5517
- string;
5518
- /** Data format for response. */
5519
- alt?:
5520
- string;
5521
- /** JSONP */
5522
- callback?:
5523
- string;
5524
- /** Selector specifying which fields to include in a partial response. */
5525
- fields?:
5526
- string;
5527
- /** 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. */
5528
- key?:
5529
- string;
5530
- /** Required. The name of the spoke to reject. */
5531
- name:
5532
- string;
5533
- /** OAuth 2.0 token for the current user. */
5534
- oauth_token?:
5535
- string;
5536
- /** Returns response with indentations and line breaks. */
5537
- prettyPrint?:
5538
- boolean;
5539
- /** 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. */
5540
- quotaUser?:
5541
- string;
5542
- /** Upload protocol for media (e.g. "raw", "multipart"). */
5543
- upload_protocol?:
5544
- string;
5545
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5546
- uploadType?:
5547
- string;
5548
- },
5549
- body: RejectSpokeRequest): Request<GoogleLongrunningOperation>;
5550
5360
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
5551
5361
  setIamPolicy(request: {
5552
5362
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.networkconnectivity-v1",
3
- "version": "0.0.20230921",
3
+ "version": "0.0.20231109",
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: 20230921
6
+ // Revision: 20231109
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -1023,12 +1023,6 @@ gapi.load('client', async () => {
1023
1023
  pageToken: "Test string",
1024
1024
  parent: "Test string",
1025
1025
  });
1026
- /** Accepts a proposal to attach a Network Connectivity Center spoke to the hub. */
1027
- await gapi.client.networkconnectivity.projects.locations.spokes.accept({
1028
- name: "Test string",
1029
- }, {
1030
- requestId: "Test string",
1031
- });
1032
1026
  /** Creates a Network Connectivity Center spoke. */
1033
1027
  await gapi.client.networkconnectivity.projects.locations.spokes.create({
1034
1028
  parent: "Test string",
@@ -1163,16 +1157,6 @@ gapi.load('client', async () => {
1163
1157
  uniqueId: "Test string",
1164
1158
  updateTime: "Test string",
1165
1159
  });
1166
- /**
1167
- * Rejects a Network Connectivity Center spoke from being attached to the hub. If the spoke was previously in the `ACTIVE` state, it transitions to the `INACTIVE` state and is no longer
1168
- * able to connect to other spokes that are attached to the hub.
1169
- */
1170
- await gapi.client.networkconnectivity.projects.locations.spokes.reject({
1171
- name: "Test string",
1172
- }, {
1173
- details: "Test string",
1174
- requestId: "Test string",
1175
- });
1176
1160
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
1177
1161
  await gapi.client.networkconnectivity.projects.locations.spokes.setIamPolicy({
1178
1162
  resource: "Test string",