@maxim_mazurok/gapi.client.securitycenter-v1 0.0.20220921 → 0.0.20221014

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 +493 -7
  2. package/package.json +1 -1
  3. package/tests.ts +85 -5
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=v1
12
- // Revision: 20220921
12
+ // Revision: 20221014
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -59,7 +59,7 @@ declare namespace gapi.client {
59
59
  * A string representing a username. This is likely not an IAM principal. For instance, this may be the system user name if the finding is VM-related, or this may be some type of
60
60
  * application login user name, depending on the type of finding.
61
61
  */
62
- username?: string;
62
+ userName?: string;
63
63
  }
64
64
  interface AccessReview {
65
65
  /** Group is the API Group of the Resource. "*" means all. */
@@ -112,6 +112,12 @@ declare namespace gapi.client {
112
112
  /** The project ids to use for filtering asset discovery. */
113
113
  projectIds?: string[];
114
114
  }
115
+ interface AssociatedFinding {
116
+ /** Canonical name of the associated findings. Example: organizations/123/sources/456/findings/789 */
117
+ canonicalFindingName?: string;
118
+ /** The additional taxonomy group within findings from a given source. */
119
+ findingCategory?: string;
120
+ }
115
121
  interface AuditConfig {
116
122
  /** The configuration for logging of each type of permission. */
117
123
  auditLogConfigs?: AuditLogConfig[];
@@ -254,6 +260,12 @@ declare namespace gapi.client {
254
260
  /** The percentage of memory page hashes in the signature that were matched. */
255
261
  percentPagesMatched?: number;
256
262
  }
263
+ interface Edge {
264
+ /** This is the resource name of the destination node. */
265
+ destination?: string;
266
+ /** This is the resource name of the source node. */
267
+ source?: string;
268
+ }
257
269
  // tslint:disable-next-line:no-empty-interface
258
270
  interface Empty {
259
271
  }
@@ -477,11 +489,29 @@ declare namespace gapi.client {
477
489
  // tslint:disable-next-line:no-empty-interface
478
490
  interface GoogleCloudSecuritycenterV1BulkMuteFindingsResponse {
479
491
  }
480
- // tslint:disable-next-line:no-empty-interface
481
492
  interface GoogleCloudSecuritycenterV1ExposedResource {
493
+ /** Human readable name of the resource that is exposed. */
494
+ displayName?: string;
495
+ /** The ways in which this resource is exposed. Examples: Read, Write */
496
+ methods?: string[];
497
+ /** Exposed Resource Name e.g.: `organizations/123/attackExposureResults/456/exposedResources/789` */
498
+ name?: string;
499
+ /** The name of the resource that is exposed. See: https://cloud.google.com/apis/design/resource_names#full_resource_name */
500
+ resource?: string;
501
+ /** The resource type of the exposed resource. See: https://cloud.google.com/asset-inventory/docs/supported-asset-types */
502
+ resourceType?: string;
503
+ /** How valuable this resource is. */
504
+ resourceValue?: string;
482
505
  }
483
- // tslint:disable-next-line:no-empty-interface
484
506
  interface GoogleCloudSecuritycenterV1ExposurePath {
507
+ /** A list of the edges between nodes in this exposure path. */
508
+ edges?: Edge[];
509
+ /** The leaf node of this exposure path. */
510
+ exposedResource?: GoogleCloudSecuritycenterV1ExposedResource;
511
+ /** Exposure Path Name e.g.: `organizations/123/attackExposureResults/456/exposurePaths/789` */
512
+ name?: string;
513
+ /** A list of nodes that exist in this exposure path. */
514
+ pathNodes?: PathNode[];
485
515
  }
486
516
  interface GoogleCloudSecuritycenterV1ExternalSystem {
487
517
  /** References primary/secondary etc assignees in the external system. */
@@ -986,6 +1016,16 @@ declare namespace gapi.client {
986
1016
  */
987
1017
  name?: string;
988
1018
  }
1019
+ interface PathNode {
1020
+ /** The findings associated with this node in the exposure path. */
1021
+ associatedFindings?: AssociatedFinding[];
1022
+ /** Human readable name of this resource. */
1023
+ displayName?: string;
1024
+ /** The name of the resource at this point in the exposure path. The format of the name is: https://cloud.google.com/apis/design/resource_names#full_resource_name */
1025
+ resource?: string;
1026
+ /** The resource type of this resource. See: https://cloud.google.com/asset-inventory/docs/supported-asset-types */
1027
+ resourceType?: string;
1028
+ }
989
1029
  interface Pod {
990
1030
  /** Pod containers associated with this finding, if any. */
991
1031
  containers?: Container[];
@@ -1979,6 +2019,228 @@ declare namespace gapi.client {
1979
2019
  },
1980
2020
  body: GoogleCloudSecuritycenterV1MuteConfig): Request<GoogleCloudSecuritycenterV1MuteConfig>;
1981
2021
  }
2022
+ interface NotificationConfigsResource {
2023
+ /** Creates a notification config. */
2024
+ create(request: {
2025
+ /** V1 error format. */
2026
+ "$.xgafv"?: string;
2027
+ /** OAuth access token. */
2028
+ access_token?: string;
2029
+ /** Data format for response. */
2030
+ alt?: string;
2031
+ /** JSONP */
2032
+ callback?: string;
2033
+ /**
2034
+ * Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens
2035
+ * only.
2036
+ */
2037
+ configId?: string;
2038
+ /** Selector specifying which fields to include in a partial response. */
2039
+ fields?: string;
2040
+ /** 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. */
2041
+ key?: string;
2042
+ /** OAuth 2.0 token for the current user. */
2043
+ oauth_token?: string;
2044
+ /** Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]". */
2045
+ parent: string;
2046
+ /** Returns response with indentations and line breaks. */
2047
+ prettyPrint?: boolean;
2048
+ /** 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. */
2049
+ quotaUser?: string;
2050
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2051
+ upload_protocol?: string;
2052
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2053
+ uploadType?: string;
2054
+ /** Request body */
2055
+ resource: NotificationConfig;
2056
+ }): Request<NotificationConfig>;
2057
+ create(request: {
2058
+ /** V1 error format. */
2059
+ "$.xgafv"?: string;
2060
+ /** OAuth access token. */
2061
+ access_token?: string;
2062
+ /** Data format for response. */
2063
+ alt?: string;
2064
+ /** JSONP */
2065
+ callback?: string;
2066
+ /**
2067
+ * Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens
2068
+ * only.
2069
+ */
2070
+ configId?: string;
2071
+ /** Selector specifying which fields to include in a partial response. */
2072
+ fields?: string;
2073
+ /** 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. */
2074
+ key?: string;
2075
+ /** OAuth 2.0 token for the current user. */
2076
+ oauth_token?: string;
2077
+ /** Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]". */
2078
+ parent: string;
2079
+ /** Returns response with indentations and line breaks. */
2080
+ prettyPrint?: boolean;
2081
+ /** 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. */
2082
+ quotaUser?: string;
2083
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2084
+ upload_protocol?: string;
2085
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2086
+ uploadType?: string;
2087
+ },
2088
+ body: NotificationConfig): Request<NotificationConfig>;
2089
+ /** Deletes a notification config. */
2090
+ delete(request?: {
2091
+ /** V1 error format. */
2092
+ "$.xgafv"?: string;
2093
+ /** OAuth access token. */
2094
+ access_token?: string;
2095
+ /** Data format for response. */
2096
+ alt?: string;
2097
+ /** JSONP */
2098
+ callback?: string;
2099
+ /** Selector specifying which fields to include in a partial response. */
2100
+ fields?: string;
2101
+ /** 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. */
2102
+ key?: string;
2103
+ /** Required. Name of the notification config to delete. Its format is "organizations/[organization_id]/notificationConfigs/[config_id]". */
2104
+ name: string;
2105
+ /** OAuth 2.0 token for the current user. */
2106
+ oauth_token?: string;
2107
+ /** Returns response with indentations and line breaks. */
2108
+ prettyPrint?: boolean;
2109
+ /** 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. */
2110
+ quotaUser?: string;
2111
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2112
+ upload_protocol?: string;
2113
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2114
+ uploadType?: string;
2115
+ }): Request<{}>;
2116
+ /** Gets a notification config. */
2117
+ get(request?: {
2118
+ /** V1 error format. */
2119
+ "$.xgafv"?: string;
2120
+ /** OAuth access token. */
2121
+ access_token?: string;
2122
+ /** Data format for response. */
2123
+ alt?: string;
2124
+ /** JSONP */
2125
+ callback?: string;
2126
+ /** Selector specifying which fields to include in a partial response. */
2127
+ fields?: string;
2128
+ /** 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. */
2129
+ key?: string;
2130
+ /** Required. Name of the notification config to get. Its format is "organizations/[organization_id]/notificationConfigs/[config_id]". */
2131
+ name: string;
2132
+ /** OAuth 2.0 token for the current user. */
2133
+ oauth_token?: string;
2134
+ /** Returns response with indentations and line breaks. */
2135
+ prettyPrint?: boolean;
2136
+ /** 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. */
2137
+ quotaUser?: string;
2138
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2139
+ upload_protocol?: string;
2140
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2141
+ uploadType?: string;
2142
+ }): Request<NotificationConfig>;
2143
+ /** Lists notification configs. */
2144
+ list(request?: {
2145
+ /** V1 error format. */
2146
+ "$.xgafv"?: string;
2147
+ /** OAuth access token. */
2148
+ access_token?: string;
2149
+ /** Data format for response. */
2150
+ alt?: string;
2151
+ /** JSONP */
2152
+ callback?: string;
2153
+ /** Selector specifying which fields to include in a partial response. */
2154
+ fields?: string;
2155
+ /** 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. */
2156
+ key?: string;
2157
+ /** OAuth 2.0 token for the current user. */
2158
+ oauth_token?: string;
2159
+ /** The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000. */
2160
+ pageSize?: number;
2161
+ /**
2162
+ * The value returned by the last `ListNotificationConfigsResponse`; indicates that this is a continuation of a prior `ListNotificationConfigs` call, and that the system should
2163
+ * return the next page of data.
2164
+ */
2165
+ pageToken?: string;
2166
+ /** Required. Name of the organization to list notification configs. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]". */
2167
+ parent: string;
2168
+ /** Returns response with indentations and line breaks. */
2169
+ prettyPrint?: boolean;
2170
+ /** 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. */
2171
+ quotaUser?: string;
2172
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2173
+ upload_protocol?: string;
2174
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2175
+ uploadType?: string;
2176
+ }): Request<ListNotificationConfigsResponse>;
2177
+ /** Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter */
2178
+ patch(request: {
2179
+ /** V1 error format. */
2180
+ "$.xgafv"?: string;
2181
+ /** OAuth access token. */
2182
+ access_token?: string;
2183
+ /** Data format for response. */
2184
+ alt?: string;
2185
+ /** JSONP */
2186
+ callback?: string;
2187
+ /** Selector specifying which fields to include in a partial response. */
2188
+ fields?: string;
2189
+ /** 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. */
2190
+ key?: string;
2191
+ /**
2192
+ * The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
2193
+ * "organizations/{organization_id}/notificationConfigs/notify_public_bucket".
2194
+ */
2195
+ name: string;
2196
+ /** OAuth 2.0 token for the current user. */
2197
+ oauth_token?: string;
2198
+ /** Returns response with indentations and line breaks. */
2199
+ prettyPrint?: boolean;
2200
+ /** 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. */
2201
+ quotaUser?: string;
2202
+ /** The FieldMask to use when updating the notification config. If empty all mutable fields will be updated. */
2203
+ updateMask?: string;
2204
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2205
+ upload_protocol?: string;
2206
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2207
+ uploadType?: string;
2208
+ /** Request body */
2209
+ resource: NotificationConfig;
2210
+ }): Request<NotificationConfig>;
2211
+ patch(request: {
2212
+ /** V1 error format. */
2213
+ "$.xgafv"?: string;
2214
+ /** OAuth access token. */
2215
+ access_token?: string;
2216
+ /** Data format for response. */
2217
+ alt?: string;
2218
+ /** JSONP */
2219
+ callback?: string;
2220
+ /** Selector specifying which fields to include in a partial response. */
2221
+ fields?: string;
2222
+ /** 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. */
2223
+ key?: string;
2224
+ /**
2225
+ * The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
2226
+ * "organizations/{organization_id}/notificationConfigs/notify_public_bucket".
2227
+ */
2228
+ name: string;
2229
+ /** OAuth 2.0 token for the current user. */
2230
+ oauth_token?: string;
2231
+ /** Returns response with indentations and line breaks. */
2232
+ prettyPrint?: boolean;
2233
+ /** 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. */
2234
+ quotaUser?: string;
2235
+ /** The FieldMask to use when updating the notification config. If empty all mutable fields will be updated. */
2236
+ updateMask?: string;
2237
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2238
+ upload_protocol?: string;
2239
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2240
+ uploadType?: string;
2241
+ },
2242
+ body: NotificationConfig): Request<NotificationConfig>;
2243
+ }
1982
2244
  interface ExternalSystemsResource {
1983
2245
  /** Updates external system. This is for a given finding. */
1984
2246
  patch(request: {
@@ -2517,6 +2779,7 @@ declare namespace gapi.client {
2517
2779
  bigQueryExports: BigQueryExportsResource;
2518
2780
  findings: FindingsResource;
2519
2781
  muteConfigs: MuteConfigsResource;
2782
+ notificationConfigs: NotificationConfigsResource;
2520
2783
  sources: SourcesResource;
2521
2784
  }
2522
2785
  interface AssetsResource {
@@ -3342,7 +3605,7 @@ declare namespace gapi.client {
3342
3605
  key?: string;
3343
3606
  /** OAuth 2.0 token for the current user. */
3344
3607
  oauth_token?: string;
3345
- /** Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]" or "projects/[project_id]". */
3608
+ /** Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]". */
3346
3609
  parent: string;
3347
3610
  /** Returns response with indentations and line breaks. */
3348
3611
  prettyPrint?: boolean;
@@ -3375,7 +3638,7 @@ declare namespace gapi.client {
3375
3638
  key?: string;
3376
3639
  /** OAuth 2.0 token for the current user. */
3377
3640
  oauth_token?: string;
3378
- /** Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]" or "projects/[project_id]". */
3641
+ /** Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]". */
3379
3642
  parent: string;
3380
3643
  /** Returns response with indentations and line breaks. */
3381
3644
  prettyPrint?: boolean;
@@ -3464,7 +3727,7 @@ declare namespace gapi.client {
3464
3727
  * return the next page of data.
3465
3728
  */
3466
3729
  pageToken?: string;
3467
- /** Required. Name of the organization to list notification configs. Its format is "organizations/[organization_id]" or "projects/[project_id]". */
3730
+ /** Required. Name of the organization to list notification configs. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]". */
3468
3731
  parent: string;
3469
3732
  /** Returns response with indentations and line breaks. */
3470
3733
  prettyPrint?: boolean;
@@ -5356,6 +5619,228 @@ declare namespace gapi.client {
5356
5619
  },
5357
5620
  body: GoogleCloudSecuritycenterV1MuteConfig): Request<GoogleCloudSecuritycenterV1MuteConfig>;
5358
5621
  }
5622
+ interface NotificationConfigsResource {
5623
+ /** Creates a notification config. */
5624
+ create(request: {
5625
+ /** V1 error format. */
5626
+ "$.xgafv"?: string;
5627
+ /** OAuth access token. */
5628
+ access_token?: string;
5629
+ /** Data format for response. */
5630
+ alt?: string;
5631
+ /** JSONP */
5632
+ callback?: string;
5633
+ /**
5634
+ * Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens
5635
+ * only.
5636
+ */
5637
+ configId?: string;
5638
+ /** Selector specifying which fields to include in a partial response. */
5639
+ fields?: string;
5640
+ /** 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. */
5641
+ key?: string;
5642
+ /** OAuth 2.0 token for the current user. */
5643
+ oauth_token?: string;
5644
+ /** Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]". */
5645
+ parent: string;
5646
+ /** Returns response with indentations and line breaks. */
5647
+ prettyPrint?: boolean;
5648
+ /** 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. */
5649
+ quotaUser?: string;
5650
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5651
+ upload_protocol?: string;
5652
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5653
+ uploadType?: string;
5654
+ /** Request body */
5655
+ resource: NotificationConfig;
5656
+ }): Request<NotificationConfig>;
5657
+ create(request: {
5658
+ /** V1 error format. */
5659
+ "$.xgafv"?: string;
5660
+ /** OAuth access token. */
5661
+ access_token?: string;
5662
+ /** Data format for response. */
5663
+ alt?: string;
5664
+ /** JSONP */
5665
+ callback?: string;
5666
+ /**
5667
+ * Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens
5668
+ * only.
5669
+ */
5670
+ configId?: string;
5671
+ /** Selector specifying which fields to include in a partial response. */
5672
+ fields?: string;
5673
+ /** 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. */
5674
+ key?: string;
5675
+ /** OAuth 2.0 token for the current user. */
5676
+ oauth_token?: string;
5677
+ /** Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]". */
5678
+ parent: string;
5679
+ /** Returns response with indentations and line breaks. */
5680
+ prettyPrint?: boolean;
5681
+ /** 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. */
5682
+ quotaUser?: string;
5683
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5684
+ upload_protocol?: string;
5685
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5686
+ uploadType?: string;
5687
+ },
5688
+ body: NotificationConfig): Request<NotificationConfig>;
5689
+ /** Deletes a notification config. */
5690
+ delete(request?: {
5691
+ /** V1 error format. */
5692
+ "$.xgafv"?: string;
5693
+ /** OAuth access token. */
5694
+ access_token?: string;
5695
+ /** Data format for response. */
5696
+ alt?: string;
5697
+ /** JSONP */
5698
+ callback?: string;
5699
+ /** Selector specifying which fields to include in a partial response. */
5700
+ fields?: string;
5701
+ /** 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. */
5702
+ key?: string;
5703
+ /** Required. Name of the notification config to delete. Its format is "organizations/[organization_id]/notificationConfigs/[config_id]". */
5704
+ name: string;
5705
+ /** OAuth 2.0 token for the current user. */
5706
+ oauth_token?: string;
5707
+ /** Returns response with indentations and line breaks. */
5708
+ prettyPrint?: boolean;
5709
+ /** 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. */
5710
+ quotaUser?: string;
5711
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5712
+ upload_protocol?: string;
5713
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5714
+ uploadType?: string;
5715
+ }): Request<{}>;
5716
+ /** Gets a notification config. */
5717
+ get(request?: {
5718
+ /** V1 error format. */
5719
+ "$.xgafv"?: string;
5720
+ /** OAuth access token. */
5721
+ access_token?: string;
5722
+ /** Data format for response. */
5723
+ alt?: string;
5724
+ /** JSONP */
5725
+ callback?: string;
5726
+ /** Selector specifying which fields to include in a partial response. */
5727
+ fields?: string;
5728
+ /** 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. */
5729
+ key?: string;
5730
+ /** Required. Name of the notification config to get. Its format is "organizations/[organization_id]/notificationConfigs/[config_id]". */
5731
+ name: string;
5732
+ /** OAuth 2.0 token for the current user. */
5733
+ oauth_token?: string;
5734
+ /** Returns response with indentations and line breaks. */
5735
+ prettyPrint?: boolean;
5736
+ /** 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. */
5737
+ quotaUser?: string;
5738
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5739
+ upload_protocol?: string;
5740
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5741
+ uploadType?: string;
5742
+ }): Request<NotificationConfig>;
5743
+ /** Lists notification configs. */
5744
+ list(request?: {
5745
+ /** V1 error format. */
5746
+ "$.xgafv"?: string;
5747
+ /** OAuth access token. */
5748
+ access_token?: string;
5749
+ /** Data format for response. */
5750
+ alt?: string;
5751
+ /** JSONP */
5752
+ callback?: string;
5753
+ /** Selector specifying which fields to include in a partial response. */
5754
+ fields?: string;
5755
+ /** 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. */
5756
+ key?: string;
5757
+ /** OAuth 2.0 token for the current user. */
5758
+ oauth_token?: string;
5759
+ /** The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000. */
5760
+ pageSize?: number;
5761
+ /**
5762
+ * The value returned by the last `ListNotificationConfigsResponse`; indicates that this is a continuation of a prior `ListNotificationConfigs` call, and that the system should
5763
+ * return the next page of data.
5764
+ */
5765
+ pageToken?: string;
5766
+ /** Required. Name of the organization to list notification configs. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]". */
5767
+ parent: string;
5768
+ /** Returns response with indentations and line breaks. */
5769
+ prettyPrint?: boolean;
5770
+ /** 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. */
5771
+ quotaUser?: string;
5772
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5773
+ upload_protocol?: string;
5774
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5775
+ uploadType?: string;
5776
+ }): Request<ListNotificationConfigsResponse>;
5777
+ /** Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter */
5778
+ patch(request: {
5779
+ /** V1 error format. */
5780
+ "$.xgafv"?: string;
5781
+ /** OAuth access token. */
5782
+ access_token?: string;
5783
+ /** Data format for response. */
5784
+ alt?: string;
5785
+ /** JSONP */
5786
+ callback?: string;
5787
+ /** Selector specifying which fields to include in a partial response. */
5788
+ fields?: string;
5789
+ /** 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. */
5790
+ key?: string;
5791
+ /**
5792
+ * The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
5793
+ * "organizations/{organization_id}/notificationConfigs/notify_public_bucket".
5794
+ */
5795
+ name: string;
5796
+ /** OAuth 2.0 token for the current user. */
5797
+ oauth_token?: string;
5798
+ /** Returns response with indentations and line breaks. */
5799
+ prettyPrint?: boolean;
5800
+ /** 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. */
5801
+ quotaUser?: string;
5802
+ /** The FieldMask to use when updating the notification config. If empty all mutable fields will be updated. */
5803
+ updateMask?: string;
5804
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5805
+ upload_protocol?: string;
5806
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5807
+ uploadType?: string;
5808
+ /** Request body */
5809
+ resource: NotificationConfig;
5810
+ }): Request<NotificationConfig>;
5811
+ patch(request: {
5812
+ /** V1 error format. */
5813
+ "$.xgafv"?: string;
5814
+ /** OAuth access token. */
5815
+ access_token?: string;
5816
+ /** Data format for response. */
5817
+ alt?: string;
5818
+ /** JSONP */
5819
+ callback?: string;
5820
+ /** Selector specifying which fields to include in a partial response. */
5821
+ fields?: string;
5822
+ /** 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. */
5823
+ key?: string;
5824
+ /**
5825
+ * The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example:
5826
+ * "organizations/{organization_id}/notificationConfigs/notify_public_bucket".
5827
+ */
5828
+ name: string;
5829
+ /** OAuth 2.0 token for the current user. */
5830
+ oauth_token?: string;
5831
+ /** Returns response with indentations and line breaks. */
5832
+ prettyPrint?: boolean;
5833
+ /** 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. */
5834
+ quotaUser?: string;
5835
+ /** The FieldMask to use when updating the notification config. If empty all mutable fields will be updated. */
5836
+ updateMask?: string;
5837
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5838
+ upload_protocol?: string;
5839
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5840
+ uploadType?: string;
5841
+ },
5842
+ body: NotificationConfig): Request<NotificationConfig>;
5843
+ }
5359
5844
  interface ExternalSystemsResource {
5360
5845
  /** Updates external system. This is for a given finding. */
5361
5846
  patch(request: {
@@ -5894,6 +6379,7 @@ declare namespace gapi.client {
5894
6379
  bigQueryExports: BigQueryExportsResource;
5895
6380
  findings: FindingsResource;
5896
6381
  muteConfigs: MuteConfigsResource;
6382
+ notificationConfigs: NotificationConfigsResource;
5897
6383
  sources: SourcesResource;
5898
6384
  }
5899
6385
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.securitycenter-v1",
3
- "version": "0.0.20220921",
3
+ "version": "0.0.20221014",
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: 20220921
6
+ // Revision: 20221014
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -158,6 +158,46 @@ gapi.load('client', async () => {
158
158
  name: "Test string",
159
159
  updateTime: "Test string",
160
160
  });
161
+ /** Creates a notification config. */
162
+ await gapi.client.securitycenter.folders.notificationConfigs.create({
163
+ configId: "Test string",
164
+ parent: "Test string",
165
+ }, {
166
+ description: "Test string",
167
+ name: "Test string",
168
+ pubsubTopic: "Test string",
169
+ serviceAccount: "Test string",
170
+ streamingConfig: {
171
+ filter: "Test string",
172
+ },
173
+ });
174
+ /** Deletes a notification config. */
175
+ await gapi.client.securitycenter.folders.notificationConfigs.delete({
176
+ name: "Test string",
177
+ });
178
+ /** Gets a notification config. */
179
+ await gapi.client.securitycenter.folders.notificationConfigs.get({
180
+ name: "Test string",
181
+ });
182
+ /** Lists notification configs. */
183
+ await gapi.client.securitycenter.folders.notificationConfigs.list({
184
+ pageSize: 42,
185
+ pageToken: "Test string",
186
+ parent: "Test string",
187
+ });
188
+ /** Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter */
189
+ await gapi.client.securitycenter.folders.notificationConfigs.patch({
190
+ name: "Test string",
191
+ updateMask: "Test string",
192
+ }, {
193
+ description: "Test string",
194
+ name: "Test string",
195
+ pubsubTopic: "Test string",
196
+ serviceAccount: "Test string",
197
+ streamingConfig: {
198
+ filter: "Test string",
199
+ },
200
+ });
161
201
  /** Lists all sources belonging to an organization. */
162
202
  await gapi.client.securitycenter.folders.sources.list({
163
203
  pageSize: 42,
@@ -211,7 +251,7 @@ gapi.load('client', async () => {
211
251
  serviceAccountKeyName: "Test string",
212
252
  serviceName: "Test string",
213
253
  userAgentFamily: "Test string",
214
- username: "Test string",
254
+ userName: "Test string",
215
255
  },
216
256
  canonicalName: "Test string",
217
257
  category: "Test string",
@@ -883,7 +923,7 @@ gapi.load('client', async () => {
883
923
  serviceAccountKeyName: "Test string",
884
924
  serviceName: "Test string",
885
925
  userAgentFamily: "Test string",
886
- username: "Test string",
926
+ userName: "Test string",
887
927
  },
888
928
  canonicalName: "Test string",
889
929
  category: "Test string",
@@ -1230,7 +1270,7 @@ gapi.load('client', async () => {
1230
1270
  serviceAccountKeyName: "Test string",
1231
1271
  serviceName: "Test string",
1232
1272
  userAgentFamily: "Test string",
1233
- username: "Test string",
1273
+ userName: "Test string",
1234
1274
  },
1235
1275
  canonicalName: "Test string",
1236
1276
  category: "Test string",
@@ -1697,6 +1737,46 @@ gapi.load('client', async () => {
1697
1737
  name: "Test string",
1698
1738
  updateTime: "Test string",
1699
1739
  });
1740
+ /** Creates a notification config. */
1741
+ await gapi.client.securitycenter.projects.notificationConfigs.create({
1742
+ configId: "Test string",
1743
+ parent: "Test string",
1744
+ }, {
1745
+ description: "Test string",
1746
+ name: "Test string",
1747
+ pubsubTopic: "Test string",
1748
+ serviceAccount: "Test string",
1749
+ streamingConfig: {
1750
+ filter: "Test string",
1751
+ },
1752
+ });
1753
+ /** Deletes a notification config. */
1754
+ await gapi.client.securitycenter.projects.notificationConfigs.delete({
1755
+ name: "Test string",
1756
+ });
1757
+ /** Gets a notification config. */
1758
+ await gapi.client.securitycenter.projects.notificationConfigs.get({
1759
+ name: "Test string",
1760
+ });
1761
+ /** Lists notification configs. */
1762
+ await gapi.client.securitycenter.projects.notificationConfigs.list({
1763
+ pageSize: 42,
1764
+ pageToken: "Test string",
1765
+ parent: "Test string",
1766
+ });
1767
+ /** Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter */
1768
+ await gapi.client.securitycenter.projects.notificationConfigs.patch({
1769
+ name: "Test string",
1770
+ updateMask: "Test string",
1771
+ }, {
1772
+ description: "Test string",
1773
+ name: "Test string",
1774
+ pubsubTopic: "Test string",
1775
+ serviceAccount: "Test string",
1776
+ streamingConfig: {
1777
+ filter: "Test string",
1778
+ },
1779
+ });
1700
1780
  /** Lists all sources belonging to an organization. */
1701
1781
  await gapi.client.securitycenter.projects.sources.list({
1702
1782
  pageSize: 42,
@@ -1750,7 +1830,7 @@ gapi.load('client', async () => {
1750
1830
  serviceAccountKeyName: "Test string",
1751
1831
  serviceName: "Test string",
1752
1832
  userAgentFamily: "Test string",
1753
- username: "Test string",
1833
+ userName: "Test string",
1754
1834
  },
1755
1835
  canonicalName: "Test string",
1756
1836
  category: "Test string",