@maxim_mazurok/gapi.client.containeranalysis-v1 0.0.20240812 → 0.0.20240823
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 +181 -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=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240823
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1819,6 +1819,36 @@ declare namespace gapi.client {
|
|
|
1819
1819
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1820
1820
|
uploadType?: string;
|
|
1821
1821
|
}): Request<Note>;
|
|
1822
|
+
/** Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
|
|
1823
|
+
getIamPolicy(
|
|
1824
|
+
request: {
|
|
1825
|
+
/** V1 error format. */
|
|
1826
|
+
'$.xgafv'?: string;
|
|
1827
|
+
/** OAuth access token. */
|
|
1828
|
+
access_token?: string;
|
|
1829
|
+
/** Data format for response. */
|
|
1830
|
+
alt?: string;
|
|
1831
|
+
/** JSONP */
|
|
1832
|
+
callback?: string;
|
|
1833
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1834
|
+
fields?: string;
|
|
1835
|
+
/** 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. */
|
|
1836
|
+
key?: string;
|
|
1837
|
+
/** OAuth 2.0 token for the current user. */
|
|
1838
|
+
oauth_token?: string;
|
|
1839
|
+
/** Returns response with indentations and line breaks. */
|
|
1840
|
+
prettyPrint?: boolean;
|
|
1841
|
+
/** 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. */
|
|
1842
|
+
quotaUser?: string;
|
|
1843
|
+
/** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
|
|
1844
|
+
resource: string;
|
|
1845
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1846
|
+
upload_protocol?: string;
|
|
1847
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1848
|
+
uploadType?: string;
|
|
1849
|
+
},
|
|
1850
|
+
body: GetIamPolicyRequest
|
|
1851
|
+
): Request<Policy>;
|
|
1822
1852
|
/** Lists notes for the specified project. */
|
|
1823
1853
|
list(request?: {
|
|
1824
1854
|
/** V1 error format. */
|
|
@@ -1914,6 +1944,66 @@ declare namespace gapi.client {
|
|
|
1914
1944
|
},
|
|
1915
1945
|
body: Note
|
|
1916
1946
|
): Request<Note>;
|
|
1947
|
+
/** Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
|
|
1948
|
+
setIamPolicy(
|
|
1949
|
+
request: {
|
|
1950
|
+
/** V1 error format. */
|
|
1951
|
+
'$.xgafv'?: string;
|
|
1952
|
+
/** OAuth access token. */
|
|
1953
|
+
access_token?: string;
|
|
1954
|
+
/** Data format for response. */
|
|
1955
|
+
alt?: string;
|
|
1956
|
+
/** JSONP */
|
|
1957
|
+
callback?: string;
|
|
1958
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1959
|
+
fields?: string;
|
|
1960
|
+
/** 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. */
|
|
1961
|
+
key?: string;
|
|
1962
|
+
/** OAuth 2.0 token for the current user. */
|
|
1963
|
+
oauth_token?: string;
|
|
1964
|
+
/** Returns response with indentations and line breaks. */
|
|
1965
|
+
prettyPrint?: boolean;
|
|
1966
|
+
/** 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. */
|
|
1967
|
+
quotaUser?: string;
|
|
1968
|
+
/** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
|
|
1969
|
+
resource: string;
|
|
1970
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1971
|
+
upload_protocol?: string;
|
|
1972
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1973
|
+
uploadType?: string;
|
|
1974
|
+
},
|
|
1975
|
+
body: SetIamPolicyRequest
|
|
1976
|
+
): Request<Policy>;
|
|
1977
|
+
/** Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
|
|
1978
|
+
testIamPermissions(
|
|
1979
|
+
request: {
|
|
1980
|
+
/** V1 error format. */
|
|
1981
|
+
'$.xgafv'?: string;
|
|
1982
|
+
/** OAuth access token. */
|
|
1983
|
+
access_token?: string;
|
|
1984
|
+
/** Data format for response. */
|
|
1985
|
+
alt?: string;
|
|
1986
|
+
/** JSONP */
|
|
1987
|
+
callback?: string;
|
|
1988
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1989
|
+
fields?: string;
|
|
1990
|
+
/** 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. */
|
|
1991
|
+
key?: string;
|
|
1992
|
+
/** OAuth 2.0 token for the current user. */
|
|
1993
|
+
oauth_token?: string;
|
|
1994
|
+
/** Returns response with indentations and line breaks. */
|
|
1995
|
+
prettyPrint?: boolean;
|
|
1996
|
+
/** 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. */
|
|
1997
|
+
quotaUser?: string;
|
|
1998
|
+
/** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
|
|
1999
|
+
resource: string;
|
|
2000
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2001
|
+
upload_protocol?: string;
|
|
2002
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2003
|
+
uploadType?: string;
|
|
2004
|
+
},
|
|
2005
|
+
body: TestIamPermissionsRequest
|
|
2006
|
+
): Request<TestIamPermissionsResponse>;
|
|
1917
2007
|
occurrences: OccurrencesResource;
|
|
1918
2008
|
}
|
|
1919
2009
|
interface OccurrencesResource {
|
|
@@ -2087,6 +2177,36 @@ declare namespace gapi.client {
|
|
|
2087
2177
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2088
2178
|
uploadType?: string;
|
|
2089
2179
|
}): Request<Occurrence>;
|
|
2180
|
+
/** Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
|
|
2181
|
+
getIamPolicy(
|
|
2182
|
+
request: {
|
|
2183
|
+
/** V1 error format. */
|
|
2184
|
+
'$.xgafv'?: string;
|
|
2185
|
+
/** OAuth access token. */
|
|
2186
|
+
access_token?: string;
|
|
2187
|
+
/** Data format for response. */
|
|
2188
|
+
alt?: string;
|
|
2189
|
+
/** JSONP */
|
|
2190
|
+
callback?: string;
|
|
2191
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2192
|
+
fields?: string;
|
|
2193
|
+
/** 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. */
|
|
2194
|
+
key?: string;
|
|
2195
|
+
/** OAuth 2.0 token for the current user. */
|
|
2196
|
+
oauth_token?: string;
|
|
2197
|
+
/** Returns response with indentations and line breaks. */
|
|
2198
|
+
prettyPrint?: boolean;
|
|
2199
|
+
/** 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. */
|
|
2200
|
+
quotaUser?: string;
|
|
2201
|
+
/** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
|
|
2202
|
+
resource: string;
|
|
2203
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2204
|
+
upload_protocol?: string;
|
|
2205
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2206
|
+
uploadType?: string;
|
|
2207
|
+
},
|
|
2208
|
+
body: GetIamPolicyRequest
|
|
2209
|
+
): Request<Policy>;
|
|
2090
2210
|
/** Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. */
|
|
2091
2211
|
getNotes(request?: {
|
|
2092
2212
|
/** V1 error format. */
|
|
@@ -2238,6 +2358,66 @@ declare namespace gapi.client {
|
|
|
2238
2358
|
},
|
|
2239
2359
|
body: Occurrence
|
|
2240
2360
|
): Request<Occurrence>;
|
|
2361
|
+
/** Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
|
|
2362
|
+
setIamPolicy(
|
|
2363
|
+
request: {
|
|
2364
|
+
/** V1 error format. */
|
|
2365
|
+
'$.xgafv'?: string;
|
|
2366
|
+
/** OAuth access token. */
|
|
2367
|
+
access_token?: string;
|
|
2368
|
+
/** Data format for response. */
|
|
2369
|
+
alt?: string;
|
|
2370
|
+
/** JSONP */
|
|
2371
|
+
callback?: string;
|
|
2372
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2373
|
+
fields?: string;
|
|
2374
|
+
/** 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. */
|
|
2375
|
+
key?: string;
|
|
2376
|
+
/** OAuth 2.0 token for the current user. */
|
|
2377
|
+
oauth_token?: string;
|
|
2378
|
+
/** Returns response with indentations and line breaks. */
|
|
2379
|
+
prettyPrint?: boolean;
|
|
2380
|
+
/** 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. */
|
|
2381
|
+
quotaUser?: string;
|
|
2382
|
+
/** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
|
|
2383
|
+
resource: string;
|
|
2384
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2385
|
+
upload_protocol?: string;
|
|
2386
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2387
|
+
uploadType?: string;
|
|
2388
|
+
},
|
|
2389
|
+
body: SetIamPolicyRequest
|
|
2390
|
+
): Request<Policy>;
|
|
2391
|
+
/** Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
|
|
2392
|
+
testIamPermissions(
|
|
2393
|
+
request: {
|
|
2394
|
+
/** V1 error format. */
|
|
2395
|
+
'$.xgafv'?: string;
|
|
2396
|
+
/** OAuth access token. */
|
|
2397
|
+
access_token?: string;
|
|
2398
|
+
/** Data format for response. */
|
|
2399
|
+
alt?: string;
|
|
2400
|
+
/** JSONP */
|
|
2401
|
+
callback?: string;
|
|
2402
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2403
|
+
fields?: string;
|
|
2404
|
+
/** 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. */
|
|
2405
|
+
key?: string;
|
|
2406
|
+
/** OAuth 2.0 token for the current user. */
|
|
2407
|
+
oauth_token?: string;
|
|
2408
|
+
/** Returns response with indentations and line breaks. */
|
|
2409
|
+
prettyPrint?: boolean;
|
|
2410
|
+
/** 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. */
|
|
2411
|
+
quotaUser?: string;
|
|
2412
|
+
/** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
|
|
2413
|
+
resource: string;
|
|
2414
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2415
|
+
upload_protocol?: string;
|
|
2416
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2417
|
+
uploadType?: string;
|
|
2418
|
+
},
|
|
2419
|
+
body: TestIamPermissionsRequest
|
|
2420
|
+
): Request<TestIamPermissionsResponse>;
|
|
2241
2421
|
}
|
|
2242
2422
|
interface ResourcesResource {
|
|
2243
2423
|
/** Generates an SBOM for the given resource. */
|