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

Commit

Permalink
feat: Added resource type and display_name field to the FindingResult…
Browse files Browse the repository at this point in the history
…, 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: googleapis/googleapis-gen@058c449
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDU4YzQ0OTg5ZGRiYTk1M2FhMWNjNjc0ODY2MjQyYTg2NzdmZTMzYSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Nov 17, 2021
1 parent fde166e commit bf8f477
Show file tree
Hide file tree
Showing 47 changed files with 749 additions and 17,867 deletions.

Large diffs are not rendered by default.

Expand Up @@ -20,7 +20,6 @@
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupFindingsPagedResponse;
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListAssetsPagedResponse;
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListFindingsPagedResponse;
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListMuteConfigsPagedResponse;
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListNotificationConfigsPagedResponse;
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse;

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

/** Returns the object with the settings used for calls to bulkMuteFindings. */
public UnaryCallSettings<BulkMuteFindingsRequest, Operation> bulkMuteFindingsSettings() {
return ((SecurityCenterStubSettings) getStubSettings()).bulkMuteFindingsSettings();
}

/** Returns the object with the settings used for calls to bulkMuteFindings. */
public OperationCallSettings<BulkMuteFindingsRequest, BulkMuteFindingsResponse, Empty>
bulkMuteFindingsOperationSettings() {
return ((SecurityCenterStubSettings) getStubSettings()).bulkMuteFindingsOperationSettings();
}

/** Returns the object with the settings used for calls to createSource. */
public UnaryCallSettings<CreateSourceRequest, Source> createSourceSettings() {
return ((SecurityCenterStubSettings) getStubSettings()).createSourceSettings();
Expand All @@ -105,22 +93,12 @@ public UnaryCallSettings<CreateFindingRequest, Finding> createFindingSettings()
return ((SecurityCenterStubSettings) getStubSettings()).createFindingSettings();
}

/** Returns the object with the settings used for calls to createMuteConfig. */
public UnaryCallSettings<CreateMuteConfigRequest, MuteConfig> createMuteConfigSettings() {
return ((SecurityCenterStubSettings) getStubSettings()).createMuteConfigSettings();
}

/** Returns the object with the settings used for calls to createNotificationConfig. */
public UnaryCallSettings<CreateNotificationConfigRequest, NotificationConfig>
createNotificationConfigSettings() {
return ((SecurityCenterStubSettings) getStubSettings()).createNotificationConfigSettings();
}

/** Returns the object with the settings used for calls to deleteMuteConfig. */
public UnaryCallSettings<DeleteMuteConfigRequest, Empty> deleteMuteConfigSettings() {
return ((SecurityCenterStubSettings) getStubSettings()).deleteMuteConfigSettings();
}

/** Returns the object with the settings used for calls to deleteNotificationConfig. */
public UnaryCallSettings<DeleteNotificationConfigRequest, Empty>
deleteNotificationConfigSettings() {
Expand All @@ -132,11 +110,6 @@ public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
return ((SecurityCenterStubSettings) getStubSettings()).getIamPolicySettings();
}

/** Returns the object with the settings used for calls to getMuteConfig. */
public UnaryCallSettings<GetMuteConfigRequest, MuteConfig> getMuteConfigSettings() {
return ((SecurityCenterStubSettings) getStubSettings()).getMuteConfigSettings();
}

/** Returns the object with the settings used for calls to getNotificationConfig. */
public UnaryCallSettings<GetNotificationConfigRequest, NotificationConfig>
getNotificationConfigSettings() {
Expand Down Expand Up @@ -178,13 +151,6 @@ public UnaryCallSettings<GetSourceRequest, Source> getSourceSettings() {
return ((SecurityCenterStubSettings) getStubSettings()).listFindingsSettings();
}

/** Returns the object with the settings used for calls to listMuteConfigs. */
public PagedCallSettings<
ListMuteConfigsRequest, ListMuteConfigsResponse, ListMuteConfigsPagedResponse>
listMuteConfigsSettings() {
return ((SecurityCenterStubSettings) getStubSettings()).listMuteConfigsSettings();
}

/** Returns the object with the settings used for calls to listNotificationConfigs. */
public PagedCallSettings<
ListNotificationConfigsRequest,
Expand Down Expand Up @@ -216,11 +182,6 @@ public UnaryCallSettings<SetFindingStateRequest, Finding> setFindingStateSetting
return ((SecurityCenterStubSettings) getStubSettings()).setFindingStateSettings();
}

