@maxim_mazurok/gapi.client.securitycenter-v1beta2 0.0.20230921 → 0.0.20231001

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 (4) hide show
  1. package/index.d.ts +46 -131
  2. package/package.json +1 -1
  3. package/readme.md +0 -15
  4. package/tests.ts +1 -13
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://securitycenter.googleapis.com/$discovery/rest?version=v1beta2
12
- // Revision: 20230921
12
+ // Revision: 20231001
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -494,6 +494,9 @@ declare namespace gapi.client {
494
494
  /** Kubernetes resources associated with the finding. */
495
495
  kubernetes?:
496
496
  Kubernetes;
497
+ /** The load balancers associated with the finding. */
498
+ loadBalancers?:
499
+ LoadBalancer[];
497
500
  /** MITRE ATT&CK tactics and techniques related to this finding. See: https://attack.mitre.org */
498
501
  mitreAttack?:
499
502
  MitreAttack;
@@ -544,6 +547,9 @@ declare namespace gapi.client {
544
547
  /** Output only. User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the finding. */
545
548
  securityMarks?:
546
549
  SecurityMarks;
550
+ /** The security posture associated with the finding. */
551
+ securityPosture?:
552
+ SecurityPosture;
547
553
  /** The severity of the finding. This field is managed by the source that writes the finding. */
548
554
  severity?:
549
555
  string;
@@ -1079,6 +1085,10 @@ declare namespace gapi.client {
1079
1085
  /** Provides Kubernetes [node](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture#nodes) information. */
1080
1086
  nodes?:
1081
1087
  Node[];
1088
+ /** Kubernetes objects related to the finding. */
1089
+ objects?:
1090
+ // tslint:disable-next-line:ban-types
1091
+ Object[];
1082
1092
  /**
1083
1093
  * Kubernetes [Pods](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) associated with the finding. This field contains Pod records for each container that is owned by a
1084
1094
  * Pod.
@@ -1097,6 +1107,11 @@ declare namespace gapi.client {
1097
1107
  value?:
1098
1108
  string;
1099
1109
  }
1110
+ interface LoadBalancer {
1111
+ /** The name of the load balancer associated with the finding. */
1112
+ name?:
1113
+ string;
1114
+ }
1100
1115
  interface MemoryHashSignature {
1101
1116
  /** The binary family. */
1102
1117
  binaryFamily?:
@@ -1139,12 +1154,21 @@ declare namespace gapi.client {
1139
1154
  nodes?:
1140
1155
  Node[];
1141
1156
  }
1142
- interface OnboardingState {
1143
- /** The resource name of the OnboardingState. Format: organizations/{organization}/onboardingState Format: folders/{folder}/onboardingState Format: projects/{project}/onboardingState */
1157
+ interface Object {
1158
+ /** Kubernetes object group, such as "policy.k8s.io/v1". */
1159
+ group?:
1160
+ string;
1161
+ /** Kubernetes object kind, such as “Namespace”. */
1162
+ kind?:
1163
+ string;
1164
+ /** Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/. */
1144
1165
  name?:
1145
1166
  string;
1146
- /** Describes the level a given organization, folder, or project is onboarded with SCC. If the resource wasn't onboarded, NOT_FOUND would have been thrown. */
1147
- onboardingLevel?:
1167
+ /**
1168
+ * Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see
1169
+ * https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.
1170
+ */
1171
+ ns?:
1148
1172
  string;
1149
1173
  }
1150
1174
  interface Pod {
@@ -1309,6 +1333,23 @@ declare namespace gapi.client {
1309
1333
  name?:
1310
1334
  string;
1311
1335
  }
1336
+ interface SecurityPosture {
1337
+ /** The name of the policy that has been updated, for example, `projects/{project_id}/policies/{constraint_name}`. */
1338
+ changedPolicy?:
1339
+ string;
1340
+ /** Name of the posture, for example, `organizations/{org_id}/locations/{location}/postures/{posture_name}`. */
1341
+ name?:
1342
+ string;
1343
+ /** The name of the posture deployment, for example, `projects/{project_id}/posturedeployments/{posture_deployment_id}`. */
1344
+ postureDeployment?:
1345
+ string;
1346
+ /** The project, folder, or organization on which the posture is deployed, for example, `projects/{project_id}`. */
1347
+ postureDeploymentResource?:
1348
+ string;
1349
+ /** The version of the posture, for example, `c7cfa2a8`. */
1350
+ revisionId?:
1351
+ string;
1352
+ }
1312
1353
  interface ServiceAccountDelegationInfo {
1313
1354
  /** The email address of a Google account. */
1314
1355
  principalEmail?:
@@ -1779,48 +1820,6 @@ declare namespace gapi.client {
1779
1820
  uploadType?:
1780
1821
  string;
1781
1822
  }): Request<EventThreatDetectionSettings>;
1782
- /** Retrieve the OnboardingState of a resource. */
1783
- getOnboardingState(request?: {
1784
- /** V1 error format. */
1785
- "$.xgafv"?:
1786
- string;
1787
- /** OAuth access token. */
1788
- access_token?:
1789
- string;
1790
- /** Data format for response. */
1791
- alt?:
1792
- string;
1793
- /** JSONP */
1794
- callback?:
1795
- string;
1796
- /** Selector specifying which fields to include in a partial response. */
1797
- fields?:
1798
- string;
1799
- /** 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. */
1800
- key?:
1801
- string;
1802
- /**
1803
- * Required. The name of the OnboardingState to retrieve. Formats: * organizations/{organization}/onboardingState * folders/{folder}/onboardingState *
1804
- * projects/{project}/onboardingState
1805
- */
1806
- name:
1807
- string;
1808
- /** OAuth 2.0 token for the current user. */
1809
- oauth_token?:
1810
- string;
1811
- /** Returns response with indentations and line breaks. */
1812
- prettyPrint?:
1813
- boolean;
1814
- /** 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. */
1815
- quotaUser?:
1816
- string;
1817
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1818
- upload_protocol?:
1819
- string;
1820
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1821
- uploadType?:
1822
- string;
1823
- }): Request<OnboardingState>;
1824
1823
  /**
1825
1824
  * Get the RapidVulnerabilityDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be
1826
1825
  * made about these fields. In other words, GetRapidVulnerabilityDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited
@@ -3003,48 +3002,6 @@ declare namespace gapi.client {
3003
3002
  uploadType?:
3004
3003
  string;
3005
3004
  }): Request<EventThreatDetectionSettings>;
3006
- /** Retrieve the OnboardingState of a resource. */
3007
- getOnboardingState(request?: {
3008
- /** V1 error format. */
3009
- "$.xgafv"?:
3010
- string;
3011
- /** OAuth access token. */
3012
- access_token?:
3013
- string;
3014
- /** Data format for response. */
3015
- alt?:
3016
- string;
3017
- /** JSONP */
3018
- callback?:
3019
- string;
3020
- /** Selector specifying which fields to include in a partial response. */
3021
- fields?:
3022
- string;
3023
- /** 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. */
3024
- key?:
3025
- string;
3026
- /**
3027
- * Required. The name of the OnboardingState to retrieve. Formats: * organizations/{organization}/onboardingState * folders/{folder}/onboardingState *
3028
- * projects/{project}/onboardingState
3029
- */
3030
- name:
3031
- string;
3032
- /** OAuth 2.0 token for the current user. */
3033
- oauth_token?:
3034
- string;
3035
- /** Returns response with indentations and line breaks. */
3036
- prettyPrint?:
3037
- boolean;
3038
- /** 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. */
3039
- quotaUser?:
3040
- string;
3041
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3042
- upload_protocol?:
3043
- string;
3044
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3045
- uploadType?:
3046
- string;
3047
- }): Request<OnboardingState>;
3048
3005
  /**
3049
3006
  * Get the RapidVulnerabilityDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be
3050
3007
  * made about these fields. In other words, GetRapidVulnerabilityDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited
@@ -4465,48 +4422,6 @@ declare namespace gapi.client {
4465
4422
  uploadType?:
4466
4423
  string;
4467
4424
  }): Request<EventThreatDetectionSettings>;
4468
- /** Retrieve the OnboardingState of a resource. */
4469
- getOnboardingState(request?: {
4470
- /** V1 error format. */
4471
- "$.xgafv"?:
4472
- string;
4473
- /** OAuth access token. */
4474
- access_token?:
4475
- string;
4476
- /** Data format for response. */
4477
- alt?:
4478
- string;
4479
- /** JSONP */
4480
- callback?:
4481
- string;
4482
- /** Selector specifying which fields to include in a partial response. */
4483
- fields?:
4484
- string;
4485
- /** 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. */
4486
- key?:
4487
- string;
4488
- /**
4489
- * Required. The name of the OnboardingState to retrieve. Formats: * organizations/{organization}/onboardingState * folders/{folder}/onboardingState *
4490
- * projects/{project}/onboardingState
4491
- */
4492
- name:
4493
- string;
4494
- /** OAuth 2.0 token for the current user. */
4495
- oauth_token?:
4496
- string;
4497
- /** Returns response with indentations and line breaks. */
4498
- prettyPrint?:
4499
- boolean;
4500
- /** 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. */
4501
- quotaUser?:
4502
- string;
4503
- /** Upload protocol for media (e.g. "raw", "multipart"). */
4504
- upload_protocol?:
4505
- string;
4506
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4507
- uploadType?:
4508
- string;
4509
- }): Request<OnboardingState>;
4510
4425
  /**
4511
4426
  * Get the RapidVulnerabilityDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be
4512
4427
  * made about these fields. In other words, GetRapidVulnerabilityDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.securitycenter-v1beta2",
3
- "version": "0.0.20230921",
3
+ "version": "0.0.20231001",
4
4
  "description": "TypeScript typings for Security Command Center API v1beta2",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -76,11 +76,6 @@ Get the EventThreatDetectionSettings resource. In the returned settings response
76
76
  */
77
77
  await gapi.client.securitycenter.folders.getEventThreatDetectionSettings({ name: "name", });
78
78
 
79
- /*
80
- Retrieve the OnboardingState of a resource.
81
- */
82
- await gapi.client.securitycenter.folders.getOnboardingState({ name: "name", });
83
-
84
79
  /*
85
80
  Get the RapidVulnerabilityDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetRapidVulnerabilityDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateRapidVulnerabilityDetectionSettings for this purpose.
86
81
  */
@@ -146,11 +141,6 @@ Get the EventThreatDetectionSettings resource. In the returned settings response
146
141
  */
147
142
  await gapi.client.securitycenter.organizations.getEventThreatDetectionSettings({ name: "name", });
148
143
 
149
- /*
150
- Retrieve the OnboardingState of a resource.
151
- */
152
- await gapi.client.securitycenter.organizations.getOnboardingState({ name: "name", });
153
-
154
144
  /*
155
145
  Get the RapidVulnerabilityDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetRapidVulnerabilityDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateRapidVulnerabilityDetectionSettings for this purpose.
156
146
  */
@@ -221,11 +211,6 @@ Get the EventThreatDetectionSettings resource. In the returned settings response
221
211
  */
222
212
  await gapi.client.securitycenter.projects.getEventThreatDetectionSettings({ name: "name", });
223
213
 
224
- /*
225
- Retrieve the OnboardingState of a resource.
226
- */
227
- await gapi.client.securitycenter.projects.getOnboardingState({ name: "name", });
228
-
229
214
  /*
230
215
  Get the RapidVulnerabilityDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetRapidVulnerabilityDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateRapidVulnerabilityDetectionSettings for this purpose.
231
216
  */
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: 20230921
6
+ // Revision: 20231001
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -45,10 +45,6 @@ gapi.load('client', async () => {
45
45
  await gapi.client.securitycenter.folders.getEventThreatDetectionSettings({
46
46
  name: "Test string",
47
47
  });
48
- /** Retrieve the OnboardingState of a resource. */
49
- await gapi.client.securitycenter.folders.getOnboardingState({
50
- name: "Test string",
51
- });
52
48
  /**
53
49
  * Get the RapidVulnerabilityDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made
54
50
  * about these fields. In other words, GetRapidVulnerabilityDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and
@@ -254,10 +250,6 @@ gapi.load('client', async () => {
254
250
  await gapi.client.securitycenter.organizations.getEventThreatDetectionSettings({
255
251
  name: "Test string",
256
252
  });
257
- /** Retrieve the OnboardingState of a resource. */
258
- await gapi.client.securitycenter.organizations.getOnboardingState({
259
- name: "Test string",
260
- });
261
253
  /**
262
254
  * Get the RapidVulnerabilityDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made
263
255
  * about these fields. In other words, GetRapidVulnerabilityDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and
@@ -467,10 +459,6 @@ gapi.load('client', async () => {
467
459
  await gapi.client.securitycenter.projects.getEventThreatDetectionSettings({
468
460
  name: "Test string",
469
461
  });
470
- /** Retrieve the OnboardingState of a resource. */
471
- await gapi.client.securitycenter.projects.getOnboardingState({
472
- name: "Test string",
473
- });
474
462
  /**
475
463
  * Get the RapidVulnerabilityDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made
476
464
  * about these fields. In other words, GetRapidVulnerabilityDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and