@maxim_mazurok/gapi.client.cloudasset-v1 0.0.20230811 → 0.0.20230908

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.
Files changed (3) hide show
  1. package/index.d.ts +53 -6
  2. package/package.json +1 -1
  3. package/tests.ts +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://cloudasset.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230811
12
+ // Revision: 20230908
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1053,11 +1053,11 @@ declare namespace gapi.client {
1053
1053
  parent?:
1054
1054
  string;
1055
1055
  /**
1056
- * The scopes of a policy define which resources an ACM policy can restrict, and where ACM resources can be referenced. For example, a policy with scopes=["folders/123"] has the
1057
- * following behavior: - vpcsc perimeters can only restrict projects within folders/123 - access levels can only be referenced by resources within folders/123. If empty, there are no
1058
- * limitations on which resources can be restricted by an ACM policy, and there are no limitations on where ACM resources can be referenced. Only one policy can include a given scope
1059
- * (attempting to create a second policy which includes "folders/123" will result in an error). Currently, scopes cannot be modified after a policy is created. Currently, policies can
1060
- * only have a single scope. Format: list of `folders/{folder_number}` or `projects/{project_number}`
1056
+ * The scopes of the AccessPolicy. Scopes define which resources a policy can restrict and where its resources can be referenced. For example, policy A with `scopes=["folders/123"]`
1057
+ * has the following behavior: - ServicePerimeter can only restrict projects within `folders/123`. - ServicePerimeter within policy A can only reference access levels defined within
1058
+ * policy A. - Only one policy can include a given scope; thus, attempting to create a second policy which includes `folders/123` will result in an error. If no scopes are provided,
1059
+ * then any resource within the organization can be restricted. Scopes cannot be modified after a policy is created. Policies can only have a single scope. Format: list of
1060
+ * `folders/{folder_number}` or `projects/{project_number}`
1061
1061
  */
1062
1062
  scopes?:
1063
1063
  string[];
@@ -1122,6 +1122,9 @@ declare namespace gapi.client {
1122
1122
  */
1123
1123
  requiredAccessLevels?:
1124
1124
  string[];
1125
+ /** The request must originate from one of the provided VPC networks in Google Cloud. Cannot specify this field together with `ip_subnetworks`. */
1126
+ vpcNetworkSources?:
1127
+ GoogleIdentityAccesscontextmanagerV1VpcNetworkSource[];
1125
1128
  }
1126
1129
  interface GoogleIdentityAccesscontextmanagerV1CustomLevel {
1127
1130
  /** Required. A Cloud CEL expression evaluating to a boolean. */
@@ -1158,6 +1161,12 @@ declare namespace gapi.client {
1158
1161
  /** Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of `identities` field will be allowed access. */
1159
1162
  identityType?:
1160
1163
  string;
1164
+ /** Whether to enforce traffic restrictions based on `sources` field. If the `sources` fields is non-empty, then this field must be set to `SOURCE_RESTRICTION_ENABLED`. */
1165
+ sourceRestriction?:
1166
+ string;
1167
+ /** Sources that this EgressPolicy authorizes access from. If this field is not empty, then `source_restriction` must be set to `SOURCE_RESTRICTION_ENABLED`. */
1168
+ sources?:
1169
+ GoogleIdentityAccesscontextmanagerV1EgressSource[];
1161
1170
  }
1162
1171
  interface GoogleIdentityAccesscontextmanagerV1EgressPolicy {
1163
1172
  /** Defines conditions on the source of a request causing this EgressPolicy to apply. */
@@ -1167,6 +1176,16 @@ declare namespace gapi.client {
1167
1176
  egressTo?:
1168
1177
  GoogleIdentityAccesscontextmanagerV1EgressTo;
1169
1178
  }
1179
+ interface GoogleIdentityAccesscontextmanagerV1EgressSource {
1180
+ /**
1181
+ * An AccessLevel resource name that allows protected resources inside the ServicePerimeters to access outside the ServicePerimeter boundaries. AccessLevels listed must be in the same
1182
+ * policy as this ServicePerimeter. Referencing a nonexistent AccessLevel will cause an error. If an AccessLevel name is not specified, only resources within the perimeter can be
1183
+ * accessed through Google Cloud calls with request origins within the perimeter. Example: `accessPolicies/MY_POLICY/accessLevels/MY_LEVEL`. If a single `*` is specified for
1184
+ * `access_level`, then all EgressSources will be allowed.
1185
+ */
1186
+ accessLevel?:
1187
+ string;
1188
+ }
1170
1189
  interface GoogleIdentityAccesscontextmanagerV1EgressTo {
1171
1190
  /**
1172
1191
  * A list of external resources that are allowed to be accessed. Only AWS and Azure resources are supported. For Amazon S3, the supported format is s3://BUCKET_NAME. For Azure Storage,
@@ -1344,6 +1363,26 @@ declare namespace gapi.client {
1344
1363
  enableRestriction?:
1345
1364
  boolean;
1346
1365
  }
1366
+ interface GoogleIdentityAccesscontextmanagerV1VpcNetworkSource {
1367
+ /** Sub-segment ranges of a VPC network. */
1368
+ vpcSubnetwork?:
1369
+ GoogleIdentityAccesscontextmanagerV1VpcSubNetwork;
1370
+ }
1371
+ interface GoogleIdentityAccesscontextmanagerV1VpcSubNetwork {
1372
+ /**
1373
+ * Required. Network name. If the network is not part of the organization, the `compute.network.get` permission must be granted to the caller. Format:
1374
+ * `//compute.googleapis.com/projects/{PROJECT_ID}/global/networks/{NETWORK_NAME}` Example: `//compute.googleapis.com/projects/my-project/global/networks/network-1`
1375
+ */
1376
+ network?:
1377
+ string;
1378
+ /**
1379
+ * CIDR block IP subnetwork specification. The IP address must be an IPv4 address and can be a public or private IP address. Note that for a CIDR IP address block, the specified IP
1380
+ * address portion must be properly truncated (i.e. all the host bits must be zero) or the input is considered malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is
1381
+ * not. If empty, all IP addresses are allowed.
1382
+ */
1383
+ vpcIpSubnetworks?:
1384
+ string[];
1385
+ }
1347
1386
  interface IamPolicyAnalysis {
1348
1387
  /** The analysis query. */
1349
1388
  analysisQuery?:
@@ -2038,6 +2077,14 @@ declare namespace gapi.client {
2038
2077
  */
2039
2078
  relationships?:
2040
2079
  { [P in string]: RelatedResources };
2080
+ /**
2081
+ * The actual content of Security Command Center security marks associated with the asset. Note that both staging & prod SecurityMarks are attached on prod resources. In CAS
2082
+ * preprod/prod, both staging & prod SecurityMarks are ingested and returned in the following `security_marks` map. In that case, the prefix "staging." will be added to the keys of all
2083
+ * the staging marks. To search against SCC SecurityMarks field: * Use a field query: - query by a given key value pair. Example: `sccSecurityMarks.foo=bar` - query by a given key's
2084
+ * existence. Example: `sccSecurityMarks.foo:*`
2085
+ */
2086
+ sccSecurityMarks?:
2087
+ { [P in string]: string };
2041
2088
  /**
2042
2089
  * The state of this resource. Different resources types have different state definitions that are mapped from various fields of different resource types. This field is available only
2043
2090
  * when the resource's Protobuf contains it. Example: If the resource is an instance provided by Compute Engine, its state will include PROVISIONING, STAGING, RUNNING, STOPPING,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudasset-v1",
3
- "version": "0.0.20230811",
3
+ "version": "0.0.20230908",
4
4
  "description": "TypeScript typings for Cloud Asset API v1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230811
6
+ // Revision: 20230908
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */