@maxim_mazurok/gapi.client.containeranalysis-v1beta1 0.0.20230612 → 0.0.20230623
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 +148 -1
- package/package.json +1 -1
- package/tests.ts +213 -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: 20230623
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -163,6 +163,24 @@ declare namespace gapi.client {
|
|
|
163
163
|
signature?:
|
|
164
164
|
BuildSignature;
|
|
165
165
|
}
|
|
166
|
+
interface BuildDefinition {
|
|
167
|
+
buildType?:
|
|
168
|
+
string;
|
|
169
|
+
externalParameters?:
|
|
170
|
+
{ [P in string]: any };
|
|
171
|
+
internalParameters?:
|
|
172
|
+
{ [P in string]: any };
|
|
173
|
+
resolvedDependencies?:
|
|
174
|
+
ResourceDescriptor[];
|
|
175
|
+
}
|
|
176
|
+
interface BuildMetadata {
|
|
177
|
+
finishedOn?:
|
|
178
|
+
string;
|
|
179
|
+
invocationId?:
|
|
180
|
+
string;
|
|
181
|
+
startedOn?:
|
|
182
|
+
string;
|
|
183
|
+
}
|
|
166
184
|
interface BuildProvenance {
|
|
167
185
|
/** Version string of the builder at the time this build was executed. */
|
|
168
186
|
builderVersion?:
|
|
@@ -1257,6 +1275,14 @@ declare namespace gapi.client {
|
|
|
1257
1275
|
customValues?:
|
|
1258
1276
|
{ [P in string]: string };
|
|
1259
1277
|
}
|
|
1278
|
+
// tslint:disable-next-line:no-empty-interface
|
|
1279
|
+
interface ExportSBOMRequest {
|
|
1280
|
+
}
|
|
1281
|
+
interface ExportSBOMResponse {
|
|
1282
|
+
/** The id of the discovery occurrence that can be used to track the progression of the SBOM export. */
|
|
1283
|
+
discoveryOccurrenceId?:
|
|
1284
|
+
string;
|
|
1285
|
+
}
|
|
1260
1286
|
interface Expr {
|
|
1261
1287
|
/** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
|
|
1262
1288
|
description?:
|
|
@@ -1422,6 +1448,8 @@ declare namespace gapi.client {
|
|
|
1422
1448
|
string;
|
|
1423
1449
|
}
|
|
1424
1450
|
interface GrafeasV1beta1BuildDetails {
|
|
1451
|
+
inTotoSlsaProvenanceV1?:
|
|
1452
|
+
InTotoSlsaProvenanceV1;
|
|
1425
1453
|
/** Required. The actual provenance for the build. */
|
|
1426
1454
|
provenance?:
|
|
1427
1455
|
BuildProvenance;
|
|
@@ -1575,6 +1603,12 @@ declare namespace gapi.client {
|
|
|
1575
1603
|
threshold?:
|
|
1576
1604
|
string;
|
|
1577
1605
|
}
|
|
1606
|
+
interface InTotoSlsaProvenanceV1 {
|
|
1607
|
+
buildDefinition?:
|
|
1608
|
+
BuildDefinition;
|
|
1609
|
+
runDetails?:
|
|
1610
|
+
RunDetails;
|
|
1611
|
+
}
|
|
1578
1612
|
interface Justification {
|
|
1579
1613
|
/** Additional details on why this justification was chosen. */
|
|
1580
1614
|
details?:
|
|
@@ -2053,6 +2087,14 @@ declare namespace gapi.client {
|
|
|
2053
2087
|
repoName?:
|
|
2054
2088
|
string;
|
|
2055
2089
|
}
|
|
2090
|
+
interface ProvenanceBuilder {
|
|
2091
|
+
builderDependencies?:
|
|
2092
|
+
ResourceDescriptor[];
|
|
2093
|
+
id?:
|
|
2094
|
+
string;
|
|
2095
|
+
version?:
|
|
2096
|
+
{ [P in string]: string };
|
|
2097
|
+
}
|
|
2056
2098
|
interface Publisher {
|
|
2057
2099
|
/** Provides information about the authority of the issuing party to release the document, in particular, the party's constituency and responsibilities or other obligations. */
|
|
2058
2100
|
issuingAuthority?:
|
|
@@ -2124,6 +2166,30 @@ declare namespace gapi.client {
|
|
|
2124
2166
|
uri?:
|
|
2125
2167
|
string;
|
|
2126
2168
|
}
|
|
2169
|
+
interface ResourceDescriptor {
|
|
2170
|
+
annotations?:
|
|
2171
|
+
{ [P in string]: any };
|
|
2172
|
+
content?:
|
|
2173
|
+
string;
|
|
2174
|
+
digest?:
|
|
2175
|
+
{ [P in string]: string };
|
|
2176
|
+
downloadLocation?:
|
|
2177
|
+
string;
|
|
2178
|
+
mediaType?:
|
|
2179
|
+
string;
|
|
2180
|
+
name?:
|
|
2181
|
+
string;
|
|
2182
|
+
uri?:
|
|
2183
|
+
string;
|
|
2184
|
+
}
|
|
2185
|
+
interface RunDetails {
|
|
2186
|
+
builder?:
|
|
2187
|
+
ProvenanceBuilder;
|
|
2188
|
+
byproducts?:
|
|
2189
|
+
ResourceDescriptor[];
|
|
2190
|
+
metadata?:
|
|
2191
|
+
BuildMetadata;
|
|
2192
|
+
}
|
|
2127
2193
|
interface SbomReferenceIntotoPayload {
|
|
2128
2194
|
/** Identifier for the schema of the Statement. */
|
|
2129
2195
|
_type?:
|
|
@@ -3602,6 +3668,87 @@ declare namespace gapi.client {
|
|
|
3602
3668
|
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
3603
3669
|
}
|
|
3604
3670
|
interface ResourcesResource {
|
|
3671
|
+
/** Generates an SBOM and other dependency information for the given resource. */
|
|
3672
|
+
exportSBOM(request: {
|
|
3673
|
+
/** V1 error format. */
|
|
3674
|
+
"$.xgafv"?:
|
|
3675
|
+
string;
|
|
3676
|
+
/** OAuth access token. */
|
|
3677
|
+
access_token?:
|
|
3678
|
+
string;
|
|
3679
|
+
/** Data format for response. */
|
|
3680
|
+
alt?:
|
|
3681
|
+
string;
|
|
3682
|
+
/** JSONP */
|
|
3683
|
+
callback?:
|
|
3684
|
+
string;
|
|
3685
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3686
|
+
fields?:
|
|
3687
|
+
string;
|
|
3688
|
+
/** 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. */
|
|
3689
|
+
key?:
|
|
3690
|
+
string;
|
|
3691
|
+
/** Required. The name of the resource in the form of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`. */
|
|
3692
|
+
name:
|
|
3693
|
+
string;
|
|
3694
|
+
/** OAuth 2.0 token for the current user. */
|
|
3695
|
+
oauth_token?:
|
|
3696
|
+
string;
|
|
3697
|
+
/** Returns response with indentations and line breaks. */
|
|
3698
|
+
prettyPrint?:
|
|
3699
|
+
boolean;
|
|
3700
|
+
/** 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. */
|
|
3701
|
+
quotaUser?:
|
|
3702
|
+
string;
|
|
3703
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3704
|
+
upload_protocol?:
|
|
3705
|
+
string;
|
|
3706
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3707
|
+
uploadType?:
|
|
3708
|
+
string;
|
|
3709
|
+
/** Request body */
|
|
3710
|
+
resource:
|
|
3711
|
+
ExportSBOMRequest;
|
|
3712
|
+
}): Request<ExportSBOMResponse>;
|
|
3713
|
+
exportSBOM(request: {
|
|
3714
|
+
/** V1 error format. */
|
|
3715
|
+
"$.xgafv"?:
|
|
3716
|
+
string;
|
|
3717
|
+
/** OAuth access token. */
|
|
3718
|
+
access_token?:
|
|
3719
|
+
string;
|
|
3720
|
+
/** Data format for response. */
|
|
3721
|
+
alt?:
|
|
3722
|
+
string;
|
|
3723
|
+
/** JSONP */
|
|
3724
|
+
callback?:
|
|
3725
|
+
string;
|
|
3726
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3727
|
+
fields?:
|
|
3728
|
+
string;
|
|
3729
|
+
/** 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. */
|
|
3730
|
+
key?:
|
|
3731
|
+
string;
|
|
3732
|
+
/** Required. The name of the resource in the form of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`. */
|
|
3733
|
+
name:
|
|
3734
|
+
string;
|
|
3735
|
+
/** OAuth 2.0 token for the current user. */
|
|
3736
|
+
oauth_token?:
|
|
3737
|
+
string;
|
|
3738
|
+
/** Returns response with indentations and line breaks. */
|
|
3739
|
+
prettyPrint?:
|
|
3740
|
+
boolean;
|
|
3741
|
+
/** 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. */
|
|
3742
|
+
quotaUser?:
|
|
3743
|
+
string;
|
|
3744
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3745
|
+
upload_protocol?:
|
|
3746
|
+
string;
|
|
3747
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3748
|
+
uploadType?:
|
|
3749
|
+
string;
|
|
3750
|
+
},
|
|
3751
|
+
body: ExportSBOMRequest): Request<ExportSBOMResponse>;
|
|
3605
3752
|
/** Gets a summary of the packages within a given resource. */
|
|
3606
3753
|
generatePackagesSummary(request: {
|
|
3607
3754
|
/** 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: 20230623
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -1048,6 +1048,75 @@ gapi.load('client', async () => {
|
|
|
1048
1048
|
},
|
|
1049
1049
|
},
|
|
1050
1050
|
build: {
|
|
1051
|
+
inTotoSlsaProvenanceV1: {
|
|
1052
|
+
buildDefinition: {
|
|
1053
|
+
buildType: "Test string",
|
|
1054
|
+
externalParameters: {
|
|
1055
|
+
A: 42
|
|
1056
|
+
},
|
|
1057
|
+
internalParameters: {
|
|
1058
|
+
A: 42
|
|
1059
|
+
},
|
|
1060
|
+
resolvedDependencies: [
|
|
1061
|
+
{
|
|
1062
|
+
annotations: {
|
|
1063
|
+
A: 42
|
|
1064
|
+
},
|
|
1065
|
+
content: "Test string",
|
|
1066
|
+
digest: {
|
|
1067
|
+
A: "Test string"
|
|
1068
|
+
},
|
|
1069
|
+
downloadLocation: "Test string",
|
|
1070
|
+
mediaType: "Test string",
|
|
1071
|
+
name: "Test string",
|
|
1072
|
+
uri: "Test string",
|
|
1073
|
+
}
|
|
1074
|
+
],
|
|
1075
|
+
},
|
|
1076
|
+
runDetails: {
|
|
1077
|
+
builder: {
|
|
1078
|
+
builderDependencies: [
|
|
1079
|
+
{
|
|
1080
|
+
annotations: {
|
|
1081
|
+
A: 42
|
|
1082
|
+
},
|
|
1083
|
+
content: "Test string",
|
|
1084
|
+
digest: {
|
|
1085
|
+
A: "Test string"
|
|
1086
|
+
},
|
|
1087
|
+
downloadLocation: "Test string",
|
|
1088
|
+
mediaType: "Test string",
|
|
1089
|
+
name: "Test string",
|
|
1090
|
+
uri: "Test string",
|
|
1091
|
+
}
|
|
1092
|
+
],
|
|
1093
|
+
id: "Test string",
|
|
1094
|
+
version: {
|
|
1095
|
+
A: "Test string"
|
|
1096
|
+
},
|
|
1097
|
+
},
|
|
1098
|
+
byproducts: [
|
|
1099
|
+
{
|
|
1100
|
+
annotations: {
|
|
1101
|
+
A: 42
|
|
1102
|
+
},
|
|
1103
|
+
content: "Test string",
|
|
1104
|
+
digest: {
|
|
1105
|
+
A: "Test string"
|
|
1106
|
+
},
|
|
1107
|
+
downloadLocation: "Test string",
|
|
1108
|
+
mediaType: "Test string",
|
|
1109
|
+
name: "Test string",
|
|
1110
|
+
uri: "Test string",
|
|
1111
|
+
}
|
|
1112
|
+
],
|
|
1113
|
+
metadata: {
|
|
1114
|
+
finishedOn: "Test string",
|
|
1115
|
+
invocationId: "Test string",
|
|
1116
|
+
startedOn: "Test string",
|
|
1117
|
+
},
|
|
1118
|
+
},
|
|
1119
|
+
},
|
|
1051
1120
|
provenance: {
|
|
1052
1121
|
builderVersion: "Test string",
|
|
1053
1122
|
buildOptions: {
|
|
@@ -1538,6 +1607,75 @@ gapi.load('client', async () => {
|
|
|
1538
1607
|
},
|
|
1539
1608
|
},
|
|
1540
1609
|
build: {
|
|
1610
|
+
inTotoSlsaProvenanceV1: {
|
|
1611
|
+
buildDefinition: {
|
|
1612
|
+
buildType: "Test string",
|
|
1613
|
+
externalParameters: {
|
|
1614
|
+
A: 42
|
|
1615
|
+
},
|
|
1616
|
+
internalParameters: {
|
|
1617
|
+
A: 42
|
|
1618
|
+
},
|
|
1619
|
+
resolvedDependencies: [
|
|
1620
|
+
{
|
|
1621
|
+
annotations: {
|
|
1622
|
+
A: 42
|
|
1623
|
+
},
|
|
1624
|
+
content: "Test string",
|
|
1625
|
+
digest: {
|
|
1626
|
+
A: "Test string"
|
|
1627
|
+
},
|
|
1628
|
+
downloadLocation: "Test string",
|
|
1629
|
+
mediaType: "Test string",
|
|
1630
|
+
name: "Test string",
|
|
1631
|
+
uri: "Test string",
|
|
1632
|
+
}
|
|
1633
|
+
],
|
|
1634
|
+
},
|
|
1635
|
+
runDetails: {
|
|
1636
|
+
builder: {
|
|
1637
|
+
builderDependencies: [
|
|
1638
|
+
{
|
|
1639
|
+
annotations: {
|
|
1640
|
+
A: 42
|
|
1641
|
+
},
|
|
1642
|
+
content: "Test string",
|
|
1643
|
+
digest: {
|
|
1644
|
+
A: "Test string"
|
|
1645
|
+
},
|
|
1646
|
+
downloadLocation: "Test string",
|
|
1647
|
+
mediaType: "Test string",
|
|
1648
|
+
name: "Test string",
|
|
1649
|
+
uri: "Test string",
|
|
1650
|
+
}
|
|
1651
|
+
],
|
|
1652
|
+
id: "Test string",
|
|
1653
|
+
version: {
|
|
1654
|
+
A: "Test string"
|
|
1655
|
+
},
|
|
1656
|
+
},
|
|
1657
|
+
byproducts: [
|
|
1658
|
+
{
|
|
1659
|
+
annotations: {
|
|
1660
|
+
A: 42
|
|
1661
|
+
},
|
|
1662
|
+
content: "Test string",
|
|
1663
|
+
digest: {
|
|
1664
|
+
A: "Test string"
|
|
1665
|
+
},
|
|
1666
|
+
downloadLocation: "Test string",
|
|
1667
|
+
mediaType: "Test string",
|
|
1668
|
+
name: "Test string",
|
|
1669
|
+
uri: "Test string",
|
|
1670
|
+
}
|
|
1671
|
+
],
|
|
1672
|
+
metadata: {
|
|
1673
|
+
finishedOn: "Test string",
|
|
1674
|
+
invocationId: "Test string",
|
|
1675
|
+
startedOn: "Test string",
|
|
1676
|
+
},
|
|
1677
|
+
},
|
|
1678
|
+
},
|
|
1541
1679
|
provenance: {
|
|
1542
1680
|
builderVersion: "Test string",
|
|
1543
1681
|
buildOptions: {
|
|
@@ -2063,6 +2201,75 @@ gapi.load('client', async () => {
|
|
|
2063
2201
|
},
|
|
2064
2202
|
},
|
|
2065
2203
|
build: {
|
|
2204
|
+
inTotoSlsaProvenanceV1: {
|
|
2205
|
+
buildDefinition: {
|
|
2206
|
+
buildType: "Test string",
|
|
2207
|
+
externalParameters: {
|
|
2208
|
+
A: 42
|
|
2209
|
+
},
|
|
2210
|
+
internalParameters: {
|
|
2211
|
+
A: 42
|
|
2212
|
+
},
|
|
2213
|
+
resolvedDependencies: [
|
|
2214
|
+
{
|
|
2215
|
+
annotations: {
|
|
2216
|
+
A: 42
|
|
2217
|
+
},
|
|
2218
|
+
content: "Test string",
|
|
2219
|
+
digest: {
|
|
2220
|
+
A: "Test string"
|
|
2221
|
+
},
|
|
2222
|
+
downloadLocation: "Test string",
|
|
2223
|
+
mediaType: "Test string",
|
|
2224
|
+
name: "Test string",
|
|
2225
|
+
uri: "Test string",
|
|
2226
|
+
}
|
|
2227
|
+
],
|
|
2228
|
+
},
|
|
2229
|
+
runDetails: {
|
|
2230
|
+
builder: {
|
|
2231
|
+
builderDependencies: [
|
|
2232
|
+
{
|
|
2233
|
+
annotations: {
|
|
2234
|
+
A: 42
|
|
2235
|
+
},
|
|
2236
|
+
content: "Test string",
|
|
2237
|
+
digest: {
|
|
2238
|
+
A: "Test string"
|
|
2239
|
+
},
|
|
2240
|
+
downloadLocation: "Test string",
|
|
2241
|
+
mediaType: "Test string",
|
|
2242
|
+
name: "Test string",
|
|
2243
|
+
uri: "Test string",
|
|
2244
|
+
}
|
|
2245
|
+
],
|
|
2246
|
+
id: "Test string",
|
|
2247
|
+
version: {
|
|
2248
|
+
A: "Test string"
|
|
2249
|
+
},
|
|
2250
|
+
},
|
|
2251
|
+
byproducts: [
|
|
2252
|
+
{
|
|
2253
|
+
annotations: {
|
|
2254
|
+
A: 42
|
|
2255
|
+
},
|
|
2256
|
+
content: "Test string",
|
|
2257
|
+
digest: {
|
|
2258
|
+
A: "Test string"
|
|
2259
|
+
},
|
|
2260
|
+
downloadLocation: "Test string",
|
|
2261
|
+
mediaType: "Test string",
|
|
2262
|
+
name: "Test string",
|
|
2263
|
+
uri: "Test string",
|
|
2264
|
+
}
|
|
2265
|
+
],
|
|
2266
|
+
metadata: {
|
|
2267
|
+
finishedOn: "Test string",
|
|
2268
|
+
invocationId: "Test string",
|
|
2269
|
+
startedOn: "Test string",
|
|
2270
|
+
},
|
|
2271
|
+
},
|
|
2272
|
+
},
|
|
2066
2273
|
provenance: {
|
|
2067
2274
|
builderVersion: "Test string",
|
|
2068
2275
|
buildOptions: {
|
|
@@ -2565,6 +2772,11 @@ gapi.load('client', async () => {
|
|
|
2565
2772
|
"Test string"
|
|
2566
2773
|
],
|
|
2567
2774
|
});
|
|
2775
|
+
/** Generates an SBOM and other dependency information for the given resource. */
|
|
2776
|
+
await gapi.client.containeranalysis.projects.resources.exportSBOM({
|
|
2777
|
+
name: "Test string",
|
|
2778
|
+
}, {
|
|
2779
|
+
});
|
|
2568
2780
|
/** Gets a summary of the packages within a given resource. */
|
|
2569
2781
|
await gapi.client.containeranalysis.projects.resources.generatePackagesSummary({
|
|
2570
2782
|
name: "Test string",
|