@maxim_mazurok/gapi.client.securitycenter-v1 0.0.20230713 → 0.0.20230721

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 +2857 -1535
  2. package/package.json +1 -1
  3. package/tests.ts +166 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.securitycenter-v1",
3
- "version": "0.0.20230713",
3
+ "version": "0.0.20230721",
4
4
  "description": "TypeScript typings for Security Command Center 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: 20230713
6
+ // Revision: 20230721
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -108,6 +108,61 @@ gapi.load('client', async () => {
108
108
  principal: "Test string",
109
109
  updateTime: "Test string",
110
110
  });
111
+ /** Validates the given Event Threat Detection Custom Module. */
112
+ await gapi.client.securitycenter.folders.eventThreatDetectionSettings.validateCustomModule({
113
+ parent: "Test string",
114
+ }, {
115
+ rawText: "Test string",
116
+ type: "Test string",
117
+ });
118
+ /** Creates an ETD custom module at the given level. Creating a module has a side-effect of creating modules at all descendants. */
119
+ await gapi.client.securitycenter.folders.eventThreatDetectionSettings.customModules.create({
120
+ parent: "Test string",
121
+ }, {
122
+ config: {
123
+ A: 42
124
+ },
125
+ description: "Test string",
126
+ displayName: "Test string",
127
+ enablementState: "Test string",
128
+ lastEditor: "Test string",
129
+ name: "Test string",
130
+ type: "Test string",
131
+ updateTime: "Test string",
132
+ });
133
+ /** Deletes an ETD custom module. Deletion at resident level also deletes modules at all descendants. Deletion at any other level is not supported. */
134
+ await gapi.client.securitycenter.folders.eventThreatDetectionSettings.customModules.delete({
135
+ name: "Test string",
136
+ });
137
+ /** Gets an ETD custom module. Retrieves the module at the given level. */
138
+ await gapi.client.securitycenter.folders.eventThreatDetectionSettings.customModules.get({
139
+ name: "Test string",
140
+ });
141
+ /** Lists ETD custom modules. Retrieve all resident and inherited modules at the given level (no descendants). */
142
+ await gapi.client.securitycenter.folders.eventThreatDetectionSettings.customModules.list({
143
+ pageSize: 42,
144
+ pageToken: "Test string",
145
+ parent: "Test string",
146
+ });
147
+ /**
148
+ * Updates an ETD custom module at the given level. All config fields can be updated when updating the module at resident level. Only enablement state can be updated when updating the
149
+ * module at inherited levels. Updating the module has a side-effect that it updates all descendants that are inherited from this module.
150
+ */
151
+ await gapi.client.securitycenter.folders.eventThreatDetectionSettings.customModules.patch({
152
+ name: "Test string",
153
+ updateMask: "Test string",
154
+ }, {
155
+ config: {
156
+ A: 42
157
+ },
158
+ description: "Test string",
159
+ displayName: "Test string",
160
+ enablementState: "Test string",
161
+ lastEditor: "Test string",
162
+ name: "Test string",
163
+ type: "Test string",
164
+ updateTime: "Test string",
165
+ });
111
166
  /**
112
167
  * Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted
113
168
  * after the LRO is done.
@@ -856,6 +911,61 @@ gapi.load('client', async () => {
856
911
  principal: "Test string",
857
912
  updateTime: "Test string",
858
913
  });
914
+ /** Validates the given Event Threat Detection Custom Module. */
915
+ await gapi.client.securitycenter.organizations.eventThreatDetectionSettings.validateCustomModule({
916
+ parent: "Test string",
917
+ }, {
918
+ rawText: "Test string",
919
+ type: "Test string",
920
+ });
921
+ /** Creates an ETD custom module at the given level. Creating a module has a side-effect of creating modules at all descendants. */
922
+ await gapi.client.securitycenter.organizations.eventThreatDetectionSettings.customModules.create({
923
+ parent: "Test string",
924
+ }, {
925
+ config: {
926
+ A: 42
927
+ },
928
+ description: "Test string",
929
+ displayName: "Test string",
930
+ enablementState: "Test string",
931
+ lastEditor: "Test string",
932
+ name: "Test string",
933
+ type: "Test string",
934
+ updateTime: "Test string",
935
+ });
936
+ /** Deletes an ETD custom module. Deletion at resident level also deletes modules at all descendants. Deletion at any other level is not supported. */
937
+ await gapi.client.securitycenter.organizations.eventThreatDetectionSettings.customModules.delete({
938
+ name: "Test string",
939
+ });
940
+ /** Gets an ETD custom module. Retrieves the module at the given level. */
941
+ await gapi.client.securitycenter.organizations.eventThreatDetectionSettings.customModules.get({
942
+ name: "Test string",
943
+ });
944
+ /** Lists ETD custom modules. Retrieve all resident and inherited modules at the given level (no descendants). */
945
+ await gapi.client.securitycenter.organizations.eventThreatDetectionSettings.customModules.list({
946
+ pageSize: 42,
947
+ pageToken: "Test string",
948
+ parent: "Test string",
949
+ });
950
+ /**
951
+ * Updates an ETD custom module at the given level. All config fields can be updated when updating the module at resident level. Only enablement state can be updated when updating the
952
+ * module at inherited levels. Updating the module has a side-effect that it updates all descendants that are inherited from this module.
953
+ */
954
+ await gapi.client.securitycenter.organizations.eventThreatDetectionSettings.customModules.patch({
955
+ name: "Test string",
956
+ updateMask: "Test string",
957
+ }, {
958
+ config: {
959
+ A: 42
960
+ },
961
+ description: "Test string",
962
+ displayName: "Test string",
963
+ enablementState: "Test string",
964
+ lastEditor: "Test string",
965
+ name: "Test string",
966
+ type: "Test string",
967
+ updateTime: "Test string",
968
+ });
859
969
  /**
860
970
  * Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted
861
971
  * after the LRO is done.
@@ -2036,6 +2146,61 @@ gapi.load('client', async () => {
2036
2146
  principal: "Test string",
2037
2147
  updateTime: "Test string",
2038
2148
  });
2149
+ /** Validates the given Event Threat Detection Custom Module. */
2150
+ await gapi.client.securitycenter.projects.eventThreatDetectionSettings.validateCustomModule({
2151
+ parent: "Test string",
2152
+ }, {
2153
+ rawText: "Test string",
2154
+ type: "Test string",
2155
+ });
2156
+ /** Creates an ETD custom module at the given level. Creating a module has a side-effect of creating modules at all descendants. */
2157
+ await gapi.client.securitycenter.projects.eventThreatDetectionSettings.customModules.create({
2158
+ parent: "Test string",
2159
+ }, {
2160
+ config: {
2161
+ A: 42
2162
+ },
2163
+ description: "Test string",
2164
+ displayName: "Test string",
2165
+ enablementState: "Test string",
2166
+ lastEditor: "Test string",
2167
+ name: "Test string",
2168
+ type: "Test string",
2169
+ updateTime: "Test string",
2170
+ });
2171
+ /** Deletes an ETD custom module. Deletion at resident level also deletes modules at all descendants. Deletion at any other level is not supported. */
2172
+ await gapi.client.securitycenter.projects.eventThreatDetectionSettings.customModules.delete({
2173
+ name: "Test string",
2174
+ });
2175
+ /** Gets an ETD custom module. Retrieves the module at the given level. */
2176
+ await gapi.client.securitycenter.projects.eventThreatDetectionSettings.customModules.get({
2177
+ name: "Test string",
2178
+ });
2179
+ /** Lists ETD custom modules. Retrieve all resident and inherited modules at the given level (no descendants). */
2180
+ await gapi.client.securitycenter.projects.eventThreatDetectionSettings.customModules.list({
2181
+ pageSize: 42,
2182
+ pageToken: "Test string",
2183
+ parent: "Test string",
2184
+ });
2185
+ /**
2186
+ * Updates an ETD custom module at the given level. All config fields can be updated when updating the module at resident level. Only enablement state can be updated when updating the
2187
+ * module at inherited levels. Updating the module has a side-effect that it updates all descendants that are inherited from this module.
2188
+ */
2189
+ await gapi.client.securitycenter.projects.eventThreatDetectionSettings.customModules.patch({
2190
+ name: "Test string",
2191
+ updateMask: "Test string",
2192
+ }, {
2193
+ config: {
2194
+ A: 42
2195
+ },
2196
+ description: "Test string",
2197
+ displayName: "Test string",
2198
+ enablementState: "Test string",
2199
+ lastEditor: "Test string",
2200
+ name: "Test string",
2201
+ type: "Test string",
2202
+ updateTime: "Test string",
2203
+ });
2039
2204
  /**
2040
2205
  * Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted
2041
2206
  * after the LRO is done.