@maxim_mazurok/gapi.client.vmwareengine-v1 0.0.20230929 → 0.0.20231025

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 +3580 -384
  2. package/package.json +1 -1
  3. package/tests.ts +403 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.vmwareengine-v1",
3
- "version": "0.0.20230929",
3
+ "version": "0.0.20231025",
4
4
  "description": "TypeScript typings for VMware Engine 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: 20230929
6
+ // Revision: 20231025
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -40,6 +40,103 @@ gapi.load('client', async () => {
40
40
  pageSize: 42,
41
41
  pageToken: "Test string",
42
42
  });
43
+ /** Gets all the principals having bind permission on the intranet VPC associated with the consumer project granted by the Grant API. */
44
+ await gapi.client.vmwareengine.projects.locations.global.getDnsBindPermission({
45
+ name: "Test string",
46
+ });
47
+ /** Grants the bind permission to the customer provided principal(user / service account) to bind their DNS zone with the intranet VPC associated with the project. */
48
+ await gapi.client.vmwareengine.projects.locations.global.dnsBindPermission.grant({
49
+ name: "Test string",
50
+ }, {
51
+ principal: {
52
+ serviceAccount: "Test string",
53
+ user: "Test string",
54
+ },
55
+ requestId: "Test string",
56
+ });
57
+ /** Revokes the bind permission from the customer provided principal(user / service account) on the intranet VPC associated with the consumer project. */
58
+ await gapi.client.vmwareengine.projects.locations.global.dnsBindPermission.revoke({
59
+ name: "Test string",
60
+ }, {
61
+ principal: {
62
+ serviceAccount: "Test string",
63
+ user: "Test string",
64
+ },
65
+ requestId: "Test string",
66
+ });
67
+ /** Creates a new network peering between the peer network and VMware Engine network provided in a `NetworkPeering` resource. */
68
+ await gapi.client.vmwareengine.projects.locations.global.networkPeerings.create({
69
+ networkPeeringId: "Test string",
70
+ parent: "Test string",
71
+ requestId: "Test string",
72
+ }, {
73
+ createTime: "Test string",
74
+ description: "Test string",
75
+ exchangeSubnetRoutes: true,
76
+ exportCustomRoutes: true,
77
+ exportCustomRoutesWithPublicIp: true,
78
+ importCustomRoutes: true,
79
+ importCustomRoutesWithPublicIp: true,
80
+ name: "Test string",
81
+ peerMtu: 42,
82
+ peerNetwork: "Test string",
83
+ peerNetworkType: "Test string",
84
+ state: "Test string",
85
+ stateDetails: "Test string",
86
+ uid: "Test string",
87
+ updateTime: "Test string",
88
+ vmwareEngineNetwork: "Test string",
89
+ });
90
+ /** Deletes a `NetworkPeering` resource. When a network peering is deleted for a VMware Engine network, the peer network becomes inaccessible to that VMware Engine network. */
91
+ await gapi.client.vmwareengine.projects.locations.global.networkPeerings.delete({
92
+ name: "Test string",
93
+ requestId: "Test string",
94
+ });
95
+ /**
96
+ * Retrieves a `NetworkPeering` resource by its resource name. The resource contains details of the network peering, such as peered networks, import and export custom route configurations,
97
+ * and peering state.
98
+ */
99
+ await gapi.client.vmwareengine.projects.locations.global.networkPeerings.get({
100
+ name: "Test string",
101
+ });
102
+ /** Lists `NetworkPeering` resources in a given project. */
103
+ await gapi.client.vmwareengine.projects.locations.global.networkPeerings.list({
104
+ filter: "Test string",
105
+ orderBy: "Test string",
106
+ pageSize: 42,
107
+ pageToken: "Test string",
108
+ parent: "Test string",
109
+ });
110
+ /** Modifies a `NetworkPeering` resource. Only the `description` field can be updated. Only fields specified in `updateMask` are applied. */
111
+ await gapi.client.vmwareengine.projects.locations.global.networkPeerings.patch({
112
+ name: "Test string",
113
+ requestId: "Test string",
114
+ updateMask: "Test string",
115
+ }, {
116
+ createTime: "Test string",
117
+ description: "Test string",
118
+ exchangeSubnetRoutes: true,
119
+ exportCustomRoutes: true,
120
+ exportCustomRoutesWithPublicIp: true,
121
+ importCustomRoutes: true,
122
+ importCustomRoutesWithPublicIp: true,
123
+ name: "Test string",
124
+ peerMtu: 42,
125
+ peerNetwork: "Test string",
126
+ peerNetworkType: "Test string",
127
+ state: "Test string",
128
+ stateDetails: "Test string",
129
+ uid: "Test string",
130
+ updateTime: "Test string",
131
+ vmwareEngineNetwork: "Test string",
132
+ });
133
+ /** Lists the network peering routes exchanged over a peering connection. */
134
+ await gapi.client.vmwareengine.projects.locations.global.networkPeerings.peeringRoutes.list({
135
+ filter: "Test string",
136
+ pageSize: 42,
137
+ pageToken: "Test string",
138
+ parent: "Test string",
139
+ });
43
140
  /**
44
141
  * Creates a new network policy in a given VMware Engine network of a project and location (region). A new network policy cannot be created if another network policy already exists in the
45
142
  * same scope.
@@ -71,6 +168,12 @@ gapi.load('client', async () => {
71
168
  name: "Test string",
72
169
  requestId: "Test string",
73
170
  });
171
+ /** Lists external IP addresses assigned to VMware workload VMs within the scope of the given network policy. */
172
+ await gapi.client.vmwareengine.projects.locations.networkPolicies.fetchExternalAddresses({
173
+ networkPolicy: "Test string",
174
+ pageSize: 42,
175
+ pageToken: "Test string",
176
+ });
74
177
  /** Retrieves a `NetworkPolicy` resource by its resource name. */
