@maxim_mazurok/gapi.client.containeranalysis-v1beta1 0.0.20240220 → 0.0.20240301
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 +341 -1
- 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://containeranalysis.googleapis.com/$discovery/rest?version=v1beta1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240301
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1621,6 +1621,345 @@ declare namespace gapi.client {
|
|
|
1621
1621
|
uploadType?: string;
|
|
1622
1622
|
}): Request<ListNoteOccurrencesResponse>;
|
|
1623
1623
|
}
|
|
1624
|
+
interface NotesResource {
|
|
1625
|
+
/** Gets the specified note. */
|
|
1626
|
+
get(request?: {
|
|
1627
|
+
/** V1 error format. */
|
|
1628
|
+
'$.xgafv'?: string;
|
|
1629
|
+
/** OAuth access token. */
|
|
1630
|
+
access_token?: string;
|
|
1631
|
+
/** Data format for response. */
|
|
1632
|
+
alt?: string;
|
|
1633
|
+
/** JSONP */
|
|
1634
|
+
callback?: string;
|
|
1635
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1636
|
+
fields?: string;
|
|
1637
|
+
/** 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. */
|
|
1638
|
+
key?: string;
|
|
1639
|
+
/** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
|
|
1640
|
+
name: string;
|
|
1641
|
+
/** OAuth 2.0 token for the current user. */
|
|
1642
|
+
oauth_token?: string;
|
|
1643
|
+
/** Returns response with indentations and line breaks. */
|
|
1644
|
+
prettyPrint?: boolean;
|
|
1645
|
+
/** 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. */
|
|
1646
|
+
quotaUser?: string;
|
|
1647
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1648
|
+
upload_protocol?: string;
|
|
1649
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1650
|
+
uploadType?: string;
|
|
1651
|
+
}): Request<Note>;
|
|
1652
|
+
/** Lists notes for the specified project. */
|
|
1653
|
+
list(request?: {
|
|
1654
|
+
/** V1 error format. */
|
|
1655
|
+
'$.xgafv'?: string;
|
|
1656
|
+
/** OAuth access token. */
|
|
1657
|
+
access_token?: string;
|
|
1658
|
+
/** Data format for response. */
|
|
1659
|
+
alt?: string;
|
|
1660
|
+
/** JSONP */
|
|
1661
|
+
callback?: string;
|
|
1662
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1663
|
+
fields?: string;
|
|
1664
|
+
/** The filter expression. */
|
|
1665
|
+
filter?: string;
|
|
1666
|
+
/** 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. */
|
|
1667
|
+
key?: string;
|
|
1668
|
+
/** OAuth 2.0 token for the current user. */
|
|
1669
|
+
oauth_token?: string;
|
|
1670
|
+
/** Number of notes to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. */
|
|
1671
|
+
pageSize?: number;
|
|
1672
|
+
/** Token to provide to skip to a particular spot in the list. */
|
|
1673
|
+
pageToken?: string;
|
|
1674
|
+
/** Required. The name of the project to list notes for in the form of `projects/[PROJECT_ID]`. */
|
|
1675
|
+
parent: string;
|
|
1676
|
+
/** Returns response with indentations and line breaks. */
|
|
1677
|
+
prettyPrint?: boolean;
|
|
1678
|
+
/** 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. */
|
|
1679
|
+
quotaUser?: string;
|
|
1680
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1681
|
+
upload_protocol?: string;
|
|
1682
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1683
|
+
uploadType?: string;
|
|
1684
|
+
}): Request<ListNotesResponse>;
|
|
1685
|
+
occurrences: OccurrencesResource;
|
|
1686
|
+
}
|
|
1687
|
+
interface OccurrencesResource {
|
|
1688
|
+
/** Gets the specified occurrence. */
|
|
1689
|
+
get(request?: {
|
|
1690
|
+
/** V1 error format. */
|
|
1691
|
+
'$.xgafv'?: string;
|
|
1692
|
+
/** OAuth access token. */
|
|
1693
|
+
access_token?: string;
|
|
1694
|
+
/** Data format for response. */
|
|
1695
|
+
alt?: string;
|
|
1696
|
+
/** JSONP */
|
|
1697
|
+
callback?: string;
|
|
1698
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1699
|
+
fields?: string;
|
|
1700
|
+
/** 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. */
|
|
1701
|
+
key?: string;
|
|
1702
|
+
/** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
|
|
1703
|
+
name: string;
|
|
1704
|
+
/** OAuth 2.0 token for the current user. */
|
|
1705
|
+
oauth_token?: string;
|
|
1706
|
+
/** Returns response with indentations and line breaks. */
|
|
1707
|
+
prettyPrint?: boolean;
|
|
1708
|
+
/** 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. */
|
|
1709
|
+
quotaUser?: string;
|
|
1710
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1711
|
+
upload_protocol?: string;
|
|
1712
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1713
|
+
uploadType?: string;
|
|
1714
|
+
}): Request<Occurrence>;
|
|
1715
|
+
/** Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. */
|
|
1716
|
+
getNotes(request?: {
|
|
1717
|
+
/** V1 error format. */
|
|
1718
|
+
'$.xgafv'?: string;
|
|
1719
|
+
/** OAuth access token. */
|
|
1720
|
+
access_token?: string;
|
|
1721
|
+
/** Data format for response. */
|
|
1722
|
+
alt?: string;
|
|
1723
|
+
/** JSONP */
|
|
1724
|
+
callback?: string;
|
|
1725
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1726
|
+
fields?: string;
|
|
1727
|
+
/** 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. */
|
|
1728
|
+
key?: string;
|
|
1729
|
+
/** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
|
|
1730
|
+
name: string;
|
|
1731
|
+
/** OAuth 2.0 token for the current user. */
|
|
1732
|
+
oauth_token?: string;
|
|
1733
|
+
/** Returns response with indentations and line breaks. */
|
|
1734
|
+
prettyPrint?: boolean;
|
|
1735
|
+
/** 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. */
|
|
1736
|
+
quotaUser?: string;
|
|
1737
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1738
|
+
upload_protocol?: string;
|
|
1739
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1740
|
+
uploadType?: string;
|
|
1741
|
+
}): Request<Note>;
|
|
1742
|
+
/** Gets a summary of the number and severity of occurrences. */
|
|
1743
|
+
getVulnerabilitySummary(request?: {
|
|
1744
|
+
/** V1 error format. */
|
|
1745
|
+
'$.xgafv'?: string;
|
|
1746
|
+
/** OAuth access token. */
|
|
1747
|
+
access_token?: string;
|
|
1748
|
+
/** Data format for response. */
|
|
1749
|
+
alt?: string;
|
|
1750
|
+
/** JSONP */
|
|
1751
|
+
callback?: string;
|
|
1752
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1753
|
+
fields?: string;
|
|
1754
|
+
/** The filter expression. */
|
|
1755
|
+
filter?: string;
|
|
1756
|
+
/** 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. */
|
|
1757
|
+
key?: string;
|
|
1758
|
+
/** OAuth 2.0 token for the current user. */
|
|
1759
|
+
oauth_token?: string;
|
|
1760
|
+
/** Required. The name of the project to get a vulnerability summary for in the form of `projects/[PROJECT_ID]`. */
|
|
1761
|
+
parent: string;
|
|
1762
|
+
/** Returns response with indentations and line breaks. */
|
|
1763
|
+
prettyPrint?: boolean;
|
|
1764
|
+
/** 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. */
|
|
1765
|
+
quotaUser?: string;
|
|
1766
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1767
|
+
upload_protocol?: string;
|
|
1768
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1769
|
+
uploadType?: string;
|
|
1770
|
+
}): Request<VulnerabilityOccurrencesSummary>;
|
|
1771
|
+
/** Lists occurrences for the specified project. */
|
|
1772
|
+
list(request?: {
|
|
1773
|
+
/** V1 error format. */
|
|
1774
|
+
'$.xgafv'?: string;
|
|
1775
|
+
/** OAuth access token. */
|
|
1776
|
+
access_token?: string;
|
|
1777
|
+
/** Data format for response. */
|
|
1778
|
+
alt?: string;
|
|
1779
|
+
/** JSONP */
|
|
1780
|
+
callback?: string;
|
|
1781
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1782
|
+
fields?: string;
|
|
1783
|
+
/** The filter expression. */
|
|
1784
|
+
filter?: string;
|
|
1785
|
+
/** 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. */
|
|
1786
|
+
key?: string;
|
|
1787
|
+
/** OAuth 2.0 token for the current user. */
|
|
1788
|
+
oauth_token?: string;
|
|
1789
|
+
/** Number of occurrences to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. */
|
|
1790
|
+
pageSize?: number;
|
|
1791
|
+
/** Token to provide to skip to a particular spot in the list. */
|
|
1792
|
+
pageToken?: string;
|
|
1793
|
+
/** Required. The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`. */
|
|
1794
|
+
parent: string;
|
|
1795
|
+
/** Returns response with indentations and line breaks. */
|
|
1796
|
+
prettyPrint?: boolean;
|
|
1797
|
+
/** 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. */
|
|
1798
|
+
quotaUser?: string;
|
|
1799
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1800
|
+
upload_protocol?: string;
|
|
1801
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1802
|
+
uploadType?: string;
|
|
1803
|
+
}): Request<ListOccurrencesResponse>;
|
|
1804
|
+
}
|
|
1805
|
+
interface ResourcesResource {
|
|
1806
|
+
/** Generates an SBOM and other dependency information for the given resource. */
|
|
1807
|
+
exportSBOM(request: {
|
|
1808
|
+
/** V1 error format. */
|
|
1809
|
+
'$.xgafv'?: string;
|
|
1810
|
+
/** OAuth access token. */
|
|
1811
|
+
access_token?: string;
|
|
1812
|
+
/** Data format for response. */
|
|
1813
|
+
alt?: string;
|
|
1814
|
+
/** JSONP */
|
|
1815
|
+
callback?: string;
|
|
1816
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1817
|
+
fields?: string;
|
|
1818
|
+
/** 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. */
|
|
1819
|
+
key?: string;
|
|
1820
|
+
/** Required. The name of the resource in the form of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`. */
|
|
1821
|
+
name: string;
|
|
1822
|
+
/** OAuth 2.0 token for the current user. */
|
|
1823
|
+
oauth_token?: string;
|
|
1824
|
+
/** Returns response with indentations and line breaks. */
|
|
1825
|
+
prettyPrint?: boolean;
|
|
1826
|
+
/** 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. */
|
|
1827
|
+
quotaUser?: string;
|
|
1828
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1829
|
+
upload_protocol?: string;
|
|
1830
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1831
|
+
uploadType?: string;
|
|
1832
|
+
/** Request body */
|
|
1833
|
+
resource: ExportSBOMRequest;
|
|
1834
|
+
}): Request<ExportSBOMResponse>;
|
|
1835
|
+
exportSBOM(
|
|
1836
|
+
request: {
|
|
1837
|
+
/** V1 error format. */
|
|
1838
|
+
'$.xgafv'?: string;
|
|
1839
|
+
/** OAuth access token. */
|
|
1840
|
+
access_token?: string;
|
|
1841
|
+
/** Data format for response. */
|
|
1842
|
+
alt?: string;
|
|
1843
|
+
/** JSONP */
|
|
1844
|
+
callback?: string;
|
|
1845
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1846
|
+
fields?: string;
|
|
1847
|
+
/** 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. */
|
|
1848
|
+
key?: string;
|
|
1849
|
+
/** Required. The name of the resource in the form of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`. */
|
|
1850
|
+
name: string;
|
|
1851
|
+
/** OAuth 2.0 token for the current user. */
|
|
1852
|
+
oauth_token?: string;
|
|
1853
|
+
/** Returns response with indentations and line breaks. */
|
|
1854
|
+
prettyPrint?: boolean;
|
|
1855
|
+
/** 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. */
|
|
1856
|
+
quotaUser?: string;
|
|
1857
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1858
|
+
upload_protocol?: string;
|
|
1859
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1860
|
+
uploadType?: string;
|
|
1861
|
+
},
|
|
1862
|
+
body: ExportSBOMRequest
|
|
1863
|
+
): Request<ExportSBOMResponse>;
|
|
1864
|
+
/** Gets a summary of the packages within a given resource. */
|
|
1865
|
+
generatePackagesSummary(request: {
|
|
1866
|
+
/** V1 error format. */
|
|
1867
|
+
'$.xgafv'?: string;
|
|
1868
|
+
/** OAuth access token. */
|
|
1869
|
+
access_token?: string;
|
|
1870
|
+
/** Data format for response. */
|
|
1871
|
+
alt?: string;
|
|
1872
|
+
/** JSONP */
|
|
1873
|
+
callback?: string;
|
|
1874
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1875
|
+
fields?: string;
|
|
1876
|
+
/** 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. */
|
|
1877
|
+
key?: string;
|
|
1878
|
+
/** Required. The name of the resource to get a packages summary for in the form of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`. */
|
|
1879
|
+
name: string;
|
|
1880
|
+
/** OAuth 2.0 token for the current user. */
|
|
1881
|
+
oauth_token?: string;
|
|
1882
|
+
/** Returns response with indentations and line breaks. */
|
|
1883
|
+
prettyPrint?: boolean;
|
|
1884
|
+
/** 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. */
|
|
1885
|
+
quotaUser?: string;
|
|
1886
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1887
|
+
upload_protocol?: string;
|
|
1888
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1889
|
+
uploadType?: string;
|
|
1890
|
+
/** Request body */
|
|
1891
|
+
resource: GeneratePackagesSummaryRequest;
|
|
1892
|
+
}): Request<PackagesSummaryResponse>;
|
|
1893
|
+
generatePackagesSummary(
|
|
1894
|
+
request: {
|
|
1895
|
+
/** V1 error format. */
|
|
1896
|
+
'$.xgafv'?: string;
|
|
1897
|
+
/** OAuth access token. */
|
|
1898
|
+
access_token?: string;
|
|
1899
|
+
/** Data format for response. */
|
|
1900
|
+
alt?: string;
|
|
1901
|
+
/** JSONP */
|
|
1902
|
+
callback?: string;
|
|
1903
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1904
|
+
fields?: string;
|
|
1905
|
+
/** 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. */
|
|
1906
|
+
key?: string;
|
|
1907
|
+
/** Required. The name of the resource to get a packages summary for in the form of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`. */
|
|
1908
|
+
name: string;
|
|
1909
|
+
/** OAuth 2.0 token for the current user. */
|
|
1910
|
+
oauth_token?: string;
|
|
1911
|
+
/** Returns response with indentations and line breaks. */
|
|
1912
|
+
prettyPrint?: boolean;
|
|
1913
|
+
/** 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. */
|
|
1914
|
+
quotaUser?: string;
|
|
1915
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1916
|
+
upload_protocol?: string;
|
|
1917
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1918
|
+
uploadType?: string;
|
|
1919
|
+
},
|
|
1920
|
+
body: GeneratePackagesSummaryRequest
|
|
1921
|
+
): Request<PackagesSummaryResponse>;
|
|
1922
|
+
}
|
|
1923
|
+
interface LocationsResource {
|
|
1924
|
+
notes: NotesResource;
|
|
1925
|
+
occurrences: OccurrencesResource;
|
|
1926
|
+
resources: ResourcesResource;
|
|
1927
|
+
}
|
|
1928
|
+
interface OccurrencesResource {
|
|
1929
|
+
/** Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. */
|
|
1930
|
+
list(request?: {
|
|
1931
|
+
/** V1 error format. */
|
|
1932
|
+
'$.xgafv'?: string;
|
|
1933
|
+
/** OAuth access token. */
|
|
1934
|
+
access_token?: string;
|
|
1935
|
+
/** Data format for response. */
|
|
1936
|
+
alt?: string;
|
|
1937
|
+
/** JSONP */
|
|
1938
|
+
callback?: string;
|
|
1939
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1940
|
+
fields?: string;
|
|
1941
|
+
/** The filter expression. */
|
|
1942
|
+
filter?: string;
|
|
1943
|
+
/** 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. */
|
|
1944
|
+
key?: string;
|
|
1945
|
+
/** Required. The name of the note to list occurrences for in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
|
|
1946
|
+
name: string;
|
|
1947
|
+
/** OAuth 2.0 token for the current user. */
|
|
1948
|
+
oauth_token?: string;
|
|
1949
|
+
/** Number of occurrences to return in the list. */
|
|
1950
|
+
pageSize?: number;
|
|
1951
|
+
/** Token to provide to skip to a particular spot in the list. */
|
|
1952
|
+
pageToken?: string;
|
|
1953
|
+
/** Returns response with indentations and line breaks. */
|
|
1954
|
+
prettyPrint?: boolean;
|
|
1955
|
+
/** 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. */
|
|
1956
|
+
quotaUser?: string;
|
|
1957
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1958
|
+
upload_protocol?: string;
|
|
1959
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1960
|
+
uploadType?: string;
|
|
1961
|
+
}): Request<ListNoteOccurrencesResponse>;
|
|
1962
|
+
}
|
|
1624
1963
|
interface NotesResource {
|
|
1625
1964
|
/** Creates new notes in batch. */
|
|
1626
1965
|
batchCreate(request: {
|
|
@@ -2515,6 +2854,7 @@ declare namespace gapi.client {
|
|
|
2515
2854
|
): Request<PackagesSummaryResponse>;
|
|
2516
2855
|
}
|
|
2517
2856
|
interface ProjectsResource {
|
|
2857
|
+
locations: LocationsResource;
|
|
2518
2858
|
notes: NotesResource;
|
|
2519
2859
|
occurrences: OccurrencesResource;
|
|
2520
2860
|
resources: ResourcesResource;
|