@maxim_mazurok/gapi.client.containeranalysis-v1beta1 0.0.20240823 → 0.0.20240916
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=v1beta1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240916
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1816,6 +1816,36 @@ declare namespace gapi.client {
|
|
|
1816
1816
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1817
1817
|
uploadType?: string;
|
|
1818
1818
|
}): Request<Note>;
|
|
1819
|
+
/** 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. */
|
|
1820
|
+
getIamPolicy(
|
|
1821
|
+
request: {
|
|
1822
|
+
/** V1 error format. */
|
|
1823
|
+
'$.xgafv'?: string;
|
|
1824
|
+
/** OAuth access token. */
|
|
1825
|
+
access_token?: string;
|
|
1826
|
+
/** Data format for response. */
|
|
1827
|
+
alt?: string;
|
|
1828
|
+
/** JSONP */
|
|
1829
|
+
callback?: string;
|
|
1830
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1831
|
+
fields?: string;
|
|
1832
|
+
/** 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. */
|
|
1833
|
+
key?: string;
|
|
1834
|
+
/** OAuth 2.0 token for the current user. */
|
|
1835
|
+
oauth_token?: string;
|
|
1836
|
+
/** Returns response with indentations and line breaks. */
|
|
1837
|
+
prettyPrint?: boolean;
|
|
1838
|
+
/** 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. */
|
|
1839
|
+
quotaUser?: string;
|
|
1840
|
+
/** 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. */
|
|
1841
|
+
resource: string;
|
|
1842
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1843
|
+
upload_protocol?: string;
|
|
1844
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1845
|
+
uploadType?: string;
|
|
1846
|
+
},
|
|
1847
|
+
body: GetIamPolicyRequest
|
|
1848
|
+
): Request<Policy>;
|
|
1819
1849
|
/** Lists notes for the specified project. */
|
|
1820
1850
|
list(request?: {
|
|
1821
1851
|
/** V1 error format. */
|
|
@@ -1911,6 +1941,66 @@ declare namespace gapi.client {
|
|
|
1911
1941
|
},
|
|
1912
1942
|
body: Note
|
|
1913
1943
|
): Request<Note>;
|
|
1944
|
+
/** 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. */
|
|
1945
|
+
setIamPolicy(
|
|
1946
|
+
request: {
|
|
1947
|
+
/** V1 error format. */
|
|
1948
|
+
'$.xgafv'?: string;
|
|
1949
|
+
/** OAuth access token. */
|
|
1950
|
+
access_token?: string;
|
|
1951
|
+
/** Data format for response. */
|
|
1952
|
+
alt?: string;
|
|
1953
|
+
/** JSONP */
|
|
1954
|
+
callback?: string;
|
|
1955
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1956
|
+
fields?: string;
|
|
1957
|
+
/** 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. */
|
|
1958
|
+
key?: string;
|
|
1959
|
+
/** OAuth 2.0 token for the current user. */
|
|
1960
|
+
oauth_token?: string;
|
|
1961
|
+
/** Returns response with indentations and line breaks. */
|
|
1962
|
+
prettyPrint?: boolean;
|
|
1963
|
+
/** 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. */
|
|
1964
|
+
quotaUser?: string;
|
|
1965
|
+
/** 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. */
|
|
1966
|
+
resource: string;
|
|
1967
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1968
|
+
upload_protocol?: string;
|
|
1969
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1970
|
+
uploadType?: string;
|
|
1971
|
+
},
|
|
1972
|
+
body: SetIamPolicyRequest
|
|
1973
|
+
): Request<Policy>;
|
|
1974
|
+
/** 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. */
|
|
1975
|
+
testIamPermissions(
|
|
1976
|
+
request: {
|
|
1977
|
+
/** V1 error format. */
|
|
1978
|
+
'$.xgafv'?: string;
|
|
1979
|
+
/** OAuth access token. */
|
|
1980
|
+
access_token?: string;
|
|
1981
|
+
/** Data format for response. */
|
|
1982
|
+
alt?: string;
|
|
1983
|
+
/** JSONP */
|
|
1984
|
+
callback?: string;
|
|
1985
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1986
|
+
fields?: string;
|
|
1987
|
+
/** 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. */
|
|
1988
|
+
key?: string;
|
|
1989
|
+
/** OAuth 2.0 token for the current user. */
|
|
1990
|
+
oauth_token?: string;
|
|
1991
|
+
/** Returns response with indentations and line breaks. */
|
|
1992
|
+
prettyPrint?: boolean;
|
|
1993
|
+
/** 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. */
|
|
1994
|
+
quotaUser?: string;
|
|
1995
|
+
/** 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. */
|
|
1996
|
+
resource: string;
|
|
1997
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1998
|
+
upload_protocol?: string;
|
|
1999
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2000
|
+
uploadType?: string;
|
|
2001
|
+
},
|
|
2002
|
+
body: TestIamPermissionsRequest
|
|
2003
|
+
): Request<TestIamPermissionsResponse>;
|
|
1914
2004
|
occurrences: OccurrencesResource;
|
|
1915
2005
|
}
|
|
1916
2006
|
interface OccurrencesResource {
|
|
@@ -2084,6 +2174,36 @@ declare namespace gapi.client {
|
|
|
2084
2174
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2085
2175
|
uploadType?: string;
|
|
2086
2176
|
}): Request<Occurrence>;
|
|
2177
|
+
/** 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. */
|
|
2178
|
+
getIamPolicy(
|
|
2179
|
+
request: {
|
|
2180
|
+
/** V1 error format. */
|
|
2181
|
+
'$.xgafv'?: string;
|
|
2182
|
+
/** OAuth access token. */
|
|
2183
|
+
access_token?: string;
|
|
2184
|
+
/** Data format for response. */
|
|
2185
|
+
alt?: string;
|
|
2186
|
+
/** JSONP */
|
|
2187
|
+
callback?: string;
|
|
2188
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2189
|
+
fields?: string;
|
|
2190
|
+
/** 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. */
|
|
2191
|
+
key?: string;
|
|
2192
|
+
/** OAuth 2.0 token for the current user. */
|
|
2193
|
+
oauth_token?: string;
|
|
2194
|
+
/** Returns response with indentations and line breaks. */
|
|
2195
|
+
prettyPrint?: boolean;
|
|
2196
|
+
/** 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. */
|
|
2197
|
+
quotaUser?: string;
|
|
2198
|
+
/** 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. */
|
|
2199
|
+
resource: string;
|
|
2200
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2201
|
+
upload_protocol?: string;
|
|
2202
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2203
|
+
uploadType?: string;
|
|
2204
|
+
},
|
|
2205
|
+
body: GetIamPolicyRequest
|
|
2206
|
+
): Request<Policy>;
|
|
2087
2207
|
/** Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. */
|
|
2088
2208
|
getNotes(request?: {
|
|
2089
2209
|
/** V1 error format. */
|
|
@@ -2235,6 +2355,66 @@ declare namespace gapi.client {
|
|
|
2235
2355
|
},
|
|
2236
2356
|
body: Occurrence
|
|
2237
2357
|
): Request<Occurrence>;
|
|
2358
|
+
/** 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. */
|
|
2359
|
+
setIamPolicy(
|
|
2360
|
+
request: {
|
|
2361
|
+
/** V1 error format. */
|
|
2362
|
+
'$.xgafv'?: string;
|
|
2363
|
+
/** OAuth access token. */
|
|
2364
|
+
access_token?: string;
|
|
2365
|
+
/** Data format for response. */
|
|
2366
|
+
alt?: string;
|
|
2367
|
+
/** JSONP */
|
|
2368
|
+
callback?: string;
|
|
2369
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2370
|
+
fields?: string;
|
|
2371
|
+
/** 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. */
|
|
2372
|
+
key?: string;
|
|
2373
|
+
/** OAuth 2.0 token for the current user. */
|
|
2374
|
+
oauth_token?: string;
|
|
2375
|
+
/** Returns response with indentations and line breaks. */
|
|
2376
|
+
prettyPrint?: boolean;
|
|
2377
|
+
/** 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. */
|
|
2378
|
+
quotaUser?: string;
|
|
2379
|
+
/** 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. */
|
|
2380
|
+
resource: string;
|
|
2381
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2382
|
+
upload_protocol?: string;
|
|
2383
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2384
|
+
uploadType?: string;
|
|
2385
|
+
},
|
|
2386
|
+
body: SetIamPolicyRequest
|
|
2387
|
+
): Request<Policy>;
|
|
2388
|
+
/** 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. */
|
|
2389
|
+
testIamPermissions(
|
|
2390
|
+
request: {
|
|
2391
|
+
/** V1 error format. */
|
|
2392
|
+
'$.xgafv'?: string;
|
|
2393
|
+
/** OAuth access token. */
|
|
2394
|
+
access_token?: string;
|
|
2395
|
+
/** Data format for response. */
|
|
2396
|
+
alt?: string;
|
|
2397
|
+
/** JSONP */
|
|
2398
|
+
callback?: string;
|
|
2399
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2400
|
+
fields?: string;
|
|
2401
|
+
/** 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. */
|
|
2402
|
+
key?: string;
|
|
2403
|
+
/** OAuth 2.0 token for the current user. */
|
|
2404
|
+
oauth_token?: string;
|
|
2405
|
+
/** Returns response with indentations and line breaks. */
|
|
2406
|
+
prettyPrint?: boolean;
|
|
2407
|
+
/** 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. */
|
|
2408
|
+
quotaUser?: string;
|
|
2409
|
+
/** 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. */
|
|
2410
|
+
resource: string;
|
|
2411
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2412
|
+
upload_protocol?: string;
|
|
2413
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2414
|
+
uploadType?: string;
|
|
2415
|
+
},
|
|
2416
|
+
body: TestIamPermissionsRequest
|
|
2417
|
+
): Request<TestIamPermissionsResponse>;
|
|
2238
2418
|
}
|
|
2239
2419
|
interface ResourcesResource {
|
|
2240
2420
|
/** Generates an SBOM and other dependency information for the given resource. */
|