@maxim_mazurok/gapi.client.securitycenter-v1 0.0.20230921 → 0.0.20231005

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 +51 -2
  2. package/package.json +1 -1
  3. package/tests.ts +81 -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://securitycenter.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230921
12
+ // Revision: 20231005
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -663,6 +663,9 @@ declare namespace gapi.client {
663
663
  /** Kubernetes resources associated with the finding. */
664
664
  kubernetes?:
665
665
  Kubernetes;
666
+ /** The load balancers associated with the finding. */
667
+ loadBalancers?:
668
+ LoadBalancer[];
666
669
  /** MITRE ATT&CK tactics and techniques related to this finding. See: https://attack.mitre.org */
667
670
  mitreAttack?:
668
671
  MitreAttack;
@@ -713,6 +716,9 @@ declare namespace gapi.client {
713
716
  /** Output only. User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the finding. */
714
717
  securityMarks?:
715
718
  SecurityMarks;
719
+ /** The security posture associated with the finding. */
720
+ securityPosture?:
721
+ SecurityPosture;
716
722
  /** The severity of the finding. This field is managed by the source that writes the finding. */
717
723
  severity?:
718
724
  string;
@@ -1413,6 +1419,10 @@ declare namespace gapi.client {
1413
1419
  /** Provides Kubernetes [node](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture#nodes) information. */
1414
1420
  nodes?:
1415
1421
  Node[];
1422
+ /** Kubernetes objects related to the finding. */
1423
+ objects?:
1424
+ // tslint:disable-next-line:ban-types
1425
+ Object[];
1416
1426
  /**
1417
1427
  * Kubernetes [Pods](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) associated with the finding. This field contains Pod records for each container that is owned by a
1418
1428
  * Pod.
@@ -1577,6 +1587,11 @@ declare namespace gapi.client {
1577
1587
  valuedResources?:
1578
1588
  ValuedResource[];
1579
1589
  }
1590
+ interface LoadBalancer {
1591
+ /** The name of the load balancer associated with the finding. */
1592
+ name?:
1593
+ string;
1594
+ }
1580
1595
  interface MemoryHashSignature {
1581
1596
  /** The binary family. */
1582
1597
  binaryFamily?:
@@ -1640,6 +1655,23 @@ declare namespace gapi.client {
1640
1655
  streamingConfig?:
1641
1656
  StreamingConfig;
1642
1657
  }
1658
+ interface Object {
1659
+ /** Kubernetes object group, such as "policy.k8s.io/v1". */
1660
+ group?:
1661
+ string;
1662
+ /** Kubernetes object kind, such as “Namespace”. */
1663
+ kind?:
1664
+ string;
1665
+ /** Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/. */
1666
+ name?:
1667
+ string;
1668
+ /**
1669
+ * Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see
1670
+ * https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.
1671
+ */
1672
+ ns?:
1673
+ string;
1674
+ }
1643
1675
  interface Operation {
1644
1676
  /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
1645
1677
  done?:
@@ -1900,6 +1932,23 @@ declare namespace gapi.client {
1900
1932
  name?:
1901
1933
  string;
1902
1934
  }
1935
+ interface SecurityPosture {
1936
+ /** The name of the policy that has been updated, for example, `projects/{project_id}/policies/{constraint_name}`. */
1937
+ changedPolicy?:
1938
+ string;
1939
+ /** Name of the posture, for example, `organizations/{org_id}/locations/{location}/postures/{posture_name}`. */
1940
+ name?:
1941
+ string;
1942
+ /** The name of the posture deployment, for example, `projects/{project_id}/posturedeployments/{posture_deployment_id}`. */
1943
+ postureDeployment?:
1944
+ string;
1945
+ /** The project, folder, or organization on which the posture is deployed, for example, `projects/{project_id}`. */
1946
+ postureDeploymentResource?:
1947
+ string;
1948
+ /** The version of the posture, for example, `c7cfa2a8`. */
1949
+ revisionId?:
1950
+ string;
1951
+ }
1903
1952
  interface ServiceAccountDelegationInfo {
1904
1953
  /** The email address of a Google account. */
1905
1954
  principalEmail?:
@@ -1952,7 +2001,7 @@ declare namespace gapi.client {
1952
2001
  }
1953
2002
  interface Source {
1954
2003
  /**
1955
- * The canonical name of the finding. It's either "organizations/{organization_id}/sources/{source_id}", "folders/{folder_id}/sources/{source_id}" or
2004
+ * The canonical name of the finding source. It's either "organizations/{organization_id}/sources/{source_id}", "folders/{folder_id}/sources/{source_id}", or
1956
2005
  * "projects/{project_number}/sources/{source_id}", depending on the closest CRM ancestor of the resource associated with the finding.
1957
2006
  */
1958
2007
  canonicalName?:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.securitycenter-v1",
3
- "version": "0.0.20230921",
3
+ "version": "0.0.20231005",
4
4
  "description": "TypeScript typings for Security Command Center API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230921
6
+ // Revision: 20231005
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -584,6 +584,14 @@ gapi.load('client', async () => {
584
584
  name: "Test string",
585
585
  }
586
586
  ],
587
+ objects: [
588
+ {
589
+ group: "Test string",
590
+ kind: "Test string",
591
+ name: "Test string",
592
+ ns: "Test string",
593
+ }
594
+ ],
587
595
  pods: [
588
596
  {
589
597
  containers: [
@@ -618,6 +626,11 @@ gapi.load('client', async () => {
618
626
  }
619
627
  ],
620
628
  },
629
+ loadBalancers: [
630
+ {
631
+ name: "Test string",
632
+ }
633
+ ],
621
634
  mitreAttack: {
622
635
  additionalTactics: [
623
636
  "Test string"
@@ -691,6 +704,13 @@ gapi.load('client', async () => {
691
704
  },
692
705
  name: "Test string",
693
706
  },
707
+ securityPosture: {
708
+ changedPolicy: "Test string",
709
+ name: "Test string",
710
+ postureDeployment: "Test string",
711
+ postureDeploymentResource: "Test string",
712
+ revisionId: "Test string",
713
+ },
694
714
  severity: "Test string",
695
715
  sourceProperties: {
696
716
  A: 42
@@ -1569,6 +1589,14 @@ gapi.load('client', async () => {
1569
1589
  name: "Test string",
1570
1590
  }
1571
1591
  ],
1592
+ objects: [
1593
+ {
1594
+ group: "Test string",
1595
+ kind: "Test string",
1596
+ name: "Test string",
1597
+ ns: "Test string",
1598
+ }
1599
+ ],
1572
1600
  pods: [
1573
1601
  {
1574
1602
  containers: [
@@ -1603,6 +1631,11 @@ gapi.load('client', async () => {
1603
1631
  }
1604
1632
  ],
1605
1633
  },
1634
+ loadBalancers: [
1635
+ {
1636
+ name: "Test string",
1637
+ }
1638
+ ],
1606
1639
  mitreAttack: {
1607
1640
  additionalTactics: [
1608
1641
  "Test string"
@@ -1676,6 +1709,13 @@ gapi.load('client', async () => {
1676
1709
  },
1677
1710
  name: "Test string",
1678
1711
  },
1712
+ securityPosture: {
1713
+ changedPolicy: "Test string",
1714
+ name: "Test string",
1715
+ postureDeployment: "Test string",
1716
+ postureDeploymentResource: "Test string",
1717
+ revisionId: "Test string",
1718
+ },
1679
1719
  severity: "Test string",
1680
1720
  sourceProperties: {
1681
1721
  A: 42
@@ -1962,6 +2002,14 @@ gapi.load('client', async () => {
1962
2002
  name: "Test string",
1963
2003
  }
1964
2004
  ],
2005
+ objects: [
2006
+ {
2007
+ group: "Test string",
2008
+ kind: "Test string",
2009
+ name: "Test string",
2010
+ ns: "Test string",
2011
+ }
2012
+ ],
1965
2013
  pods: [
1966
2014
  {
1967
2015
  containers: [
@@ -1996,6 +2044,11 @@ gapi.load('client', async () => {
1996
2044
  }
1997
2045
  ],
1998
2046
  },
2047
+ loadBalancers: [
2048
+ {
2049
+ name: "Test string",
2050
+ }
2051
+ ],
1999
2052
  mitreAttack: {
2000
2053
  additionalTactics: [
2001
2054
  "Test string"
@@ -2069,6 +2122,13 @@ gapi.load('client', async () => {
2069
2122
  },
2070
2123
  name: "Test string",
2071
2124
  },
2125
+ securityPosture: {
2126
+ changedPolicy: "Test string",
2127
+ name: "Test string",
2128
+ postureDeployment: "Test string",
2129
+ postureDeploymentResource: "Test string",
2130
+ revisionId: "Test string",
2131
+ },
2072
2132
  severity: "Test string",
2073
2133
  sourceProperties: {
2074
2134
  A: 42
@@ -2691,6 +2751,14 @@ gapi.load('client', async () => {
2691
2751
  name: "Test string",
2692
2752
  }
2693
2753
  ],
2754
+ objects: [
2755
+ {
2756
+ group: "Test string",
2757
+ kind: "Test string",
2758
+ name: "Test string",
2759
+ ns: "Test string",
2760
+ }
2761
+ ],
2694
2762
  pods: [
2695
2763
  {
2696
2764
  containers: [
@@ -2725,6 +2793,11 @@ gapi.load('client', async () => {
2725
2793
  }
2726
2794
  ],
2727
2795
  },
2796
+ loadBalancers: [
2797
+ {
2798
+ name: "Test string",
2799
+ }
2800
+ ],
2728
2801
  mitreAttack: {
2729
2802
  additionalTactics: [
2730
2803
  "Test string"
@@ -2798,6 +2871,13 @@ gapi.load('client', async () => {
2798
2871
  },
2799
2872
  name: "Test string",
2800
2873
  },
2874
+ securityPosture: {
2875
+ changedPolicy: "Test string",
2876
+ name: "Test string",
2877
+ postureDeployment: "Test string",
2878
+ postureDeploymentResource: "Test string",
2879
+ revisionId: "Test string",
2880
+ },
2801
2881
  severity: "Test string",
2802
2882
  sourceProperties: {
2803
2883
  A: 42