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

Commit

Permalink
feat: Added mute related APIs, proto messages and fields (#702)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 409484892

Source-Link: googleapis/googleapis@2de80fe

Source-Link: googleapis/googleapis-gen@48307f8
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDgzMDdmODBhNDI4ZjRiZDMzOThkM2FiNmE1MjE2OGM5YzBjZDQwNiJ9
  • Loading branch information
gcf-owl-bot[bot] committed Nov 15, 2021
1 parent 3f862c6 commit 5b88a33
Show file tree
Hide file tree
Showing 39 changed files with 17,854 additions and 733 deletions.

Large diffs are not rendered by default.

Expand Up @@ -20,6 +20,7 @@
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 @@ -83,6 +84,17 @@
@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 @@ -93,12 +105,22 @@ 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 @@ -110,6 +132,11 @@ 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 @@ -151,6 +178,13 @@ 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 @@ -182,6 +216,11 @@ 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 @@ -198,6 +237,11 @@ 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 @@ -318,6 +362,18 @@ 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 @@ -328,12 +384,23 @@ 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 @@ -345,6 +412,11 @@ 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 @@ -389,6 +461,13 @@ 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 @@ -422,6 +501,11 @@ 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 @@ -438,6 +522,12 @@ 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,21 +10,33 @@
"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 @@ -46,6 +58,9 @@
"ListFindings": {
"methods": ["listFindings", "listFindingsPagedCallable", "listFindingsCallable"]
},
"ListMuteConfigs": {
"methods": ["listMuteConfigs", "listMuteConfigs", "listMuteConfigs", "listMuteConfigs", "listMuteConfigs", "listMuteConfigsPagedCallable", "listMuteConfigsCallable"]
},
"ListNotificationConfigs": {
"methods": ["listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigsPagedCallable", "listNotificationConfigsCallable"]
},
Expand All @@ -61,12 +76,18 @@
"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,7 +15,9 @@
*/

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

0 comments on commit 5b88a33

Please sign in to comment.