Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit bf8f477

Browse files
feat: Added resource type and display_name field to the FindingResult, and supported them in the filter for ListFindings and GroupFindings. Also added display_name to the resource which is surfaced in NotificationMessage (#693)
- [x] Regenerate this pull request now. PiperOrigin-RevId: 408362247 Source-Link: googleapis/googleapis@4d71c45 Source-Link: https://github.com/googleapis/googleapis-gen/commit/058c44989ddba953aa1cc674866242a8677fe33a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDU4YzQ0OTg5ZGRiYTk1M2FhMWNjNjc0ODY2MjQyYTg2NzdmZTMzYSJ9
1 parent fde166e commit bf8f477

File tree

47 files changed

+749
-17867
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+749
-17867
lines changed

google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java

Lines changed: 83 additions & 1169 deletions
Large diffs are not rendered by default.

google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java

Lines changed: 0 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupFindingsPagedResponse;
2121
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListAssetsPagedResponse;
2222
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListFindingsPagedResponse;
23-
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListMuteConfigsPagedResponse;
2423
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListNotificationConfigsPagedResponse;
2524
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse;
2625

@@ -84,17 +83,6 @@
8483
@Generated("by gapic-generator-java")
8584
public class SecurityCenterSettings extends ClientSettings<SecurityCenterSettings> {
8685

87-
/** Returns the object with the settings used for calls to bulkMuteFindings. */
88-
public UnaryCallSettings<BulkMuteFindingsRequest, Operation> bulkMuteFindingsSettings() {
89-
return ((SecurityCenterStubSettings) getStubSettings()).bulkMuteFindingsSettings();
90-
}
91-
92-
/** Returns the object with the settings used for calls to bulkMuteFindings. */
93-
public OperationCallSettings<BulkMuteFindingsRequest, BulkMuteFindingsResponse, Empty>
94-
bulkMuteFindingsOperationSettings() {
95-
return ((SecurityCenterStubSettings) getStubSettings()).bulkMuteFindingsOperationSettings();
96-
}
97-
9886
/** Returns the object with the settings used for calls to createSource. */
9987
public UnaryCallSettings<CreateSourceRequest, Source> createSourceSettings() {
10088
return ((SecurityCenterStubSettings) getStubSettings()).createSourceSettings();
@@ -105,22 +93,12 @@ public UnaryCallSettings<CreateFindingRequest, Finding> createFindingSettings()
10593
return ((SecurityCenterStubSettings) getStubSettings()).createFindingSettings();
10694
}
10795

108-
/** Returns the object with the settings used for calls to createMuteConfig. */
109-
public UnaryCallSettings<CreateMuteConfigRequest, MuteConfig> createMuteConfigSettings() {
110-
return ((SecurityCenterStubSettings) getStubSettings()).createMuteConfigSettings();
111-
}
112-
11396
/** Returns the object with the settings used for calls to createNotificationConfig. */
11497
public UnaryCallSettings<CreateNotificationConfigRequest, NotificationConfig>
11598
createNotificationConfigSettings() {
11699
return ((SecurityCenterStubSettings) getStubSettings()).createNotificationConfigSettings();
117100
}
118101

119-
/** Returns the object with the settings used for calls to deleteMuteConfig. */
120-
public UnaryCallSettings<DeleteMuteConfigRequest, Empty> deleteMuteConfigSettings() {
121-
return ((SecurityCenterStubSettings) getStubSettings()).deleteMuteConfigSettings();
122-
}
123-
124102
/** Returns the object with the settings used for calls to deleteNotificationConfig. */
125103
public UnaryCallSettings<DeleteNotificationConfigRequest, Empty>
126104
deleteNotificationConfigSettings() {
@@ -132,11 +110,6 @@ public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
132110
return ((SecurityCenterStubSettings) getStubSettings()).getIamPolicySettings();
133111
}
134112

135-
/** Returns the object with the settings used for calls to getMuteConfig. */
136-
public UnaryCallSettings<GetMuteConfigRequest, MuteConfig> getMuteConfigSettings() {
137-
return ((SecurityCenterStubSettings) getStubSettings()).getMuteConfigSettings();
138-
}
139-
140113
/** Returns the object with the settings used for calls to getNotificationConfig. */
141114
public UnaryCallSettings<GetNotificationConfigRequest, NotificationConfig>
142115
getNotificationConfigSettings() {
@@ -178,13 +151,6 @@ public UnaryCallSettings<GetSourceRequest, Source> getSourceSettings() {
178151
return ((SecurityCenterStubSettings) getStubSettings()).listFindingsSettings();
179152
}
180153

181-
/** Returns the object with the settings used for calls to listMuteConfigs. */
182-
public PagedCallSettings<
183-
ListMuteConfigsRequest, ListMuteConfigsResponse, ListMuteConfigsPagedResponse>
184-
listMuteConfigsSettings() {
185-
return ((SecurityCenterStubSettings) getStubSettings()).listMuteConfigsSettings();
186-
}
187-
188154
/** Returns the object with the settings used for calls to listNotificationConfigs. */
189155
public PagedCallSettings<
190156
ListNotificationConfigsRequest,
@@ -216,11 +182,6 @@ public UnaryCallSettings<SetFindingStateRequest, Finding> setFindingStateSetting
216182
return ((SecurityCenterStubSettings) getStubSettings()).setFindingStateSettings();
217183
}
218184

219-
/** Returns the object with the settings used for calls to setMute. */
220-
public UnaryCallSettings<SetMuteRequest, Finding> setMuteSettings() {
221-
return ((SecurityCenterStubSettings) getStubSettings()).setMuteSettings();
222-
}
223-
224185
/** Returns the object with the settings used for calls to setIamPolicy. */
225186
public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() {
226187
return ((SecurityCenterStubSettings) getStubSettings()).setIamPolicySettings();
@@ -237,11 +198,6 @@ public UnaryCallSettings<UpdateFindingRequest, Finding> updateFindingSettings()
237198
return ((SecurityCenterStubSettings) getStubSettings()).updateFindingSettings();
238199
}
239200

240-
/** Returns the object with the settings used for calls to updateMuteConfig. */
241-
public UnaryCallSettings<UpdateMuteConfigRequest, MuteConfig> updateMuteConfigSettings() {
242-
return ((SecurityCenterStubSettings) getStubSettings()).updateMuteConfigSettings();
243-
}
244-
245201
/** Returns the object with the settings used for calls to updateNotificationConfig. */
246202
public UnaryCallSettings<UpdateNotificationConfigRequest, NotificationConfig>
247203
updateNotificationConfigSettings() {
@@ -362,18 +318,6 @@ public Builder applyToAllUnaryMethods(
362318
return this;
363319
}
364320

365-
/** Returns the builder for the settings used for calls to bulkMuteFindings. */
366-
public UnaryCallSettings.Builder<BulkMuteFindingsRequest, Operation>
367-
bulkMuteFindingsSettings() {
368-
return getStubSettingsBuilder().bulkMuteFindingsSettings();
369-
}
370-
371-
/** Returns the builder for the settings used for calls to bulkMuteFindings. */
372-
public OperationCallSettings.Builder<BulkMuteFindingsRequest, BulkMuteFindingsResponse, Empty>
373-
bulkMuteFindingsOperationSettings() {
374-
return getStubSettingsBuilder().bulkMuteFindingsOperationSettings();
375-
}
376-
377321
/** Returns the builder for the settings used for calls to createSource. */
378322
public UnaryCallSettings.Builder<CreateSourceRequest, Source> createSourceSettings() {
379323
return getStubSettingsBuilder().createSourceSettings();
@@ -384,23 +328,12 @@ public UnaryCallSettings.Builder<CreateFindingRequest, Finding> createFindingSet
384328
return getStubSettingsBuilder().createFindingSettings();
385329
}
386330

387-
/** Returns the builder for the settings used for calls to createMuteConfig. */
388-
public UnaryCallSettings.Builder<CreateMuteConfigRequest, MuteConfig>
389-
createMuteConfigSettings() {
390-
return getStubSettingsBuilder().createMuteConfigSettings();
391-
}
392-
393331
/** Returns the builder for the settings used for calls to createNotificationConfig. */
394332
public UnaryCallSettings.Builder<CreateNotificationConfigRequest, NotificationConfig>
395333
createNotificationConfigSettings() {
396334
return getStubSettingsBuilder().createNotificationConfigSettings();
397335
}
398336

399-
/** Returns the builder for the settings used for calls to deleteMuteConfig. */
400-
public UnaryCallSettings.Builder<DeleteMuteConfigRequest, Empty> deleteMuteConfigSettings() {
401-
return getStubSettingsBuilder().deleteMuteConfigSettings();
402-
}
403-
404337
/** Returns the builder for the settings used for calls to deleteNotificationConfig. */
405338
public UnaryCallSettings.Builder<DeleteNotificationConfigRequest, Empty>
406339
deleteNotificationConfigSettings() {
@@ -412,11 +345,6 @@ public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettin
412345
return getStubSettingsBuilder().getIamPolicySettings();
413346
}
414347

415-
/** Returns the builder for the settings used for calls to getMuteConfig. */
416-
public UnaryCallSettings.Builder<GetMuteConfigRequest, MuteConfig> getMuteConfigSettings() {
417-
return getStubSettingsBuilder().getMuteConfigSettings();
418-
}
419-
420348
/** Returns the builder for the settings used for calls to getNotificationConfig. */
421349
public UnaryCallSettings.Builder<GetNotificationConfigRequest, NotificationConfig>
422350
getNotificationConfigSettings() {
@@ -461,13 +389,6 @@ public UnaryCallSettings.Builder<GetSourceRequest, Source> getSourceSettings() {
461389
return getStubSettingsBuilder().listFindingsSettings();
462390
}
463391

464-
/** Returns the builder for the settings used for calls to listMuteConfigs. */
465-
public PagedCallSettings.Builder<
466-
ListMuteConfigsRequest, ListMuteConfigsResponse, ListMuteConfigsPagedResponse>
467-
listMuteConfigsSettings() {
468-
return getStubSettingsBuilder().listMuteConfigsSettings();
469-
}
470-
471392
/** Returns the builder for the settings used for calls to listNotificationConfigs. */
472393
public PagedCallSettings.Builder<
473394
ListNotificationConfigsRequest,
@@ -501,11 +422,6 @@ public UnaryCallSettings.Builder<SetFindingStateRequest, Finding> setFindingStat
501422
return getStubSettingsBuilder().setFindingStateSettings();
502423
}
503424

504-
/** Returns the builder for the settings used for calls to setMute. */
505-
public UnaryCallSettings.Builder<SetMuteRequest, Finding> setMuteSettings() {
506-
return getStubSettingsBuilder().setMuteSettings();
507-
}
508-
509425
/** Returns the builder for the settings used for calls to setIamPolicy. */
510426
public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettings() {
511427
return getStubSettingsBuilder().setIamPolicySettings();
@@ -522,12 +438,6 @@ public UnaryCallSettings.Builder<UpdateFindingRequest, Finding> updateFindingSet
522438
return getStubSettingsBuilder().updateFindingSettings();
523439
}
524440

525-
/** Returns the builder for the settings used for calls to updateMuteConfig. */
526-
public UnaryCallSettings.Builder<UpdateMuteConfigRequest, MuteConfig>
527-
updateMuteConfigSettings() {
528-
return getStubSettingsBuilder().updateMuteConfigSettings();
529-
}
530-
531441
/** Returns the builder for the settings used for calls to updateNotificationConfig. */
532442
public UnaryCallSettings.Builder<UpdateNotificationConfigRequest, NotificationConfig>
533443
updateNotificationConfigSettings() {

google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/gapic_metadata.json

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,21 @@
1010
"grpc": {
1111
"libraryClient": "SecurityCenterClient",
1212
"rpcs": {
13-
"BulkMuteFindings": {
14-
"methods": ["bulkMuteFindingsAsync", "bulkMuteFindingsAsync", "bulkMuteFindingsAsync", "bulkMuteFindingsOperationCallable", "bulkMuteFindingsCallable"]
15-
},
1613
"CreateFinding": {
1714
"methods": ["createFinding", "createFinding", "createFinding", "createFindingCallable"]
1815
},
19-
"CreateMuteConfig": {
20-
"methods": ["createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfigCallable"]
21-
},
2216
"CreateNotificationConfig": {
2317
"methods": ["createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfigCallable"]
2418
},
2519
"CreateSource": {
2620
"methods": ["createSource", "createSource", "createSource", "createSourceCallable"]
2721
},
28-
"DeleteMuteConfig": {
29-
"methods": ["deleteMuteConfig", "deleteMuteConfig", "deleteMuteConfig", "deleteMuteConfigCallable"]
30-
},
3122
"DeleteNotificationConfig": {
3223
"methods": ["deleteNotificationConfig", "deleteNotificationConfig", "deleteNotificationConfig", "deleteNotificationConfigCallable"]
3324
},
3425
"GetIamPolicy": {
3526
"methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"]
3627
},
37-
"GetMuteConfig": {
38-
"methods": ["getMuteConfig", "getMuteConfig", "getMuteConfig", "getMuteConfigCallable"]
39-
},
4028
"GetNotificationConfig": {
4129
"methods": ["getNotificationConfig", "getNotificationConfig", "getNotificationConfig", "getNotificationConfigCallable"]
4230
},
@@ -58,9 +46,6 @@
5846
"ListFindings": {
5947
"methods": ["listFindings", "listFindingsPagedCallable", "listFindingsCallable"]
6048
},
61-
"ListMuteConfigs": {
62-
"methods": ["listMuteConfigs", "listMuteConfigs", "listMuteConfigs", "listMuteConfigs", "listMuteConfigs", "listMuteConfigsPagedCallable", "listMuteConfigsCallable"]
63-
},
6449
"ListNotificationConfigs": {
6550
"methods": ["listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigsPagedCallable", "listNotificationConfigsCallable"]
6651
},
@@ -76,18 +61,12 @@
7661
"SetIamPolicy": {
7762
"methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"]
7863
},
79-
"SetMute": {
80-
"methods": ["setMute", "setMute", "setMute", "setMuteCallable"]
81-
},
8264
"TestIamPermissions": {
8365
"methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"]
8466
},
8567
"UpdateFinding": {
8668
"methods": ["updateFinding", "updateFinding", "updateFindingCallable"]
8769
},
88-
"UpdateMuteConfig": {
89-
"methods": ["updateMuteConfig", "updateMuteConfig", "updateMuteConfigCallable"]
90-
},
9170
"UpdateNotificationConfig": {
9271
"methods": ["updateNotificationConfig", "updateNotificationConfig", "updateNotificationConfig", "updateNotificationConfigCallable"]
9372
},

google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
*/
1616

1717
/**
18-
* A client to Security Command Center API
19-
*
20-
* <p>The interfaces provided are listed below, along with usage samples.
18+
* The interfaces provided are listed below, along with usage samples.
2119
*
2220
* <p>======================= SecurityCenterClient =======================
2321
*

0 commit comments

Comments
 (0)