Skip to content

Commit 287315c

Browse files
feat: [securitycenter] released securitycenter/v1 SHA custom modules cloud libraries: Create, Get, List, Update, Delete (#9331)
* feat: released securitycenter/v1 SHA custom modules cloud libraries: Create, Get, List, Update, Delete The Security Health Analytics (SHA) custom modules API is now released for general availability track. Create, Get, GetEffective, List, ListEffective, ListDescendant, Update, and Delete are available in the cloud client library. PiperOrigin-RevId: 523462834 Source-Link: googleapis/googleapis@b7b3dfd Source-Link: https://github.com/googleapis/googleapis-gen/commit/9b679ec02a7e16df9f0e7f66e077e379efd25ad4 Copy-Tag: eyJwIjoiamF2YS1zZWN1cml0eWNlbnRlci8uT3dsQm90LnlhbWwiLCJoIjoiOWI2NzllYzAyYTdlMTZkZjlmMGU3ZjY2ZTA3N2UzNzllZmQyNWFkNCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 30618bd commit 287315c

File tree

137 files changed

+34255
-1412
lines changed

Some content is hidden

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

137 files changed

+34255
-1412
lines changed

java-securitycenter/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>libraries-bom</artifactId>
23-
<version>26.11.0</version>
23+
<version>26.12.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>

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

Lines changed: 1791 additions & 153 deletions
Large diffs are not rendered by default.

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

Lines changed: 186 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@
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.ListBigQueryExportsPagedResponse;
23+
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse;
24+
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse;
2325
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListFindingsPagedResponse;
2426
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListMuteConfigsPagedResponse;
2527
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListNotificationConfigsPagedResponse;
28+
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse;
2629
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse;
2730

2831
import com.google.api.core.ApiFunction;
@@ -66,7 +69,8 @@
6669
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
6770
* build() is called, the tree of builders is called to create the complete settings object.
6871
*
69-
* <p>For example, to set the total timeout of createSource to 30 seconds:
72+
* <p>For example, to set the total timeout of createSecurityHealthAnalyticsCustomModule to 30
73+
* seconds:
7074
*
7175
* <pre>{@code
7276
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -77,10 +81,10 @@
7781
* SecurityCenterSettings.Builder securityCenterSettingsBuilder =
7882
* SecurityCenterSettings.newBuilder();
7983
* securityCenterSettingsBuilder
80-
* .createSourceSettings()
84+
* .createSecurityHealthAnalyticsCustomModuleSettings()
8185
* .setRetrySettings(
8286
* securityCenterSettingsBuilder
83-
* .createSourceSettings()
87+
* .createSecurityHealthAnalyticsCustomModuleSettings()
8488
* .getRetrySettings()
8589
* .toBuilder()
8690
* .setTotalTimeout(Duration.ofSeconds(30))
@@ -102,6 +106,17 @@ public UnaryCallSettings<BulkMuteFindingsRequest, Operation> bulkMuteFindingsSet
102106
return ((SecurityCenterStubSettings) getStubSettings()).bulkMuteFindingsOperationSettings();
103107
}
104108

109+
/**
110+
* Returns the object with the settings used for calls to
111+
* createSecurityHealthAnalyticsCustomModule.
112+
*/
113+
public UnaryCallSettings<
114+
CreateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
115+
createSecurityHealthAnalyticsCustomModuleSettings() {
116+
return ((SecurityCenterStubSettings) getStubSettings())
117+
.createSecurityHealthAnalyticsCustomModuleSettings();
118+
}
119+
105120
/** Returns the object with the settings used for calls to createSource. */
106121
public UnaryCallSettings<CreateSourceRequest, Source> createSourceSettings() {
107122
return ((SecurityCenterStubSettings) getStubSettings()).createSourceSettings();
@@ -134,6 +149,16 @@ public UnaryCallSettings<DeleteMuteConfigRequest, Empty> deleteMuteConfigSetting
134149
return ((SecurityCenterStubSettings) getStubSettings()).deleteNotificationConfigSettings();
135150
}
136151

152+
/**
153+
* Returns the object with the settings used for calls to
154+
* deleteSecurityHealthAnalyticsCustomModule.
155+
*/
156+
public UnaryCallSettings<DeleteSecurityHealthAnalyticsCustomModuleRequest, Empty>
157+
deleteSecurityHealthAnalyticsCustomModuleSettings() {
158+
return ((SecurityCenterStubSettings) getStubSettings())
159+
.deleteSecurityHealthAnalyticsCustomModuleSettings();
160+
}
161+
137162
/** Returns the object with the settings used for calls to getBigQueryExport. */
138163
public UnaryCallSettings<GetBigQueryExportRequest, BigQueryExport> getBigQueryExportSettings() {
139164
return ((SecurityCenterStubSettings) getStubSettings()).getBigQueryExportSettings();
@@ -161,6 +186,28 @@ public UnaryCallSettings<GetMuteConfigRequest, MuteConfig> getMuteConfigSettings
161186
return ((SecurityCenterStubSettings) getStubSettings()).getOrganizationSettingsSettings();
162187
}
163188

189+
/**
190+
* Returns the object with the settings used for calls to
191+
* getEffectiveSecurityHealthAnalyticsCustomModule.
192+
*/
193+
public UnaryCallSettings<
194+
GetEffectiveSecurityHealthAnalyticsCustomModuleRequest,
195+
EffectiveSecurityHealthAnalyticsCustomModule>
196+
getEffectiveSecurityHealthAnalyticsCustomModuleSettings() {
197+
return ((SecurityCenterStubSettings) getStubSettings())
198+
.getEffectiveSecurityHealthAnalyticsCustomModuleSettings();
199+
}
200+
201+
/**
202+
* Returns the object with the settings used for calls to getSecurityHealthAnalyticsCustomModule.
203+
*/
204+
public UnaryCallSettings<
205+
GetSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
206+
getSecurityHealthAnalyticsCustomModuleSettings() {
207+
return ((SecurityCenterStubSettings) getStubSettings())
208+
.getSecurityHealthAnalyticsCustomModuleSettings();
209+
}
210+
164211
/** Returns the object with the settings used for calls to getSource. */
165212
public UnaryCallSettings<GetSourceRequest, Source> getSourceSettings() {
166213
return ((SecurityCenterStubSettings) getStubSettings()).getSourceSettings();
@@ -184,6 +231,19 @@ public UnaryCallSettings<GetSourceRequest, Source> getSourceSettings() {
184231
return ((SecurityCenterStubSettings) getStubSettings()).listAssetsSettings();
185232
}
186233

234+
/**
235+
* Returns the object with the settings used for calls to
236+
* listDescendantSecurityHealthAnalyticsCustomModules.
237+
*/
238+
public PagedCallSettings<
239+
ListDescendantSecurityHealthAnalyticsCustomModulesRequest,
240+
ListDescendantSecurityHealthAnalyticsCustomModulesResponse,
241+
ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse>
242+
listDescendantSecurityHealthAnalyticsCustomModulesSettings() {
243+
return ((SecurityCenterStubSettings) getStubSettings())
244+
.listDescendantSecurityHealthAnalyticsCustomModulesSettings();
245+
}
246+
187247
/** Returns the object with the settings used for calls to listFindings. */
188248
public PagedCallSettings<ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse>
189249
listFindingsSettings() {
@@ -206,6 +266,32 @@ public UnaryCallSettings<GetSourceRequest, Source> getSourceSettings() {
206266
return ((SecurityCenterStubSettings) getStubSettings()).listNotificationConfigsSettings();
207267
}
208268

269+
/**
270+
* Returns the object with the settings used for calls to
271+
* listEffectiveSecurityHealthAnalyticsCustomModules.
272+
*/
273+
public PagedCallSettings<
274+
ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,
275+
ListEffectiveSecurityHealthAnalyticsCustomModulesResponse,
276+
ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse>
277+
listEffectiveSecurityHealthAnalyticsCustomModulesSettings() {
278+
return ((SecurityCenterStubSettings) getStubSettings())
279+
.listEffectiveSecurityHealthAnalyticsCustomModulesSettings();
280+
}
281+
282+
/**
283+
* Returns the object with the settings used for calls to
284+
* listSecurityHealthAnalyticsCustomModules.
285+
*/
286+
public PagedCallSettings<
287+
ListSecurityHealthAnalyticsCustomModulesRequest,
288+
ListSecurityHealthAnalyticsCustomModulesResponse,
289+
ListSecurityHealthAnalyticsCustomModulesPagedResponse>
290+
listSecurityHealthAnalyticsCustomModulesSettings() {
291+
return ((SecurityCenterStubSettings) getStubSettings())
292+
.listSecurityHealthAnalyticsCustomModulesSettings();
293+
}
294+
209295
/** Returns the object with the settings used for calls to listSources. */
210296
public PagedCallSettings<ListSourcesRequest, ListSourcesResponse, ListSourcesPagedResponse>
211297
listSourcesSettings() {
@@ -272,6 +358,17 @@ public UnaryCallSettings<UpdateMuteConfigRequest, MuteConfig> updateMuteConfigSe
272358
return ((SecurityCenterStubSettings) getStubSettings()).updateOrganizationSettingsSettings();
273359
}
274360

361+
/**
362+
* Returns the object with the settings used for calls to
363+
* updateSecurityHealthAnalyticsCustomModule.
364+
*/
365+
public UnaryCallSettings<
366+
UpdateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
367+
updateSecurityHealthAnalyticsCustomModuleSettings() {
368+
return ((SecurityCenterStubSettings) getStubSettings())
369+
.updateSecurityHealthAnalyticsCustomModuleSettings();
370+
}
371+
275372
/** Returns the object with the settings used for calls to updateSource. */
276373
public UnaryCallSettings<UpdateSourceRequest, Source> updateSourceSettings() {
277374
return ((SecurityCenterStubSettings) getStubSettings()).updateSourceSettings();
@@ -434,6 +531,16 @@ public Builder applyToAllUnaryMethods(
434531
return getStubSettingsBuilder().bulkMuteFindingsOperationSettings();
435532
}
436533

534+
/**
535+
* Returns the builder for the settings used for calls to
536+
* createSecurityHealthAnalyticsCustomModule.
537+
*/
538+
public UnaryCallSettings.Builder<
539+
CreateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
540+
createSecurityHealthAnalyticsCustomModuleSettings() {
541+
return getStubSettingsBuilder().createSecurityHealthAnalyticsCustomModuleSettings();
542+
}
543+
437544
/** Returns the builder for the settings used for calls to createSource. */
438545
public UnaryCallSettings.Builder<CreateSourceRequest, Source> createSourceSettings() {
439546
return getStubSettingsBuilder().createSourceSettings();
@@ -467,6 +574,15 @@ public UnaryCallSettings.Builder<DeleteMuteConfigRequest, Empty> deleteMuteConfi
467574
return getStubSettingsBuilder().deleteNotificationConfigSettings();
468575
}
469576

577+
/**
578+
* Returns the builder for the settings used for calls to
579+
* deleteSecurityHealthAnalyticsCustomModule.
580+
*/
581+
public UnaryCallSettings.Builder<DeleteSecurityHealthAnalyticsCustomModuleRequest, Empty>
582+
deleteSecurityHealthAnalyticsCustomModuleSettings() {
583+
return getStubSettingsBuilder().deleteSecurityHealthAnalyticsCustomModuleSettings();
584+
}
585+
470586
/** Returns the builder for the settings used for calls to getBigQueryExport. */
471587
public UnaryCallSettings.Builder<GetBigQueryExportRequest, BigQueryExport>
472588
getBigQueryExportSettings() {
@@ -495,6 +611,27 @@ public UnaryCallSettings.Builder<GetMuteConfigRequest, MuteConfig> getMuteConfig
495611
return getStubSettingsBuilder().getOrganizationSettingsSettings();
496612
}
497613

614+
/**
615+
* Returns the builder for the settings used for calls to
616+
* getEffectiveSecurityHealthAnalyticsCustomModule.
617+
*/
618+
public UnaryCallSettings.Builder<
619+
GetEffectiveSecurityHealthAnalyticsCustomModuleRequest,
620+
EffectiveSecurityHealthAnalyticsCustomModule>
621+
getEffectiveSecurityHealthAnalyticsCustomModuleSettings() {
622+
return getStubSettingsBuilder().getEffectiveSecurityHealthAnalyticsCustomModuleSettings();
623+
}
624+
625+
/**
626+
* Returns the builder for the settings used for calls to
627+
* getSecurityHealthAnalyticsCustomModule.
628+
*/
629+
public UnaryCallSettings.Builder<
630+
GetSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
631+
getSecurityHealthAnalyticsCustomModuleSettings() {
632+
return getStubSettingsBuilder().getSecurityHealthAnalyticsCustomModuleSettings();
633+
}
634+
498635
/** Returns the builder for the settings used for calls to getSource. */
499636
public UnaryCallSettings.Builder<GetSourceRequest, Source> getSourceSettings() {
500637
return getStubSettingsBuilder().getSourceSettings();
@@ -520,6 +657,18 @@ public UnaryCallSettings.Builder<GetSourceRequest, Source> getSourceSettings() {
520657
return getStubSettingsBuilder().listAssetsSettings();
521658
}
522659

660+
/**
661+
* Returns the builder for the settings used for calls to
662+
* listDescendantSecurityHealthAnalyticsCustomModules.
663+
*/
664+
public PagedCallSettings.Builder<
665+
ListDescendantSecurityHealthAnalyticsCustomModulesRequest,
666+
ListDescendantSecurityHealthAnalyticsCustomModulesResponse,
667+
ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse>
668+
listDescendantSecurityHealthAnalyticsCustomModulesSettings() {
669+
return getStubSettingsBuilder().listDescendantSecurityHealthAnalyticsCustomModulesSettings();
670+
}
671+
523672
/** Returns the builder for the settings used for calls to listFindings. */
524673
public PagedCallSettings.Builder<
525674
ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse>
@@ -543,6 +692,30 @@ public UnaryCallSettings.Builder<GetSourceRequest, Source> getSourceSettings() {
543692
return getStubSettingsBuilder().listNotificationConfigsSettings();
544693
}
545694

695+
/**
696+
* Returns the builder for the settings used for calls to
697+
* listEffectiveSecurityHealthAnalyticsCustomModules.
698+
*/
699+
public PagedCallSettings.Builder<
700+
ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,
701+
ListEffectiveSecurityHealthAnalyticsCustomModulesResponse,
702+
ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse>
703+
listEffectiveSecurityHealthAnalyticsCustomModulesSettings() {
704+
return getStubSettingsBuilder().listEffectiveSecurityHealthAnalyticsCustomModulesSettings();
705+
}
706+
707+
/**
708+
* Returns the builder for the settings used for calls to
709+
* listSecurityHealthAnalyticsCustomModules.
710+
*/
711+
public PagedCallSettings.Builder<
712+
ListSecurityHealthAnalyticsCustomModulesRequest,
713+
ListSecurityHealthAnalyticsCustomModulesResponse,
714+
ListSecurityHealthAnalyticsCustomModulesPagedResponse>
715+
listSecurityHealthAnalyticsCustomModulesSettings() {
716+
return getStubSettingsBuilder().listSecurityHealthAnalyticsCustomModulesSettings();
717+
}
718+
546719
/** Returns the builder for the settings used for calls to listSources. */
547720
public PagedCallSettings.Builder<
548721
ListSourcesRequest, ListSourcesResponse, ListSourcesPagedResponse>
@@ -612,6 +785,16 @@ public UnaryCallSettings.Builder<UpdateFindingRequest, Finding> updateFindingSet
612785
return getStubSettingsBuilder().updateOrganizationSettingsSettings();
613786
}
614787

788+
/**
789+
* Returns the builder for the settings used for calls to
790+
* updateSecurityHealthAnalyticsCustomModule.
791+
*/
792+
public UnaryCallSettings.Builder<
793+
UpdateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
794+
updateSecurityHealthAnalyticsCustomModuleSettings() {
795+
return getStubSettingsBuilder().updateSecurityHealthAnalyticsCustomModuleSettings();
796+
}
797+
615798
/** Returns the builder for the settings used for calls to updateSource. */
616799
public UnaryCallSettings.Builder<UpdateSourceRequest, Source> updateSourceSettings() {
617800
return getStubSettingsBuilder().updateSourceSettings();

0 commit comments

Comments
 (0)