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

Commit

Permalink
feat(v1): add Notifications API (#78)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/c9a665e4-6b7f-4979-8451-5c74b5ec2143/targets
  • Loading branch information
yoshi-automation committed Mar 10, 2020
1 parent cc5c709 commit 7909b8e
Show file tree
Hide file tree
Showing 65 changed files with 14,335 additions and 815 deletions.

Large diffs are not rendered by default.

Expand Up @@ -19,6 +19,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.ListNotificationConfigsPagedResponse;
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse;

import com.google.api.core.ApiFunction;
Expand Down Expand Up @@ -113,6 +114,24 @@ public UnaryCallSettings<CreateFindingRequest, Finding> createFindingSettings()
return ((SecurityCenterStubSettings) getStubSettings()).createFindingSettings();
}

/** 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 deleteNotificationConfig. */
public UnaryCallSettings<DeleteNotificationConfigRequest, Empty>
deleteNotificationConfigSettings() {
return ((SecurityCenterStubSettings) getStubSettings()).deleteNotificationConfigSettings();
}

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

/** Returns the object with the settings used for calls to getOrganizationSettings. */
public UnaryCallSettings<GetOrganizationSettingsRequest, OrganizationSettings>
getOrganizationSettingsSettings() {
Expand All @@ -136,6 +155,15 @@ public UnaryCallSettings<GetSourceRequest, Source> getSourceSettings() {
return ((SecurityCenterStubSettings) getStubSettings()).listFindingsSettings();
}

/** Returns the object with the settings used for calls to listNotificationConfigs. */
public PagedCallSettings<
ListNotificationConfigsRequest,
ListNotificationConfigsResponse,
ListNotificationConfigsPagedResponse>
listNotificationConfigsSettings() {
return ((SecurityCenterStubSettings) getStubSettings()).listNotificationConfigsSettings();
}

/** Returns the object with the settings used for calls to listSources. */
public PagedCallSettings<ListSourcesRequest, ListSourcesResponse, ListSourcesPagedResponse>
listSourcesSettings() {
Expand Down Expand Up @@ -170,6 +198,12 @@ public UnaryCallSettings<UpdateFindingRequest, Finding> updateFindingSettings()
return ((SecurityCenterStubSettings) getStubSettings()).updateFindingSettings();
}

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

/** Returns the object with the settings used for calls to updateOrganizationSettings. */
public UnaryCallSettings<UpdateOrganizationSettingsRequest, OrganizationSettings>
updateOrganizationSettingsSettings() {
Expand Down Expand Up @@ -319,6 +353,24 @@ public UnaryCallSettings.Builder<CreateFindingRequest, Finding> createFindingSet
return getStubSettingsBuilder().createFindingSettings();
}

/** 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 deleteNotificationConfig. */
public UnaryCallSettings.Builder<DeleteNotificationConfigRequest, Empty>
deleteNotificationConfigSettings() {
return getStubSettingsBuilder().deleteNotificationConfigSettings();
}

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

/** Returns the builder for the settings used for calls to getOrganizationSettings. */
public UnaryCallSettings.Builder<GetOrganizationSettingsRequest, OrganizationSettings>
getOrganizationSettingsSettings() {
Expand All @@ -343,6 +395,15 @@ public UnaryCallSettings.Builder<GetSourceRequest, Source> getSourceSettings() {
return getStubSettingsBuilder().listFindingsSettings();
}

/** Returns the builder for the settings used for calls to listNotificationConfigs. */
public PagedCallSettings.Builder<
ListNotificationConfigsRequest,
ListNotificationConfigsResponse,
ListNotificationConfigsPagedResponse>
listNotificationConfigsSettings() {
return getStubSettingsBuilder().listNotificationConfigsSettings();
}

/** Returns the builder for the settings used for calls to listSources. */
public PagedCallSettings.Builder<
ListSourcesRequest, ListSourcesResponse, ListSourcesPagedResponse>
Expand Down Expand Up @@ -379,6 +440,12 @@ public UnaryCallSettings.Builder<UpdateFindingRequest, Finding> updateFindingSet
return getStubSettingsBuilder().updateFindingSettings();
}

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

/** Returns the builder for the settings used for calls to updateOrganizationSettings. */
public UnaryCallSettings.Builder<UpdateOrganizationSettingsRequest, OrganizationSettings>
updateOrganizationSettingsSettings() {
Expand Down

0 comments on commit 7909b8e

Please sign in to comment.