@maxim_mazurok/gapi.client.accesscontextmanager-v1 0.4.20260819 → 0.4.20260827
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 +74 -4
- package/package.json +1 -1
- package/readme.md +14 -0
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://accesscontextmanager.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260827
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -246,9 +246,7 @@ declare namespace gapi.client {
|
|
|
246
246
|
name?: string;
|
|
247
247
|
/** Optional. Immutable. The principal that is subject to the access policies in this policy binding. */
|
|
248
248
|
principal?: Principal;
|
|
249
|
-
/** Optional.
|
|
250
|
-
restrictedClientApplications?: Application[];
|
|
251
|
-
/** Optional. A list of scoped access settings that set this binding's restrictions on a subset of applications. This field cannot be set if restricted_client_applications is set. */
|
|
249
|
+
/** Optional. A list of scoped access settings that set this binding's restrictions on a subset of applications. */
|
|
252
250
|
scopedAccessSettings?: ScopedAccessSettings[];
|
|
253
251
|
/** Optional. The Google Cloud session length (GCSL) policy for the group key. */
|
|
254
252
|
sessionSettings?: SessionSettings;
|
|
@@ -348,6 +346,16 @@ declare namespace gapi.client {
|
|
|
348
346
|
/** List of services supported by VPC Service Controls instances. */
|
|
349
347
|
supportedServices?: SupportedService[];
|
|
350
348
|
}
|
|
349
|
+
interface LookupConfiguredServicePerimeterResponse {
|
|
350
|
+
/** The resource (e.g. "projects/123", "folders/456") that directly owns/is restricted by the enforced perimeter. */
|
|
351
|
+
restrictedResource?: string;
|
|
352
|
+
/** The resource (e.g. "projects/123", "folders/456") that directly owns/is restricted by the dry-run perimeter. */
|
|
353
|
+
restrictedResourceDryRun?: string;
|
|
354
|
+
/** Fully qualified name of the configured enforced perimeter. Format: `accessPolicies/{policy_id}/servicePerimeters/{perimeter_name}` This field is empty if no enforced perimeter applies. */
|
|
355
|
+
servicePerimeter?: string;
|
|
356
|
+
/** Fully qualified name of the configured dry-run perimeter. Format: `accessPolicies/{policy_id}/servicePerimeters/{perimeter_name}` This field is empty if no dry-run perimeter configuration applies. */
|
|
357
|
+
servicePerimeterDryRun?: string;
|
|
358
|
+
}
|
|
351
359
|
interface MethodSelector {
|
|
352
360
|
/** A valid method name for the corresponding `service_name` in ApiOperation. If `*` is used as the value for the `method`, then ALL methods and permissions are allowed. */
|
|
353
361
|
method?: string;
|
|
@@ -1739,6 +1747,35 @@ declare namespace gapi.client {
|
|
|
1739
1747
|
authorizedOrgsDescs: AuthorizedOrgsDescsResource;
|
|
1740
1748
|
servicePerimeters: ServicePerimetersResource;
|
|
1741
1749
|
}
|
|
1750
|
+
interface FoldersResource {
|
|
1751
|
+
/** Looks up the configured service perimeter for a given resource Format: ['projects/{projectNumber}', 'folders/{folderNumber}']. */
|
|
1752
|
+
lookupConfiguredServicePerimeter(request?: {
|
|
1753
|
+
/** V1 error format. */
|
|
1754
|
+
'$.xgafv'?: '1' | '2';
|
|
1755
|
+
/** OAuth access token. */
|
|
1756
|
+
access_token?: string;
|
|
1757
|
+
/** Data format for response. */
|
|
1758
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1759
|
+
/** JSONP */
|
|
1760
|
+
callback?: string;
|
|
1761
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1762
|
+
fields?: string;
|
|
1763
|
+
/** 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. */
|
|
1764
|
+
key?: string;
|
|
1765
|
+
/** OAuth 2.0 token for the current user. */
|
|
1766
|
+
oauth_token?: string;
|
|
1767
|
+
/** Returns response with indentations and line breaks. */
|
|
1768
|
+
prettyPrint?: boolean;
|
|
1769
|
+
/** 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. */
|
|
1770
|
+
quotaUser?: string;
|
|
1771
|
+
/** Required. The Resource to resolve (e.g. "projects/123", "folders/456"). */
|
|
1772
|
+
resource: string;
|
|
1773
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1774
|
+
upload_protocol?: string;
|
|
1775
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1776
|
+
uploadType?: string;
|
|
1777
|
+
}): Request<LookupConfiguredServicePerimeterResponse>;
|
|
1778
|
+
}
|
|
1742
1779
|
interface OperationsResource {
|
|
1743
1780
|
/** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
|
|
1744
1781
|
cancel(request: {
|
|
@@ -2135,6 +2172,35 @@ declare namespace gapi.client {
|
|
|
2135
2172
|
uploadType?: string;
|
|
2136
2173
|
}): Request<ListSupportedPermissionsResponse>;
|
|
2137
2174
|
}
|
|
2175
|
+
interface ProjectsResource {
|
|
2176
|
+
/** Looks up the configured service perimeter for a given resource Format: ['projects/{projectNumber}', 'folders/{folderNumber}']. */
|
|
2177
|
+
lookupConfiguredServicePerimeter(request?: {
|
|
2178
|
+
/** V1 error format. */
|
|
2179
|
+
'$.xgafv'?: '1' | '2';
|
|
2180
|
+
/** OAuth access token. */
|
|
2181
|
+
access_token?: string;
|
|
2182
|
+
/** Data format for response. */
|
|
2183
|
+
alt?: 'json' | 'media' | 'proto';
|
|
2184
|
+
/** JSONP */
|
|
2185
|
+
callback?: string;
|
|
2186
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2187
|
+
fields?: string;
|
|
2188
|
+
/** 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. */
|
|
2189
|
+
key?: string;
|
|
2190
|
+
/** OAuth 2.0 token for the current user. */
|
|
2191
|
+
oauth_token?: string;
|
|
2192
|
+
/** Returns response with indentations and line breaks. */
|
|
2193
|
+
prettyPrint?: boolean;
|
|
2194
|
+
/** 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. */
|
|
2195
|
+
quotaUser?: string;
|
|
2196
|
+
/** Required. The Resource to resolve (e.g. "projects/123", "folders/456"). */
|
|
2197
|
+
resource: string;
|
|
2198
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2199
|
+
upload_protocol?: string;
|
|
2200
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2201
|
+
uploadType?: string;
|
|
2202
|
+
}): Request<LookupConfiguredServicePerimeterResponse>;
|
|
2203
|
+
}
|
|
2138
2204
|
interface ServicesResource {
|
|
2139
2205
|
/** Returns a VPC-SC supported service based on the service name. **IAM Permissions**: Requires the following IAM permissions to use this method: - `serviceusage.services.use` on the project. */
|
|
2140
2206
|
get(request?: {
|
|
@@ -2196,12 +2262,16 @@ declare namespace gapi.client {
|
|
|
2196
2262
|
|
|
2197
2263
|
const accessPolicies: AccessPoliciesResource;
|
|
2198
2264
|
|
|
2265
|
+
const folders: FoldersResource;
|
|
2266
|
+
|
|
2199
2267
|
const operations: OperationsResource;
|
|
2200
2268
|
|
|
2201
2269
|
const organizations: OrganizationsResource;
|
|
2202
2270
|
|
|
2203
2271
|
const permissions: PermissionsResource;
|
|
2204
2272
|
|
|
2273
|
+
const projects: ProjectsResource;
|
|
2274
|
+
|
|
2205
2275
|
const services: ServicesResource;
|
|
2206
2276
|
}
|
|
2207
2277
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -132,6 +132,13 @@ await gapi.client.accesscontextmanager.accessPolicies.testIamPermissions({
|
|
|
132
132
|
resource: 'resource',
|
|
133
133
|
});
|
|
134
134
|
|
|
135
|
+
/*
|
|
136
|
+
Looks up the configured service perimeter for a given resource Format: ['projects/{projectNumber}', 'folders/{folderNumber}'].
|
|
137
|
+
*/
|
|
138
|
+
await gapi.client.accesscontextmanager.folders.lookupConfiguredServicePerimeter(
|
|
139
|
+
{resource: 'resource'},
|
|
140
|
+
);
|
|
141
|
+
|
|
135
142
|
/*
|
|
136
143
|
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
|
|
137
144
|
*/
|
|
@@ -157,6 +164,13 @@ Lists all supported permissions in VPC Service Controls ingress and egress rules
|
|
|
157
164
|
*/
|
|
158
165
|
await gapi.client.accesscontextmanager.permissions.list({});
|
|
159
166
|
|
|
167
|
+
/*
|
|
168
|
+
Looks up the configured service perimeter for a given resource Format: ['projects/{projectNumber}', 'folders/{folderNumber}'].
|
|
169
|
+
*/
|
|
170
|
+
await gapi.client.accesscontextmanager.projects.lookupConfiguredServicePerimeter(
|
|
171
|
+
{resource: 'resource'},
|
|
172
|
+
);
|
|
173
|
+
|
|
160
174
|
/*
|
|
161
175
|
Returns a VPC-SC supported service based on the service name. **IAM Permissions**: Requires the following IAM permissions to use this method: - `serviceusage.services.use` on the project.
|
|
162
176
|
*/
|