/** Returns the object with the settings used for calls to setMute. */
public UnaryCallSettings<SetMuteRequest, Finding> setMuteSettings() {
return ((SecurityCenterStubSettings) getStubSettings()).setMuteSettings();
}

/** Returns the object with the settings used for calls to setIamPolicy. */
public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() {
return ((SecurityCenterStubSettings) getStubSettings()).setIamPolicySettings();
Expand All @@ -237,11 +198,6 @@ public UnaryCallSettings<UpdateFindingRequest, Finding> updateFindingSettings()
return ((SecurityCenterStubSettings) getStubSettings()).updateFindingSettings();
}

/** Returns the object with the settings used for calls to updateMuteConfig. */
public UnaryCallSettings<UpdateMuteConfigRequest, MuteConfig> updateMuteConfigSettings() {
return ((SecurityCenterStubSettings) getStubSettings()).updateMuteConfigSettings();
}

/** Returns the object with the settings used for calls to updateNotificationConfig. */
public UnaryCallSettings<UpdateNotificationConfigRequest, NotificationConfig>
updateNotificationConfigSettings() {
Expand Down Expand Up @@ -362,18 +318,6 @@ public Builder applyToAllUnaryMethods(
return this;
}

/** Returns the builder for the settings used for calls to bulkMuteFindings. */
public UnaryCallSettings.Builder<BulkMuteFindingsRequest, Operation>
bulkMuteFindingsSettings() {
return getStubSettingsBuilder().bulkMuteFindingsSettings();
}

/** Returns the builder for the settings used for calls to bulkMuteFindings. */
public OperationCallSettings.Builder<BulkMuteFindingsRequest, BulkMuteFindingsResponse, Empty>
bulkMuteFindingsOperationSettings() {
return getStubSettingsBuilder().bulkMuteFindingsOperationSettings();
}

/** Returns the builder for the settings used for calls to createSource. */
public UnaryCallSettings.Builder<CreateSourceRequest, Source> createSourceSettings() {
return getStubSettingsBuilder().createSourceSettings();
Expand All @@ -384,23 +328,12 @@ public UnaryCallSettings.Builder<CreateFindingRequest, Finding> createFindingSet
return getStubSettingsBuilder().createFindingSettings();
}

/** Returns the builder for the settings used for calls to createMuteConfig. */
public UnaryCallSettings.Builder<CreateMuteConfigRequest, MuteConfig>
createMuteConfigSettings() {
return getStubSettingsBuilder().createMuteConfigSettings();
}

/** Returns the builder for the settings used for calls to createNotificationConfig. */
public UnaryCallSettings.Builder<CreateNotificationConfigRequest, NotificationConfig>
createNotificationConfigSettings() {
return getStubSettingsBuilder().createNotificationConfigSettings();
}

/** Returns the builder for the settings used for calls to deleteMuteConfig. */
public UnaryCallSettings.Builder<DeleteMuteConfigRequest, Empty> deleteMuteConfigSettings() {
return getStubSettingsBuilder().deleteMuteConfigSettings();
}

/** Returns the builder for the settings used for calls to deleteNotificationConfig. */
public UnaryCallSettings.Builder<DeleteNotificationConfigRequest, Empty>
deleteNotificationConfigSettings() {
Expand All @@ -412,11 +345,6 @@ public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettin
return getStubSettingsBuilder().getIamPolicySettings();
}

/** Returns the builder for the settings used for calls to getMuteConfig. */
public UnaryCallSettings.Builder<GetMuteConfigRequest, MuteConfig> getMuteConfigSettings() {
return getStubSettingsBuilder().getMuteConfigSettings();
}

/** Returns the builder for the settings used for calls to getNotificationConfig. */
public UnaryCallSettings.Builder<GetNotificationConfigRequest, NotificationConfig>
getNotificationConfigSettings() {
Expand Down Expand Up @@ -461,13 +389,6 @@ public UnaryCallSettings.Builder<GetSourceRequest, Source> getSourceSettings() {
return getStubSettingsBuilder().listFindingsSettings();
}

/** Returns the builder for the settings used for calls to listMuteConfigs. */
public PagedCallSettings.Builder<
ListMuteConfigsRequest, ListMuteConfigsResponse, ListMuteConfigsPagedResponse>
listMuteConfigsSettings() {
return getStubSettingsBuilder().listMuteConfigsSettings();
}

/** Returns the builder for the settings used for calls to listNotificationConfigs. */
public PagedCallSettings.Builder<
ListNotificationConfigsRequest,
Expand Down Expand Up @@ -501,11 +422,6 @@ public UnaryCallSettings.Builder<SetFindingStateRequest, Finding> setFindingStat
return getStubSettingsBuilder().setFindingStateSettings();
}

/** Returns the builder for the settings used for calls to setMute. */
public UnaryCallSettings.Builder<SetMuteRequest, Finding> setMuteSettings() {
return getStubSettingsBuilder().setMuteSettings();
}

/** Returns the builder for the settings used for calls to setIamPolicy. */
public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettings() {
return getStubSettingsBuilder().setIamPolicySettings();
Expand All @@ -522,12 +438,6 @@ public UnaryCallSettings.Builder<UpdateFindingRequest, Finding> updateFindingSet
return getStubSettingsBuilder().updateFindingSettings();
}

/** Returns the builder for the settings used for calls to updateMuteConfig. */
public UnaryCallSettings.Builder<UpdateMuteConfigRequest, MuteConfig>
updateMuteConfigSettings() {
return getStubSettingsBuilder().updateMuteConfigSettings();
}

/** Returns the builder for the settings used for calls to updateNotificationConfig. */
public UnaryCallSettings.Builder<UpdateNotificationConfigRequest, NotificationConfig>
updateNotificationConfigSettings() {
Expand Down
Expand Up @@ -10,33 +10,21 @@
"grpc": {
"libraryClient": "SecurityCenterClient",
"rpcs": {
"BulkMuteFindings": {
"methods": ["bulkMuteFindingsAsync", "bulkMuteFindingsAsync", "bulkMuteFindingsAsync", "bulkMuteFindingsOperationCallable", "bulkMuteFindingsCallable"]
},
"CreateFinding": {
"methods": ["createFinding", "createFinding", "createFinding", "createFindingCallable"]
},
"CreateMuteConfig": {
"methods": ["createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfigCallable"]
},
"CreateNotificationConfig": {
"methods": ["createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfigCallable"]
},
"CreateSource": {
"methods": ["createSource", "createSource", "createSource", "createSourceCallable"]
},
"DeleteMuteConfig": {
"methods": ["deleteMuteConfig", "deleteMuteConfig", "deleteMuteConfig", "deleteMuteConfigCallable"]
},
"DeleteNotificationConfig": {
"methods": ["deleteNotificationConfig", "deleteNotificationConfig", "deleteNotificationConfig", "deleteNotificationConfigCallable"]
},
"GetIamPolicy": {
"methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"]
},
"GetMuteConfig": {
"methods": ["getMuteConfig", "getMuteConfig", "getMuteConfig", "getMuteConfigCallable"]
},
"GetNotificationConfig": {
"methods": ["getNotificationConfig", "getNotificationConfig", "getNotificationConfig", "getNotificationConfigCallable"]
},
Expand All @@ -58,9 +46,6 @@
"ListFindings": {
"methods": ["listFindings", "listFindingsPagedCallable", "listFindingsCallable"]
},
"ListMuteConfigs": {
"methods": ["listMuteConfigs", "listMuteConfigs", "listMuteConfigs", "listMuteConfigs", "listMuteConfigs", "listMuteConfigsPagedCallable", "listMuteConfigsCallable"]
},
"ListNotificationConfigs": {
"methods": ["listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigsPagedCallable", "listNotificationConfigsCallable"]
},
Expand All @@ -76,18 +61,12 @@
"SetIamPolicy": {
"methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"]
},
"SetMute": {
"methods": ["setMute", "setMute", "setMute", "setMuteCallable"]
},
"TestIamPermissions": {
"methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"]
},
"UpdateFinding": {
"methods": ["updateFinding", "updateFinding", "updateFindingCallable"]
},
"UpdateMuteConfig": {
"methods": ["updateMuteConfig", "updateMuteConfig", "updateMuteConfigCallable"]
},
"UpdateNotificationConfig": {
"methods": ["updateNotificationConfig", "updateNotificationConfig", "updateNotificationConfig", "updateNotificationConfigCallable"]
},
Expand Down
Expand Up @@ -15,9 +15,7 @@
*/

/**
* A client to Security Command Center API
*
* <p>The interfaces provided are listed below, along with usage samples.
* The interfaces provided are listed below, along with usage samples.
*
* <p>======================= SecurityCenterClient =======================
*
Expand Down

0 comments on commit bf8f477

Please sign in to comment.