@maxim_mazurok/gapi.client.networkconnectivity-v1 0.0.20230913 → 0.0.20231030

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 +83 -273
  2. package/package.json +1 -1
  3. package/tests.ts +8 -24
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: 20230913
12
+ // Revision: 20231030
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -24,7 +24,7 @@ declare namespace gapi.client {
24
24
  namespace networkconnectivity {
25
25
  interface AcceptHubSpokeRequest {
26
26
  /**
27
- * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been
27
+ * 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
28
28
  * 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
29
29
  * 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
30
30
  * 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
@@ -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 will know 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?:
@@ -174,16 +163,16 @@ declare namespace gapi.client {
174
163
  string;
175
164
  }
176
165
  interface Filter {
177
- /** Optional. The destination IP range of outgoing packets that this policy based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4. */
166
+ /** Optional. The destination IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4. */
178
167
  destRange?:
179
168
  string;
180
- /** Optional. The IP protocol that this policy based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'. */
169
+ /** Optional. The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'. */
181
170
  ipProtocol?:
182
171
  string;
183
- /** Required. Internet protocol versions this policy based route applies to. For this version, only IPV4 is supported. */
172
+ /** Required. Internet protocol versions this policy-based route applies to. For this version, only IPV4 is supported. */
184
173
  protocolVersion?:
185
174
  string;
186
- /** Optional. The source IP range of outgoing packets that this policy based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4. */
175
+ /** Optional. The source IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4. */
187
176
  srcRange?:
188
177
  string;
189
178
  }
@@ -335,7 +324,7 @@ declare namespace gapi.client {
335
324
  string;
336
325
  }
337
326
  interface InterconnectAttachment {
338
- /** Optional. Cloud region to install this policy based route on interconnect attachment. Use `all` to install it on all interconnect attachments. */
327
+ /** Optional. Cloud region to install this policy-based route on interconnect attachment. Use `all` to install it on all interconnect attachments. */
339
328
  region?:
340
329
  string;
341
330
  }
@@ -502,7 +491,7 @@ declare namespace gapi.client {
502
491
  /** The next pagination token in the List response. It should be used as page_token for the following request. An empty value means no more result. */
503
492
  nextPageToken?:
504
493
  string;
505
- /** Policy based routes to be returned. */
494
+ /** Policy-based routes to be returned. */
506
495
  policyBasedRoutes?:
507
496
  PolicyBasedRoute[];
508
497
  /** Locations that could not be reached. */
@@ -672,7 +661,7 @@ declare namespace gapi.client {
672
661
  number;
673
662
  }
674
663
  interface PolicyBasedRoute {
675
- /** Output only. Time when the PolicyBasedRoute was created. */
664
+ /** Output only. Time when the policy-based route was created. */
676
665
  createTime?:
677
666
  string;
678
667
  /** Optional. An optional description of this resource. Provide this field when you create the resource. */
@@ -681,10 +670,10 @@ declare namespace gapi.client {
681
670
  /** Required. The filter to match L4 traffic. */
682
671
  filter?:
683
672
  Filter;
684
- /** Optional. The interconnect attachments to which this route applies to. */
673
+ /** Optional. The interconnect attachments that this policy-based route applies to. */
685
674
  interconnectAttachment?:
686
675
  InterconnectAttachment;
687
- /** Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for Policy Based Route resources. */
676
+ /** Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for policy-based Route resources. */
688
677
  kind?:
689
678
  string;
690
679
  /** User-defined labels. */
@@ -693,28 +682,28 @@ declare namespace gapi.client {
693
682
  /** Immutable. A unique name of the resource in the form of `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}` */
694
683
  name?:
695
684
  string;
696
- /** Required. Fully-qualified URL of the network that this route applies to. e.g. projects/my-project/global/networks/my-network. */
685
+ /** Required. Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network. */
697
686
  network?:
698
687
  string;
699
- /** Optional. The IP of a global access enabled L4 ILB that should be the next hop to handle matching packets. For this version, only next_hop_ilb_ip is supported. */
688
+ /** Optional. The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. For this version, only nextHopIlbIp is supported. */
700
689
  nextHopIlbIp?:
701
690
  string;
702
691
  /** Optional. Other routes that will be referenced to determine the next hop of the packet. */
703
692
  nextHopOtherRoutes?:
704
693
  string;
705
694
  /**
706
- * Optional. The priority of this policy based route. Priority is used to break ties in cases where there are more than one matching policy based routes found. In cases where multiple
707
- * policy based routes are matched, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 1 to 65535, inclusive.
695
+ * Optional. The priority of this policy-based route. Priority is used to break ties in cases where there are more than one matching policy-based routes found. In cases where multiple
696
+ * policy-based routes are matched, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 1 to 65535, inclusive.
708
697
  */
709
698
  priority?:
710
699
  number;
711
700
  /** Output only. Server-defined fully-qualified URL for this resource. */
712
701
  selfLink?:
713
702
  string;
714
- /** Output only. Time when the PolicyBasedRoute was updated. */
703
+ /** Output only. Time when the policy-based route was updated. */
715
704
  updateTime?:
716
705
  string;
717
- /** Optional. VM instances to which this policy based route applies to. */
706
+ /** Optional. VM instances to which this policy-based route applies to. */
718
707
  virtualMachine?:
719
708
  VirtualMachine;
720
709
  /** Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages. */
@@ -768,7 +757,7 @@ declare namespace gapi.client {
768
757
  details?:
769
758
  string;
770
759
  /**
771
- * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been
760
+ * 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
772
761
  * 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
773
762
  * 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
774
763
  * 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
@@ -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 will know 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?:
@@ -1170,7 +1145,7 @@ declare namespace gapi.client {
1170
1145
  string[];
1171
1146
  }
1172
1147
  interface VirtualMachine {
1173
- /** Optional. A list of VM instance tags to which this policy based route applies to. VM instances that have ANY of tags specified here will install this PBR. */
1148
+ /** Optional. A list of VM instance tags the this policy-based route applies to. VM instances that have ANY of tags specified here will install this PBR. */
1174
1149
  tags?:
1175
1150
  string[];
1176
1151
  }
@@ -1608,7 +1583,7 @@ declare namespace gapi.client {
1608
1583
  RoutesResource;
1609
1584
  }
1610
1585
  interface HubsResource {
1611
- /** Accepts a proposal to attach a Network Connectivity Center spoke to the hub. */
1586
+ /** Accepts a proposal to attach a Network Connectivity Center spoke to a hub. */
1612
1587
  acceptSpoke(request: {
1613
1588
  /** V1 error format. */
1614
1589
  "$.xgafv"?:
@@ -1628,7 +1603,7 @@ declare namespace gapi.client {
1628
1603
  /** 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. */
1629
1604
  key?:
1630
1605
  string;
1631
- /** Required. The name of the hub. */
1606
+ /** Required. The name of the hub into which to accept the spoke. */
1632
1607
  name:
1633
1608
  string;
1634
1609
  /** OAuth 2.0 token for the current user. */
@@ -1669,7 +1644,7 @@ declare namespace gapi.client {
1669
1644
  /** 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. */
1670
1645
  key?:
1671
1646
  string;
1672
- /** Required. The name of the hub. */
1647
+ /** Required. The name of the hub into which to accept the spoke. */
1673
1648
  name:
1674
1649
  string;
1675
1650
  /** OAuth 2.0 token for the current user. */
@@ -1725,11 +1700,11 @@ declare namespace gapi.client {
1725
1700
  quotaUser?:
1726
1701
  string;
1727
1702
  /**
1728
- * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already
1729
- * been 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
1730
- * make an 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
1731
- * received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID,
1732
- * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1703
+ * 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
1704
+ * 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
1705
+ * 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
1706
+ * 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
1707
+ * exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1733
1708
  */
1734
1709
  requestId?:
1735
1710
  string;
@@ -1778,11 +1753,11 @@ declare namespace gapi.client {
1778
1753
  quotaUser?:
1779
1754
  string;
1780
1755
  /**
1781
- * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already
1782
- * been 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
1783
- * make an 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
1784
- * received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID,
1785
- * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1756
+ * 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
1757
+ * 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
1758
+ * 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
1759
+ * 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
1760
+ * exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1786
1761
  */
1787
1762
  requestId?:
1788
1763
  string;
@@ -1827,11 +1802,11 @@ declare namespace gapi.client {
1827
1802
  quotaUser?:
1828
1803
  string;
1829
1804
  /**
1830
- * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already
1831
- * been 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
1832
- * make an 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
1833
- * received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID,
1834
- * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1805
+ * 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
1806
+ * 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
1807
+ * 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
1808
+ * 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
1809
+ * exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1835
1810
  */
1836
1811
  requestId?:
1837
1812
  string;
@@ -2080,11 +2055,11 @@ declare namespace gapi.client {
2080
2055
  quotaUser?:
2081
2056
  string;
2082
2057
  /**
2083
- * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already
2084
- * been 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
2085
- * make an 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
2086
- * received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID,
2087
- * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2058
+ * 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
2059
+ * 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
2060
+ * 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
2061
+ * 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
2062
+ * exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2088
2063
  */
2089
2064
  requestId?:
2090
2065
  string;
@@ -2136,11 +2111,11 @@ declare namespace gapi.client {
2136
2111
  quotaUser?:
2137
2112
  string;
2138
2113
  /**
2139
- * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already
2140
- * been 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
2141
- * make an 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
2142
- * received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID,
2143
- * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2114
+ * 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
2115
+ * 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
2116
+ * 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
2117
+ * 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
2118
+ * exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2144
2119
  */
2145
2120
  requestId?:
2146
2121
  string;
@@ -2159,8 +2134,8 @@ declare namespace gapi.client {
2159
2134
  },
2160
2135
  body: Hub): Request<GoogleLongrunningOperation>;
2161
2136
  /**
2162
- * 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
2163
- * longer able to connect to other spokes that are attached to the hub.
2137
+ * Rejects a Network Connectivity Center spoke from being attached to a hub. If the spoke was previously in the `ACTIVE` state, it transitions to the `INACTIVE` state and is no longer
2138
+ * able to connect to other spokes that are attached to the hub.
2164
2139
  */
2165
2140
  rejectSpoke(request: {
2166
2141
  /** V1 error format. */
@@ -2181,7 +2156,7 @@ declare namespace gapi.client {
2181
2156
  /** 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. */
2182
2157
  key?:
2183
2158
  string;
2184
- /** Required. The name of the hub. */
2159
+ /** Required. The name of the hub from which to reject the spoke. */
2185
2160
  name:
2186
2161
  string;
2187
2162
  /** OAuth 2.0 token for the current user. */
@@ -2222,7 +2197,7 @@ declare namespace gapi.client {
2222
2197
  /** 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. */
2223
2198
  key?:
2224
2199
  string;
2225
- /** Required. The name of the hub. */
2200
+ /** Required. The name of the hub from which to reject the spoke. */
2226
2201
  name:
2227
2202
  string;
2228
2203
  /** OAuth 2.0 token for the current user. */
@@ -2337,7 +2312,7 @@ declare namespace gapi.client {
2337
2312
  RouteTablesResource;
2338
2313
  }
2339
2314
  interface PolicyBasedRoutesResource {
2340
- /** Creates a new PolicyBasedRoute in a given project and location. */
2315
+ /** Creates a new policy-based route in a given project and location. */
2341
2316
  create(request: {
2342
2317
  /** V1 error format. */
2343
2318
  "$.xgafv"?:
@@ -2363,7 +2338,7 @@ declare namespace gapi.client {
2363
2338
  /** Required. The parent resource's name of the PolicyBasedRoute. */
2364
2339
  parent:
2365
2340
  string;
2366
- /** Required. Unique id for the Policy Based Route to create. */
2341
+ /** Required. Unique id for the policy-based route to create. */
2367
2342
  policyBasedRouteId?:
2368
2343
  string;
2369
2344
  /** Returns response with indentations and line breaks. */
@@ -2416,7 +2391,7 @@ declare namespace gapi.client {
2416
2391
  /** Required. The parent resource's name of the PolicyBasedRoute. */
2417
2392
  parent:
2418
2393
  string;
2419
- /** Required. Unique id for the Policy Based Route to create. */
2394
+ /** Required. Unique id for the policy-based route to create. */
2420
2395
  policyBasedRouteId?:
2421
2396
  string;
2422
2397
  /** Returns response with indentations and line breaks. */
@@ -2442,7 +2417,7 @@ declare namespace gapi.client {
2442
2417
  string;
2443
2418
  },
2444
2419
  body: PolicyBasedRoute): Request<GoogleLongrunningOperation>;
2445
- /** Deletes a single PolicyBasedRoute. */
2420
+ /** Deletes a single policy-based route. */
2446
2421
  delete(request?: {
2447
2422
  /** V1 error format. */
2448
2423
  "$.xgafv"?:
@@ -2462,7 +2437,7 @@ declare namespace gapi.client {
2462
2437
  /** 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. */
2463
2438
  key?:
2464
2439
  string;
2465
- /** Required. Name of the PolicyBasedRoute resource to delete. */
2440
+ /** Required. Name of the policy-based route resource to delete. */
2466
2441
  name:
2467
2442
  string;
2468
2443
  /** OAuth 2.0 token for the current user. */
@@ -2490,7 +2465,7 @@ declare namespace gapi.client {
2490
2465
  uploadType?:
2491
2466
  string;
2492
2467
  }): Request<GoogleLongrunningOperation>;
2493
- /** Gets details of a single PolicyBasedRoute. */
2468
+ /** Gets details of a single policy-based route. */
2494
2469
  get(request?: {
2495
2470
  /** V1 error format. */
2496
2471
  "$.xgafv"?:
@@ -2580,7 +2555,7 @@ declare namespace gapi.client {
2580
2555
  uploadType?:
2581
2556
  string;
2582
2557
  }): Request<Policy>;
2583
- /** Lists PolicyBasedRoutes in a given project and location. */
2558
+ /** Lists policy-based routes in a given project and location. */
2584
2559
  list(request?: {
2585
2560
  /** V1 error format. */
2586
2561
  "$.xgafv"?:
@@ -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. */
@@ -5091,11 +4985,11 @@ declare namespace gapi.client {
5091
4985
  quotaUser?:
5092
4986
  string;
5093
4987
  /**
5094
- * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already
5095
- * been 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
5096
- * make an 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
5097
- * received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID,
5098
- * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
4988
+ * 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
4989
+ * 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
4990
+ * 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
4991
+ * 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
4992
+ * exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
5099
4993
  */
5100
4994
  requestId?:
5101
4995
  string;
@@ -5144,11 +5038,11 @@ declare namespace gapi.client {
5144
5038
  quotaUser?:
5145
5039
  string;
5146
5040
  /**
5147
- * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already
5148
- * been 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
5149
- * make an 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
5150
- * received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID,
5151
- * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
5041
+ * 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
5042
+ * 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
5043
+ * 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
5044
+ * 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
5045
+ * exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
5152
5046
  */
5153
5047
  requestId?:
5154
5048
  string;
@@ -5196,11 +5090,11 @@ declare namespace gapi.client {
5196
5090
  quotaUser?:
5197
5091
  string;
5198
5092
  /**
5199
- * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already
5200
- * been 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
5201
- * make an 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
5202
- * received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID,
5203
- * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
5093
+ * 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
5094
+ * 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
5095
+ * 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
5096
+ * 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
5097
+ * exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
5204
5098
  */
5205
5099
  requestId?:
5206
5100
  string;
@@ -5385,11 +5279,11 @@ declare namespace gapi.client {
5385
5279
  quotaUser?:
5386
5280
  string;
5387
5281
  /**
5388
- * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already
5389
- * been 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
5390
- * make an 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
5391
- * received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID,
5392
- * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
5282
+ * 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
5283
+ * 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
5284
+ * 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
5285
+ * 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
5286
+ * exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
5393
5287
  */
5394
5288
  requestId?:
5395
5289
  string;
@@ -5441,11 +5335,11 @@ declare namespace gapi.client {
5441
5335
  quotaUser?:
5442
5336
  string;
5443
5337
  /**
5444
- * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already
5445
- * been 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
5446
- * make an 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
5447
- * received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID,
5448
- * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
5338
+ * 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
5339
+ * 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
5340
+ * 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
5341
+ * 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
5342
+ * exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
5449
5343
  */
5450
5344
  requestId?:
5451
5345
  string;
@@ -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.20230913",
3
+ "version": "0.0.20231030",
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: 20230913
6
+ // Revision: 20231030
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -40,7 +40,7 @@ gapi.load('client', async () => {
40
40
  pageSize: 42,
41
41
  pageToken: "Test string",
42
42
  });
43
- /** Accepts a proposal to attach a Network Connectivity Center spoke to the hub. */
43
+ /** Accepts a proposal to attach a Network Connectivity Center spoke to a hub. */
44
44
  await gapi.client.networkconnectivity.projects.locations.global.hubs.acceptSpoke({
45
45
  name: "Test string",
46
46
  }, {
@@ -173,8 +173,8 @@ gapi.load('client', async () => {
173
173
  updateTime: "Test string",
174
174
  });
175
175
  /**
176
- * 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
177
- * able to connect to other spokes that are attached to the hub.
176
+ * Rejects a Network Connectivity Center spoke from being attached to a hub. If the spoke was previously in the `ACTIVE` state, it transitions to the `INACTIVE` state and is no longer able
177
+ * to connect to other spokes that are attached to the hub.
178
178
  */
179
179
  await gapi.client.networkconnectivity.projects.locations.global.hubs.rejectSpoke({
180
180
  name: "Test string",
@@ -320,7 +320,7 @@ gapi.load('client', async () => {
320
320
  pageToken: "Test string",
321
321
  parent: "Test string",
322
322
  });
323
- /** Creates a new PolicyBasedRoute in a given project and location. */
323
+ /** Creates a new policy-based route in a given project and location. */
324
324
  await gapi.client.networkconnectivity.projects.locations.global.policyBasedRoutes.create({
325
325
  parent: "Test string",
326
326
  policyBasedRouteId: "Test string",
@@ -363,12 +363,12 @@ gapi.load('client', async () => {
363
363
  }
364
364
  ],
365
365
  });
366
- /** Deletes a single PolicyBasedRoute. */
366
+ /** Deletes a single policy-based route. */
367
367
  await gapi.client.networkconnectivity.projects.locations.global.policyBasedRoutes.delete({
368
368
  name: "Test string",
369
369
  requestId: "Test string",
370
370
  });
371
- /** Gets details of a single PolicyBasedRoute. */
371
+ /** Gets details of a single policy-based route. */
372
372
  await gapi.client.networkconnectivity.projects.locations.global.policyBasedRoutes.get({
373
373
  name: "Test string",
374
374
  });
@@ -377,7 +377,7 @@ gapi.load('client', async () => {
377
377
  "options.requestedPolicyVersion": 42,
378
378
  resource: "Test string",
379
379
  });
380
- /** Lists PolicyBasedRoutes in a given project and location. */
380
+ /** Lists policy-based routes in a given project and location. */
381
381
  await gapi.client.networkconnectivity.projects.locations.global.policyBasedRoutes.list({
382
382
  filter: "Test string",
383
383
  orderBy: "Test string",
@@ -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",