@maxim_mazurok/gapi.client.networkconnectivity-v1 0.0.20230816 → 0.0.20230906
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +212 -6
- package/package.json +1 -1
- package/tests.ts +19 -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:
|
|
12
|
+
// Revision: 20230906
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -22,6 +22,25 @@ declare namespace gapi.client {
|
|
|
22
22
|
function load(name: "networkconnectivity", version: "v1", callback: () => any): void;
|
|
23
23
|
|
|
24
24
|
namespace networkconnectivity {
|
|
25
|
+
interface AcceptHubSpokeRequest {
|
|
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
|
|
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
|
+
* 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
|
+
* 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
|
|
31
|
+
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
|
32
|
+
*/
|
|
33
|
+
requestId?:
|
|
34
|
+
string;
|
|
35
|
+
/** Required. The URI of the spoke to accept into the hub. */
|
|
36
|
+
spokeUri?:
|
|
37
|
+
string;
|
|
38
|
+
}
|
|
39
|
+
interface AcceptHubSpokeResponse {
|
|
40
|
+
/** The spoke that was operated on. */
|
|
41
|
+
spoke?:
|
|
42
|
+
Spoke;
|
|
43
|
+
}
|
|
25
44
|
interface AcceptSpokeRequest {
|
|
26
45
|
/**
|
|
27
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
|
|
@@ -250,7 +269,7 @@ declare namespace gapi.client {
|
|
|
250
269
|
description?:
|
|
251
270
|
string;
|
|
252
271
|
/**
|
|
253
|
-
* Optional. Labels in key
|
|
272
|
+
* Optional. Labels in key-value pair format. For more information about labels, see [Requirements for
|
|
254
273
|
* labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
|
|
255
274
|
*/
|
|
256
275
|
labels?:
|
|
@@ -279,7 +298,7 @@ declare namespace gapi.client {
|
|
|
279
298
|
description?:
|
|
280
299
|
string;
|
|
281
300
|
/**
|
|
282
|
-
* Optional labels in key
|
|
301
|
+
* Optional labels in key-value pair format. For more information about labels, see [Requirements for
|
|
283
302
|
* labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
|
|
284
303
|
*/
|
|
285
304
|
labels?:
|
|
@@ -744,6 +763,28 @@ declare namespace gapi.client {
|
|
|
744
763
|
state?:
|
|
745
764
|
string;
|
|
746
765
|
}
|
|
766
|
+
interface RejectHubSpokeRequest {
|
|
767
|
+
/** Optional. Additional information provided by the hub administrator. */
|
|
768
|
+
details?:
|
|
769
|
+
string;
|
|
770
|
+
/**
|
|
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
|
|
772
|
+
* 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
|
+
* 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
|
+
* 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
|
|
775
|
+
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
|
776
|
+
*/
|
|
777
|
+
requestId?:
|
|
778
|
+
string;
|
|
779
|
+
/** Required. The URI of the spoke to reject from the hub. */
|
|
780
|
+
spokeUri?:
|
|
781
|
+
string;
|
|
782
|
+
}
|
|
783
|
+
interface RejectHubSpokeResponse {
|
|
784
|
+
/** The spoke that was operated on. */
|
|
785
|
+
spoke?:
|
|
786
|
+
Spoke;
|
|
787
|
+
}
|
|
747
788
|
interface RejectSpokeRequest {
|
|
748
789
|
/** Optional. Additional information provided by the hub administrator in the `RejectSpoke` call. */
|
|
749
790
|
details?:
|
|
@@ -769,7 +810,7 @@ declare namespace gapi.client {
|
|
|
769
810
|
ipCidrRange?:
|
|
770
811
|
string;
|
|
771
812
|
/**
|
|
772
|
-
* Optional labels in key
|
|
813
|
+
* Optional labels in key-value pair format. For more information about labels, see [Requirements for
|
|
773
814
|
* labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
|
|
774
815
|
*/
|
|
775
816
|
labels?:
|
|
@@ -821,7 +862,7 @@ declare namespace gapi.client {
|
|
|
821
862
|
description?:
|
|
822
863
|
string;
|
|
823
864
|
/**
|
|
824
|
-
* Optional labels in key
|
|
865
|
+
* Optional labels in key-value pair format. For more information about labels, see [Requirements for
|
|
825
866
|
* labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
|
|
826
867
|
*/
|
|
827
868
|
labels?:
|
|
@@ -1030,7 +1071,7 @@ declare namespace gapi.client {
|
|
|
1030
1071
|
hub?:
|
|
1031
1072
|
string;
|
|
1032
1073
|
/**
|
|
1033
|
-
* Optional labels in key
|
|
1074
|
+
* Optional labels in key-value pair format. For more information about labels, see [Requirements for
|
|
1034
1075
|
* labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
|
|
1035
1076
|
*/
|
|
1036
1077
|
labels?:
|
|
@@ -1567,6 +1608,87 @@ declare namespace gapi.client {
|
|
|
1567
1608
|
RoutesResource;
|
|
1568
1609
|
}
|
|
1569
1610
|
interface HubsResource {
|
|
1611
|
+
/** Accepts a proposal to attach a Network Connectivity Center spoke to the hub. */
|
|
1612
|
+
acceptSpoke(request: {
|
|
1613
|
+
/** V1 error format. */
|
|
1614
|
+
"$.xgafv"?:
|
|
1615
|
+
string;
|
|
1616
|
+
/** OAuth access token. */
|
|
1617
|
+
access_token?:
|
|
1618
|
+
string;
|
|
1619
|
+
/** Data format for response. */
|
|
1620
|
+
alt?:
|
|
1621
|
+
string;
|
|
1622
|
+
/** JSONP */
|
|
1623
|
+
callback?:
|
|
1624
|
+
string;
|
|
1625
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1626
|
+
fields?:
|
|
1627
|
+
string;
|
|
1628
|
+
/** 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
|
+
key?:
|
|
1630
|
+
string;
|
|
1631
|
+
/** Required. The name of the hub. */
|
|
1632
|
+
name:
|
|
1633
|
+
string;
|
|
1634
|
+
/** OAuth 2.0 token for the current user. */
|
|
1635
|
+
oauth_token?:
|
|
1636
|
+
string;
|
|
1637
|
+
/** Returns response with indentations and line breaks. */
|
|
1638
|
+
prettyPrint?:
|
|
1639
|
+
boolean;
|
|
1640
|
+
/** 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. */
|
|
1641
|
+
quotaUser?:
|
|
1642
|
+
string;
|
|
1643
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1644
|
+
upload_protocol?:
|
|
1645
|
+
string;
|
|
1646
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1647
|
+
uploadType?:
|
|
1648
|
+
string;
|
|
1649
|
+
/** Request body */
|
|
1650
|
+
resource:
|
|
1651
|
+
AcceptHubSpokeRequest;
|
|
1652
|
+
}): Request<GoogleLongrunningOperation>;
|
|
1653
|
+
acceptSpoke(request: {
|
|
1654
|
+
/** V1 error format. */
|
|
1655
|
+
"$.xgafv"?:
|
|
1656
|
+
string;
|
|
1657
|
+
/** OAuth access token. */
|
|
1658
|
+
access_token?:
|
|
1659
|
+
string;
|
|
1660
|
+
/** Data format for response. */
|
|
1661
|
+
alt?:
|
|
1662
|
+
string;
|
|
1663
|
+
/** JSONP */
|
|
1664
|
+
callback?:
|
|
1665
|
+
string;
|
|
1666
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1667
|
+
fields?:
|
|
1668
|
+
string;
|
|
1669
|
+
/** 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
|
+
key?:
|
|
1671
|
+
string;
|
|
1672
|
+
/** Required. The name of the hub. */
|
|
1673
|
+
name:
|
|
1674
|
+
string;
|
|
1675
|
+
/** OAuth 2.0 token for the current user. */
|
|
1676
|
+
oauth_token?:
|
|
1677
|
+
string;
|
|
1678
|
+
/** Returns response with indentations and line breaks. */
|
|
1679
|
+
prettyPrint?:
|
|
1680
|
+
boolean;
|
|
1681
|
+
/** 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. */
|
|
1682
|
+
quotaUser?:
|
|
1683
|
+
string;
|
|
1684
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1685
|
+
upload_protocol?:
|
|
1686
|
+
string;
|
|
1687
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1688
|
+
uploadType?:
|
|
1689
|
+
string;
|
|
1690
|
+
},
|
|
1691
|
+
body: AcceptHubSpokeRequest): Request<GoogleLongrunningOperation>;
|
|
1570
1692
|
/** Creates a new Network Connectivity Center hub in the specified project. */
|
|
1571
1693
|
create(request: {
|
|
1572
1694
|
/** V1 error format. */
|
|
@@ -2036,6 +2158,90 @@ declare namespace gapi.client {
|
|
|
2036
2158
|
string;
|
|
2037
2159
|
},
|
|
2038
2160
|
body: Hub): Request<GoogleLongrunningOperation>;
|
|
2161
|
+
/**
|
|
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.
|
|
2164
|
+
*/
|
|
2165
|
+
rejectSpoke(request: {
|
|
2166
|
+
/** V1 error format. */
|
|
2167
|
+
"$.xgafv"?:
|
|
2168
|
+
string;
|
|
2169
|
+
/** OAuth access token. */
|
|
2170
|
+
access_token?:
|
|
2171
|
+
string;
|
|
2172
|
+
/** Data format for response. */
|
|
2173
|
+
alt?:
|
|
2174
|
+
string;
|
|
2175
|
+
/** JSONP */
|
|
2176
|
+
callback?:
|
|
2177
|
+
string;
|
|
2178
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2179
|
+
fields?:
|
|
2180
|
+
string;
|
|
2181
|
+
/** 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
|
+
key?:
|
|
2183
|
+
string;
|
|
2184
|
+
/** Required. The name of the hub. */
|
|
2185
|
+
name:
|
|
2186
|
+
string;
|
|
2187
|
+
/** OAuth 2.0 token for the current user. */
|
|
2188
|
+
oauth_token?:
|
|
2189
|
+
string;
|
|
2190
|
+
/** Returns response with indentations and line breaks. */
|
|
2191
|
+
prettyPrint?:
|
|
2192
|
+
boolean;
|
|
2193
|
+
/** 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. */
|
|
2194
|
+
quotaUser?:
|
|
2195
|
+
string;
|
|
2196
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2197
|
+
upload_protocol?:
|
|
2198
|
+
string;
|
|
2199
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2200
|
+
uploadType?:
|
|
2201
|
+
string;
|
|
2202
|
+
/** Request body */
|
|
2203
|
+
resource:
|
|
2204
|
+
RejectHubSpokeRequest;
|
|
2205
|
+
}): Request<GoogleLongrunningOperation>;
|
|
2206
|
+
rejectSpoke(request: {
|
|
2207
|
+
/** V1 error format. */
|
|
2208
|
+
"$.xgafv"?:
|
|
2209
|
+
string;
|
|
2210
|
+
/** OAuth access token. */
|
|
2211
|
+
access_token?:
|
|
2212
|
+
string;
|
|
2213
|
+
/** Data format for response. */
|
|
2214
|
+
alt?:
|
|
2215
|
+
string;
|
|
2216
|
+
/** JSONP */
|
|
2217
|
+
callback?:
|
|
2218
|
+
string;
|
|
2219
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2220
|
+
fields?:
|
|
2221
|
+
string;
|
|
2222
|
+
/** 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
|
+
key?:
|
|
2224
|
+
string;
|
|
2225
|
+
/** Required. The name of the hub. */
|
|
2226
|
+
name:
|
|
2227
|
+
string;
|
|
2228
|
+
/** OAuth 2.0 token for the current user. */
|
|
2229
|
+
oauth_token?:
|
|
2230
|
+
string;
|
|
2231
|
+
/** Returns response with indentations and line breaks. */
|
|
2232
|
+
prettyPrint?:
|
|
2233
|
+
boolean;
|
|
2234
|
+
/** 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. */
|
|
2235
|
+
quotaUser?:
|
|
2236
|
+
string;
|
|
2237
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2238
|
+
upload_protocol?:
|
|
2239
|
+
string;
|
|
2240
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2241
|
+
uploadType?:
|
|
2242
|
+
string;
|
|
2243
|
+
},
|
|
2244
|
+
body: RejectHubSpokeRequest): Request<GoogleLongrunningOperation>;
|
|
2039
2245
|
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
2040
2246
|
setIamPolicy(request: {
|
|
2041
2247
|
/** V1 error format. */
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230906
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -40,6 +40,13 @@ 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. */
|
|
44
|
+
await gapi.client.networkconnectivity.projects.locations.global.hubs.acceptSpoke({
|
|
45
|
+
name: "Test string",
|
|
46
|
+
}, {
|
|
47
|
+
requestId: "Test string",
|
|
48
|
+
spokeUri: "Test string",
|
|
49
|
+
});
|
|
43
50
|
/** Creates a new Network Connectivity Center hub in the specified project. */
|
|
44
51
|
await gapi.client.networkconnectivity.projects.locations.global.hubs.create({
|
|
45
52
|
hubId: "Test string",
|
|
@@ -165,6 +172,17 @@ gapi.load('client', async () => {
|
|
|
165
172
|
uniqueId: "Test string",
|
|
166
173
|
updateTime: "Test string",
|
|
167
174
|
});
|
|
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.
|
|
178
|
+
*/
|
|
179
|
+
await gapi.client.networkconnectivity.projects.locations.global.hubs.rejectSpoke({
|
|
180
|
+
name: "Test string",
|
|
181
|
+
}, {
|
|
182
|
+
details: "Test string",
|
|
183
|
+
requestId: "Test string",
|
|
184
|
+
spokeUri: "Test string",
|
|
185
|
+
});
|
|
168
186
|
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
169
187
|
await gapi.client.networkconnectivity.projects.locations.global.hubs.setIamPolicy({
|
|
170
188
|
resource: "Test string",
|