@maxim_mazurok/gapi.client.networkmanagement-v1 0.0.20241202 → 0.0.20241210

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 (2) hide show
  1. package/index.d.ts +278 -14
  2. package/package.json +1 -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://networkmanagement.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20241202
12
+ // Revision: 20241210
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -366,6 +366,14 @@ declare namespace gapi.client {
366
366
  /** A list of operations that matches the specified filter in the request. */
367
367
  operations?: Operation[];
368
368
  }
369
+ interface ListVpcFlowLogsConfigsResponse {
370
+ /** Page token to fetch the next set of configurations. */
371
+ nextPageToken?: string;
372
+ /** Locations that could not be reached (when querying all locations with `-`). */
373
+ unreachable?: string[];
374
+ /** List of VPC Flow Log configurations. */
375
+ vpcFlowLogsConfigs?: VpcFlowLogsConfig[];
376
+ }
369
377
  interface LoadBalancerBackend {
370
378
  /** Name of a Compute Engine instance or network endpoint. */
371
379
  displayName?: string;
@@ -586,43 +594,53 @@ declare namespace gapi.client {
586
594
  }
587
595
  interface RerunConnectivityTestRequest {}
588
596
  interface RouteInfo {
589
- /** For advertised routes, the URI of their next hop, i.e. the URI of the hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) the advertised prefix is advertised through, or URI of the source peered network. */
597
+ /** For ADVERTISED routes, the URI of their next hop, i.e. the URI of the hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) the advertised prefix is advertised through, or URI of the source peered network. Deprecated in favor of the next_hop_uri field, not used in new tests. */
590
598
  advertisedRouteNextHopUri?: string;
591
- /** For advertised dynamic routes, the URI of the Cloud Router that advertised the corresponding IP prefix. */
599
+ /** For ADVERTISED dynamic routes, the URI of the Cloud Router that advertised the corresponding IP prefix. */
592
600
  advertisedRouteSourceRouterUri?: string;
593
601
  /** Destination IP range of the route. */
594
602
  destIpRange?: string;
595
- /** Destination port ranges of the route. Policy based routes only. */
603
+ /** Destination port ranges of the route. POLICY_BASED routes only. */
596
604
  destPortRanges?: string[];
597
605
  /** Name of a route. */
598
606
  displayName?: string;
599
607
  /** Instance tags of the route. */
600
608
  instanceTags?: string[];
601
- /** URI of a NCC Hub. NCC_HUB routes only. */
609
+ /** For PEERING_SUBNET and PEERING_DYNAMIC routes that are advertised by NCC Hub, the URI of the corresponding route in NCC Hub's routing table. */
610
+ nccHubRouteUri?: string;
611
+ /** URI of the NCC Hub the route is advertised by. PEERING_SUBNET and PEERING_DYNAMIC routes that are advertised by NCC Hub only. */
602
612
  nccHubUri?: string;
603
- /** URI of a NCC Spoke. NCC_HUB routes only. */
613
+ /** URI of the destination NCC Spoke. PEERING_SUBNET and PEERING_DYNAMIC routes that are advertised by NCC Hub only. */
604
614
  nccSpokeUri?: string;
605
- /** URI of a Compute Engine network. NETWORK routes only. */
615
+ /** URI of a VPC network where route is located. */
606
616
  networkUri?: string;
607
- /** Next hop of the route. */
617
+ /** String type of the next hop of the route (for example, "VPN tunnel"). Deprecated in favor of the next_hop_type and next_hop_uri fields, not used in new tests. */
608
618
  nextHop?: string;
619
+ /** URI of a VPC network where the next hop resource is located. */
620
+ nextHopNetworkUri?: string;
609
621
  /** Type of next hop. */
610
622
  nextHopType?: string;
623
+ /** URI of the next hop resource. */
624
+ nextHopUri?: string;
625
+ /** For PEERING_SUBNET, PEERING_STATIC and PEERING_DYNAMIC routes, the name of the originating SUBNET/STATIC/DYNAMIC route. */
626
+ originatingRouteDisplayName?: string;
627
+ /** For PEERING_SUBNET and PEERING_STATIC routes, the URI of the originating SUBNET/STATIC route. */
628
+ originatingRouteUri?: string;
611
629
  /** Priority of the route. */
612
630
  priority?: number;
613
- /** Protocols of the route. Policy based routes only. */
631
+ /** Protocols of the route. POLICY_BASED routes only. */
614
632
  protocols?: string[];
615
- /** Region of the route (if applicable). */
633
+ /** Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED routes only. If set for POLICY_BASED route, this is a region of VLAN attachments for Cloud Interconnect the route applies to. */
616
634
  region?: string;
617
- /** Indicates where route is applicable. */
635
+ /** Indicates where route is applicable. Deprecated, routes with NCC_HUB scope are not included in the trace in new tests. */
618
636
  routeScope?: string;
619
637
  /** Type of route. */
620
638
  routeType?: string;
621
- /** Source IP address range of the route. Policy based routes only. */
639
+ /** Source IP address range of the route. POLICY_BASED routes only. */
622
640
  srcIpRange?: string;
623
- /** Source port ranges of the route. Policy based routes only. */
641
+ /** Source port ranges of the route. POLICY_BASED routes only. */
624
642
  srcPortRanges?: string[];
625
- /** URI of a route (if applicable). */
643
+ /** URI of a route. SUBNET, STATIC, PEERING_SUBNET (only for peering network) and POLICY_BASED routes only. */
626
644
  uri?: string;
627
645
  }
628
646
  interface ServerlessNegInfo {
@@ -735,6 +753,36 @@ declare namespace gapi.client {
735
753
  /** URI of a VPC connector. */
736
754
  uri?: string;
737
755
  }
756
+ interface VpcFlowLogsConfig {
757
+ /** Optional. The aggregation interval for the logs. Default value is INTERVAL_5_SEC. */
758
+ aggregationInterval?: string;
759
+ /** Output only. The time the config was created. */
760
+ createTime?: string;
761
+ /** Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters. */
762
+ description?: string;
763
+ /** Optional. Export filter used to define which VPC Flow Logs should be logged. */
764
+ filterExpr?: string;
765
+ /** Optional. The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0. */
766
+ flowSampling?: number;
767
+ /** Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name} */
768
+ interconnectAttachment?: string;
769
+ /** Optional. Resource labels to represent user-provided metadata. */
770
+ labels?: {[P in string]: string};
771
+ /** Optional. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA. */
772
+ metadata?: string;
773
+ /** Optional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA. */
774
+ metadataFields?: string[];
775
+ /** Identifier. Unique name of the configuration using the form: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` */
776
+ name?: string;
777
+ /** Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. */
778
+ state?: string;
779
+ /** Output only. A diagnostic bit - describes the state of the configured target resource for diagnostic purposes. */
780
+ targetResourceState?: string;
781
+ /** Output only. The time the config was updated. */
782
+ updateTime?: string;
783
+ /** Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name} */
784
+ vpnTunnel?: string;
785
+ }
738
786
  interface VpnGatewayInfo {
739
787
  /** Name of a VPN gateway. */
740
788
  displayName?: string;
@@ -1282,6 +1330,221 @@ declare namespace gapi.client {
1282
1330
  connectivityTests: ConnectivityTestsResource;
1283
1331
  operations: OperationsResource;
1284
1332
  }
1333
+ interface VpcFlowLogsConfigsResource {
1334
+ /** Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Creating a configuration with state=DISABLED will fail 2. The following fields are not considered as `settings` for the purpose of the check mentioned above, therefore - creating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description */
1335
+ create(request: {
1336
+ /** V1 error format. */
1337
+ '$.xgafv'?: string;
1338
+ /** OAuth access token. */
1339
+ access_token?: string;
1340
+ /** Data format for response. */
1341
+ alt?: string;
1342
+ /** JSONP */
1343
+ callback?: string;
1344
+ /** Selector specifying which fields to include in a partial response. */
1345
+ fields?: string;
1346
+ /** 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. */
1347
+ key?: string;
1348
+ /** OAuth 2.0 token for the current user. */
1349
+ oauth_token?: string;
1350
+ /** Required. The parent resource of the VPC Flow Logs configuration to create: `projects/{project_id}/locations/global` */
1351
+ parent: string;
1352
+ /** Returns response with indentations and line breaks. */
1353
+ prettyPrint?: boolean;
1354
+ /** 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. */
1355
+ quotaUser?: string;
1356
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1357
+ upload_protocol?: string;
1358
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1359
+ uploadType?: string;
1360
+ /** Required. ID of the `VpcFlowLogsConfig`. */
1361
+ vpcFlowLogsConfigId?: string;
1362
+ /** Request body */
1363
+ resource: VpcFlowLogsConfig;
1364
+ }): Request<Operation>;
1365
+ create(
1366
+ request: {
1367
+ /** V1 error format. */
1368
+ '$.xgafv'?: string;
1369
+ /** OAuth access token. */
1370
+ access_token?: string;
1371
+ /** Data format for response. */
1372
+ alt?: string;
1373
+ /** JSONP */
1374
+ callback?: string;
1375
+ /** Selector specifying which fields to include in a partial response. */
1376
+ fields?: string;
1377
+ /** 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. */
1378
+ key?: string;
1379
+ /** OAuth 2.0 token for the current user. */
1380
+ oauth_token?: string;
1381
+ /** Required. The parent resource of the VPC Flow Logs configuration to create: `projects/{project_id}/locations/global` */
1382
+ parent: string;
1383
+ /** Returns response with indentations and line breaks. */
1384
+ prettyPrint?: boolean;
1385
+ /** 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. */
1386
+ quotaUser?: string;
1387
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1388
+ upload_protocol?: string;
1389
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1390
+ uploadType?: string;
1391
+ /** Required. ID of the `VpcFlowLogsConfig`. */
1392
+ vpcFlowLogsConfigId?: string;
1393
+ },
1394
+ body: VpcFlowLogsConfig
1395
+ ): Request<Operation>;
1396
+ /** Deletes a specific `VpcFlowLogsConfig`. */
1397
+ delete(request?: {
1398
+ /** V1 error format. */
1399
+ '$.xgafv'?: string;
1400
+ /** OAuth access token. */
1401
+ access_token?: string;
1402
+ /** Data format for response. */
1403
+ alt?: string;
1404
+ /** JSONP */
1405
+ callback?: string;
1406
+ /** Selector specifying which fields to include in a partial response. */
1407
+ fields?: string;
1408
+ /** 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. */
1409
+ key?: string;
1410
+ /** Required. `VpcFlowLogsConfig` resource name using the form: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` */
1411
+ name: string;
1412
+ /** OAuth 2.0 token for the current user. */
1413
+ oauth_token?: string;
1414
+ /** Returns response with indentations and line breaks. */
1415
+ prettyPrint?: boolean;
1416
+ /** 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. */
1417
+ quotaUser?: string;
1418
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1419
+ upload_protocol?: string;
1420
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1421
+ uploadType?: string;
1422
+ }): Request<Operation>;
1423
+ /** Gets the details of a specific `VpcFlowLogsConfig`. */
1424
+ get(request?: {
1425
+ /** V1 error format. */
1426
+ '$.xgafv'?: string;
1427
+ /** OAuth access token. */
1428
+ access_token?: string;
1429
+ /** Data format for response. */
1430
+ alt?: string;
1431
+ /** JSONP */
1432
+ callback?: string;
1433
+ /** Selector specifying which fields to include in a partial response. */
1434
+ fields?: string;
1435
+ /** 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. */
1436
+ key?: string;
1437
+ /** Required. `VpcFlowLogsConfig` resource name using the form: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` */
1438
+ name: string;
1439
+ /** OAuth 2.0 token for the current user. */
1440
+ oauth_token?: string;
1441
+ /** Returns response with indentations and line breaks. */
1442
+ prettyPrint?: boolean;
1443
+ /** 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. */
1444
+ quotaUser?: string;
1445
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1446
+ upload_protocol?: string;
1447
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1448
+ uploadType?: string;
1449
+ }): Request<VpcFlowLogsConfig>;
1450
+ /** Lists all `VpcFlowLogsConfigs` in a given project. */
1451
+ list(request?: {
1452
+ /** V1 error format. */
1453
+ '$.xgafv'?: string;
1454
+ /** OAuth access token. */
1455
+ access_token?: string;
1456
+ /** Data format for response. */
1457
+ alt?: string;
1458
+ /** JSONP */
1459
+ callback?: string;
1460
+ /** Selector specifying which fields to include in a partial response. */
1461
+ fields?: string;
1462
+ /** Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. A filter expression must use the supported [CEL logic operators] (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). */
1463
+ filter?: string;
1464
+ /** 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. */
1465
+ key?: string;
1466
+ /** OAuth 2.0 token for the current user. */
1467
+ oauth_token?: string;
1468
+ /** Optional. Field to use to sort the list. */
1469
+ orderBy?: string;
1470
+ /** Optional. Number of `VpcFlowLogsConfigs` to return. */
1471
+ pageSize?: number;
1472
+ /** Optional. Page token from an earlier query, as returned in `next_page_token`. */
1473
+ pageToken?: string;
1474
+ /** Required. The parent resource of the VpcFlowLogsConfig: `projects/{project_id}/locations/global` */
1475
+ parent: string;
1476
+ /** Returns response with indentations and line breaks. */
1477
+ prettyPrint?: boolean;
1478
+ /** 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. */
1479
+ quotaUser?: string;
1480
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1481
+ upload_protocol?: string;
1482
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1483
+ uploadType?: string;
1484
+ }): Request<ListVpcFlowLogsConfigsResponse>;
1485
+ /** Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Updating a configuration with state=DISABLED will fail. 2. The following fields are not considered as `settings` for the purpose of the check mentioned above, therefore - updating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description */
1486
+ patch(request: {
1487
+ /** V1 error format. */
1488
+ '$.xgafv'?: string;
1489
+ /** OAuth access token. */
1490
+ access_token?: string;
1491
+ /** Data format for response. */
1492
+ alt?: string;
1493
+ /** JSONP */
1494
+ callback?: string;
1495
+ /** Selector specifying which fields to include in a partial response. */
1496
+ fields?: string;
1497
+ /** 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. */
1498
+ key?: string;
1499
+ /** Identifier. Unique name of the configuration using the form: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` */
1500
+ name: string;
1501
+ /** OAuth 2.0 token for the current user. */
1502
+ oauth_token?: string;
1503
+ /** Returns response with indentations and line breaks. */
1504
+ prettyPrint?: boolean;
1505
+ /** 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. */
1506
+ quotaUser?: string;
1507
+ /** Required. Mask of fields to update. At least one path must be supplied in this field. */
1508
+ updateMask?: string;
1509
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1510
+ upload_protocol?: string;
1511
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1512
+ uploadType?: string;
1513
+ /** Request body */
1514
+ resource: VpcFlowLogsConfig;
1515
+ }): Request<Operation>;
1516
+ patch(
1517
+ request: {
1518
+ /** V1 error format. */
1519
+ '$.xgafv'?: string;
1520
+ /** OAuth access token. */
1521
+ access_token?: string;
1522
+ /** Data format for response. */
1523
+ alt?: string;
1524
+ /** JSONP */
1525
+ callback?: string;
1526
+ /** Selector specifying which fields to include in a partial response. */
1527
+ fields?: string;
1528
+ /** 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. */
1529
+ key?: string;
1530
+ /** Identifier. Unique name of the configuration using the form: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` */
1531
+ name: string;
1532
+ /** OAuth 2.0 token for the current user. */
1533
+ oauth_token?: string;
1534
+ /** Returns response with indentations and line breaks. */
1535
+ prettyPrint?: boolean;
1536
+ /** 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. */
1537
+ quotaUser?: string;
1538
+ /** Required. Mask of fields to update. At least one path must be supplied in this field. */
1539
+ updateMask?: string;
1540
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1541
+ upload_protocol?: string;
1542
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1543
+ uploadType?: string;
1544
+ },
1545
+ body: VpcFlowLogsConfig
1546
+ ): Request<Operation>;
1547
+ }
1285
1548
  interface LocationsResource {
1286
1549
  /** Gets information about a location. */
1287
1550
  get(request?: {
@@ -1344,6 +1607,7 @@ declare namespace gapi.client {
1344
1607
  uploadType?: string;
1345
1608
  }): Request<ListLocationsResponse>;
1346
1609
  global: GlobalResource;
1610
+ vpcFlowLogsConfigs: VpcFlowLogsConfigsResource;
1347
1611
  }
1348
1612
  interface ProjectsResource {
1349
1613
  locations: LocationsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.networkmanagement-v1",
3
- "version": "0.0.20241202",
3
+ "version": "0.0.20241210",
4
4
  "description": "TypeScript typings for Network Management API v1",
5
5
  "repository": {
6
6
  "type": "git",