75
178
  await gapi.client.vmwareengine.projects.locations.networkPolicies.get({
76
179
  name: "Test string",
@@ -111,6 +214,95 @@ gapi.load('client', async () => {
111
214
  vmwareEngineNetwork: "Test string",
112
215
  vmwareEngineNetworkCanonical: "Test string",
113
216
  });
217
+ /** Creates a new external access rule in a given network policy. */
218
+ await gapi.client.vmwareengine.projects.locations.networkPolicies.externalAccessRules.create({
219
+ externalAccessRuleId: "Test string",
220
+ parent: "Test string",
221
+ requestId: "Test string",
222
+ }, {
223
+ action: "Test string",
224
+ createTime: "Test string",
225
+ description: "Test string",
226
+ destinationIpRanges: [
227
+ {
228
+ externalAddress: "Test string",
229
+ ipAddress: "Test string",
230
+ ipAddressRange: "Test string",
231
+ }
232
+ ],
233
+ destinationPorts: [
234
+ "Test string"
235
+ ],
236
+ ipProtocol: "Test string",
237
+ name: "Test string",
238
+ priority: 42,
239
+ sourceIpRanges: [
240
+ {
241
+ externalAddress: "Test string",
242
+ ipAddress: "Test string",
243
+ ipAddressRange: "Test string",
244
+ }
245
+ ],
246
+ sourcePorts: [
247
+ "Test string"
248
+ ],
249
+ state: "Test string",
250
+ uid: "Test string",
251
+ updateTime: "Test string",
252
+ });
253
+ /** Deletes a single external access rule. */
254
+ await gapi.client.vmwareengine.projects.locations.networkPolicies.externalAccessRules.delete({
255
+ name: "Test string",
256
+ requestId: "Test string",
257
+ });
258
+ /** Gets details of a single external access rule. */
259
+ await gapi.client.vmwareengine.projects.locations.networkPolicies.externalAccessRules.get({
260
+ name: "Test string",
261
+ });
262
+ /** Lists `ExternalAccessRule` resources in the specified network policy. */
263
+ await gapi.client.vmwareengine.projects.locations.networkPolicies.externalAccessRules.list({
264
+ filter: "Test string",
265
+ orderBy: "Test string",
266
+ pageSize: 42,
267
+ pageToken: "Test string",
268
+ parent: "Test string",
269
+ });
270
+ /** Updates the parameters of a single external access rule. Only fields specified in `update_mask` are applied. */
271
+ await gapi.client.vmwareengine.projects.locations.networkPolicies.externalAccessRules.patch({
272
+ name: "Test string",
273
+ requestId: "Test string",
274
+ updateMask: "Test string",
275
+ }, {
276
+ action: "Test string",
277
+ createTime: "Test string",
278
+ description: "Test string",
279
+ destinationIpRanges: [
280
+ {
281
+ externalAddress: "Test string",
282
+ ipAddress: "Test string",
283
+ ipAddressRange: "Test string",
284
+ }
285
+ ],
286
+ destinationPorts: [
287
+ "Test string"
288
+ ],
289
+ ipProtocol: "Test string",
290
+ name: "Test string",
291
+ priority: 42,
292
+ sourceIpRanges: [
293
+ {
294
+ externalAddress: "Test string",
295
+ ipAddress: "Test string",
296
+ ipAddressRange: "Test string",
297
+ }
298
+ ],
299
+ sourcePorts: [
300
+ "Test string"
301
+ ],
302
+ state: "Test string",
303
+ uid: "Test string",
304
+ updateTime: "Test string",
305
+ });
114
306
  /** Gets details of a single `NodeType`. */
115
307
  await gapi.client.vmwareengine.projects.locations.nodeTypes.get({
116
308
  name: "Test string",
@@ -168,9 +360,14 @@ gapi.load('client', async () => {
168
360
  nodeCount: 42,
169
361
  }
170
362
  },
363
+ stretchedClusterConfig: {
364
+ preferredLocation: "Test string",
365
+ secondaryLocation: "Test string",
366
+ },
171
367
  },
172
368
  name: "Test string",
173
369
  networkConfig: {
370
+ dnsServerIp: "Test string",
174
371
  managementCidr: "Test string",
175
372
  managementIpAddressLayoutVersion: 42,
176
373
  vmwareEngineNetwork: "Test string",
@@ -211,6 +408,10 @@ gapi.load('client', async () => {
211
408
  await gapi.client.vmwareengine.projects.locations.privateClouds.get({
212
409
  name: "Test string",
213
410
  });
411
+ /** Gets details of the `DnsForwarding` config. */
412
+ await gapi.client.vmwareengine.projects.locations.privateClouds.getDnsForwarding({
413
+ name: "Test string",
414
+ });
214
415
  /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
215
416
  await gapi.client.vmwareengine.projects.locations.privateClouds.getIamPolicy({
216
417
  "options.requestedPolicyVersion": 42,
@@ -252,9 +453,14 @@ gapi.load('client', async () => {
252
453
  nodeCount: 42,
253
454
  }
254
455
  },
456
+ stretchedClusterConfig: {
457
+ preferredLocation: "Test string",
458
+ secondaryLocation: "Test string",
459
+ },
255
460
  },
256
461
  name: "Test string",
257
462
  networkConfig: {
463
+ dnsServerIp: "Test string",
258
464
  managementCidr: "Test string",
259
465
  managementIpAddressLayoutVersion: 42,
260
466
  vmwareEngineNetwork: "Test string",
@@ -288,6 +494,7 @@ gapi.load('client', async () => {
288
494
  privateCloud: "Test string",
289
495
  }, {
290
496
  requestId: "Test string",
497
+ username: "Test string",
291
498
  });
292
499
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
293
500
  await gapi.client.vmwareengine.projects.locations.privateClouds.setIamPolicy({
@@ -333,6 +540,7 @@ gapi.load('client', async () => {
333
540
  /** Gets details of credentials for Vcenter appliance. */
334
541
  await gapi.client.vmwareengine.projects.locations.privateClouds.showVcenterCredentials({
335
542
  privateCloud: "Test string",
543
+ username: "Test string",
336
544
  });
337
545
  /**
338
546
  * Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
@@ -354,6 +562,24 @@ gapi.load('client', async () => {
354
562
  }, {
355
563
  requestId: "Test string",
356
564
  });
565
+ /** Updates the parameters of the `DnsForwarding` config, like associated domains. Only fields specified in `update_mask` are applied. */
566
+ await gapi.client.vmwareengine.projects.locations.privateClouds.updateDnsForwarding({
567
+ name: "Test string",
568
+ requestId: "Test string",
569
+ updateMask: "Test string",
570
+ }, {
571
+ createTime: "Test string",
572
+ forwardingRules: [
573
+ {
574
+ domain: "Test string",
575
+ nameServers: [
576
+ "Test string"
577
+ ],
578
+ }
579
+ ],
580
+ name: "Test string",
581
+ updateTime: "Test string",
582
+ });
357
583
  /**
358
584
  * Creates a new cluster in a given private cloud. Creating a new cluster provides additional nodes for use in the parent private cloud and requires sufficient [node
359
585
  * quota](https://cloud.google.com/vmware-engine/quotas).
@@ -374,6 +600,10 @@ gapi.load('client', async () => {
374
600
  }
375
601
  },
376
602
  state: "Test string",
603
+ stretchedClusterConfig: {
604
+ preferredLocation: "Test string",
605
+ secondaryLocation: "Test string",
606
+ },
377
607
  uid: "Test string",
378
608
  updateTime: "Test string",
379
609
  });
@@ -422,6 +652,10 @@ gapi.load('client', async () => {
422
652
  }
423
653
  },
424
654
  state: "Test string",
655
+ stretchedClusterConfig: {
656
+ preferredLocation: "Test string",
657
+ secondaryLocation: "Test string",
658
+ },
425
659
  uid: "Test string",
426
660
  updateTime: "Test string",
427
661
  });
@@ -473,6 +707,69 @@ gapi.load('client', async () => {
473
707
  "Test string"
474
708
  ],
475
709
  });
710
+ /** Gets details of a single node. */
711
+ await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.nodes.get({
712
+ name: "Test string",
713
+ });
714
+ /** Lists nodes in a given cluster. */
715
+ await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.nodes.list({
716
+ pageSize: 42,
717
+ pageToken: "Test string",
718
+ parent: "Test string",
719
+ });
720
+ /**
721
+ * Creates a new `ExternalAddress` resource in a given private cloud. The network policy that corresponds to the private cloud must have the external IP address network service enabled
722
+ * (`NetworkPolicy.external_ip`).
723
+ */
724
+ await gapi.client.vmwareengine.projects.locations.privateClouds.externalAddresses.create({
725
+ externalAddressId: "Test string",
726
+ parent: "Test string",
727
+ requestId: "Test string",
728
+ }, {
729
+ createTime: "Test string",
730
+ description: "Test string",
731
+ externalIp: "Test string",
732
+ internalIp: "Test string",
733
+ name: "Test string",
734
+ state: "Test string",
735
+ uid: "Test string",
736
+ updateTime: "Test string",
737
+ });
738
+ /** Deletes a single external IP address. When you delete an external IP address, connectivity between the external IP address and the corresponding internal IP address is lost. */
739
+ await gapi.client.vmwareengine.projects.locations.privateClouds.externalAddresses.delete({
740
+ name: "Test string",
741
+ requestId: "Test string",
742
+ });
743
+ /** Gets details of a single external IP address. */
744
+ await gapi.client.vmwareengine.projects.locations.privateClouds.externalAddresses.get({
745
+ name: "Test string",
746
+ });
747
+ /** Lists external IP addresses assigned to VMware workload VMs in a given private cloud. */
748
+ await gapi.client.vmwareengine.projects.locations.privateClouds.externalAddresses.list({
749
+ filter: "Test string",
750
+ orderBy: "Test string",
751
+ pageSize: 42,
752
+ pageToken: "Test string",
753
+ parent: "Test string",
754
+ });
755
+ /**
756
+ * Updates the parameters of a single external IP address. Only fields specified in `update_mask` are applied. During operation processing, the resource is temporarily in the `ACTIVE`
757
+ * state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.
758
+ */
759
+ await gapi.client.vmwareengine.projects.locations.privateClouds.externalAddresses.patch({
760
+ name: "Test string",
761
+ requestId: "Test string",
762
+ updateMask: "Test string",
763
+ }, {
764
+ createTime: "Test string",
765
+ description: "Test string",
766
+ externalIp: "Test string",
767
+ internalIp: "Test string",
768
+ name: "Test string",
769
+ state: "Test string",
770
+ uid: "Test string",
771
+ updateTime: "Test string",
772
+ });
476
773
  /** Creates a new HCX activation key in a given private cloud. */
477
774
  await gapi.client.vmwareengine.projects.locations.privateClouds.hcxActivationKeys.create({
478
775
  hcxActivationKeyId: "Test string",
@@ -548,6 +845,110 @@ gapi.load('client', async () => {
548
845
  "Test string"
549
846
  ],
550
847
  });
848
+ /** Create a new logging server for a given private cloud. */
849
+ await gapi.client.vmwareengine.projects.locations.privateClouds.loggingServers.create({
850
+ loggingServerId: "Test string",
851
+ parent: "Test string",
852
+ requestId: "Test string",
853
+ }, {
854
+ createTime: "Test string",
855
+ hostname: "Test string",
856
+ name: "Test string",
857
+ port: 42,
858
+ protocol: "Test string",
859
+ sourceType: "Test string",
860
+ uid: "Test string",
861
+ updateTime: "Test string",
862
+ });
863
+ /** Deletes a single logging server. */
864
+ await gapi.client.vmwareengine.projects.locations.privateClouds.loggingServers.delete({
865
+ name: "Test string",
866
+ requestId: "Test string",
867
+ });
868
+ /** Gets details of a logging server. */
869
+ await gapi.client.vmwareengine.projects.locations.privateClouds.loggingServers.get({
870
+ name: "Test string",
871
+ });
872
+ /** Lists logging servers configured for a given private cloud. */
873
+ await gapi.client.vmwareengine.projects.locations.privateClouds.loggingServers.list({
874
+ filter: "Test string",
875
+ orderBy: "Test string",
876
+ pageSize: 42,
877
+ pageToken: "Test string",
878
+ parent: "Test string",
879
+ });
880
+ /** Updates the parameters of a single logging server. Only fields specified in `update_mask` are applied. */
881
+ await gapi.client.vmwareengine.projects.locations.privateClouds.loggingServers.patch({
882
+ name: "Test string",
883
+ requestId: "Test string",
884
+ updateMask: "Test string",
885
+ }, {
886
+ createTime: "Test string",
887
+ hostname: "Test string",
888
+ name: "Test string",
889
+ port: 42,
890
+ protocol: "Test string",
891
+ sourceType: "Test string",
892
+ uid: "Test string",
893
+ updateTime: "Test string",
894
+ });
895
+ /**
896
+ * Creates a new `ManagementDnsZoneBinding` resource in a private cloud. This RPC creates the DNS binding and the resource that represents the DNS binding of the consumer VPC network to
897
+ * the management DNS zone. A management DNS zone is the Cloud DNS cross-project binding zone that VMware Engine creates for each private cloud. It contains FQDNs and corresponding IP
898
+ * addresses for the private cloud's ESXi hosts and management VM appliances like vCenter and NSX Manager.
899
+ */
900
+ await gapi.client.vmwareengine.projects.locations.privateClouds.managementDnsZoneBindings.create({
901
+ managementDnsZoneBindingId: "Test string",
902
+ parent: "Test string",
903
+ requestId: "Test string",
904
+ }, {
905
+ createTime: "Test string",
906
+ description: "Test string",
907
+ name: "Test string",
908
+ state: "Test string",
909
+ uid: "Test string",
910
+ updateTime: "Test string",
911
+ vmwareEngineNetwork: "Test string",
912
+ vpcNetwork: "Test string",
913
+ });
914
+ /** Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone binding is deleted, the corresponding consumer VPC network is no longer bound to the management DNS zone. */
915
+ await gapi.client.vmwareengine.projects.locations.privateClouds.managementDnsZoneBindings.delete({
916
+ name: "Test string",
917
+ requestId: "Test string",
918
+ });
919
+ /** Retrieves a 'ManagementDnsZoneBinding' resource by its resource name. */
920
+ await gapi.client.vmwareengine.projects.locations.privateClouds.managementDnsZoneBindings.get({
921
+ name: "Test string",
922
+ });
923
+ /** Lists Consumer VPCs bound to Management DNS Zone of a given private cloud. */
924
+ await gapi.client.vmwareengine.projects.locations.privateClouds.managementDnsZoneBindings.list({
925
+ filter: "Test string",
926
+ orderBy: "Test string",
927
+ pageSize: 42,
928
+ pageToken: "Test string",
929
+ parent: "Test string",
930
+ });
931
+ /** Updates a `ManagementDnsZoneBinding` resource. Only fields specified in `update_mask` are applied. */
932
+ await gapi.client.vmwareengine.projects.locations.privateClouds.managementDnsZoneBindings.patch({
933
+ name: "Test string",
934
+ requestId: "Test string",
935
+ updateMask: "Test string",
936
+ }, {
937
+ createTime: "Test string",
938
+ description: "Test string",
939
+ name: "Test string",
940
+ state: "Test string",
941
+ uid: "Test string",
942
+ updateTime: "Test string",
943
+ vmwareEngineNetwork: "Test string",
944
+ vpcNetwork: "Test string",
945
+ });
946
+ /** Retries to create a `ManagementDnsZoneBinding` resource that is in failed state. */
947
+ await gapi.client.vmwareengine.projects.locations.privateClouds.managementDnsZoneBindings.repair({
948
+ name: "Test string",
949
+ }, {
950
+ requestId: "Test string",
951
+ });
551
952
  /** Gets details of a single subnet. */
552
953
  await gapi.client.vmwareengine.projects.locations.privateClouds.subnets.get({
553
954
  name: "Test string",
@@ -571,6 +972,7 @@ gapi.load('client', async () => {
571
972
  name: "Test string",
572
973
  state: "Test string",
573
974
  type: "Test string",
975
+ vlanId: 42,
574
976
  });
575
977
  /** Creates a new private connection that can be used for accessing private Clouds. */
576
978
  await gapi.client.vmwareengine.projects.locations.privateConnections.create({