This class is for advanced usage.
*/
@Generated("by gapic-generator-java")
-@BetaApi
public class HttpJsonSecurityCenterCallableFactory
implements HttpJsonStubCallableFactory This class is for advanced usage and reflects the underlying API directly.
*/
@Generated("by gapic-generator-java")
-@BetaApi
public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
private static final TypeRegistry typeRegistry =
TypeRegistry.newBuilder()
diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java
index 3c181b5bb012..e9baae7545cc 100644
--- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java
+++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java
@@ -2259,8 +2259,6 @@ public Builder applyToAllUnaryMethods(
}
/** Returns the builder for the settings used for calls to bulkMuteFindings. */
- @BetaApi(
- "The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallSettings.Builder This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the SecurityCenterClient object to clean up resources such
+ * as threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ * BatchCreateResourceValueConfigs Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchCreateResourceValueConfigs(OrganizationName parent, List<CreateResourceValueConfigRequest> requests)
+ * batchCreateResourceValueConfigs(String parent, List<CreateResourceValueConfigRequest> requests)
+ * batchCreateResourceValueConfigs(BatchCreateResourceValueConfigsRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchCreateResourceValueConfigsCallable()
+ * BulkMuteFindings Kicks off an LRO to bulk mute findings for a parent based on a filter. If no location is specified, findings are muted in global. The parent can be either an organization, folder, or project. The findings matched by the filter will be muted after the LRO is done. Request object method variants only take one parameter, a request object, which must be constructed before the call. bulkMuteFindingsAsync(BulkMuteFindingsRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. bulkMuteFindingsAsync(ResourceName parent)
+ * bulkMuteFindingsAsync(String parent)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. bulkMuteFindingsOperationCallable()
+ * bulkMuteFindingsCallable()
+ * CreateBigQueryExport Creates a BigQuery export. Request object method variants only take one parameter, a request object, which must be constructed before the call. createBigQueryExport(CreateBigQueryExportRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createBigQueryExport(FolderLocationName parent, BigQueryExport bigQueryExport, String bigQueryExportId)
+ * createBigQueryExport(LocationName parent, BigQueryExport bigQueryExport, String bigQueryExportId)
+ * createBigQueryExport(OrganizationLocationName parent, BigQueryExport bigQueryExport, String bigQueryExportId)
+ * createBigQueryExport(String parent, BigQueryExport bigQueryExport, String bigQueryExportId)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createBigQueryExportCallable()
+ * CreateFinding Creates a finding in a location. The corresponding source must exist for finding creation to succeed. Request object method variants only take one parameter, a request object, which must be constructed before the call. createFinding(CreateFindingRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createFinding(SourceName parent, Finding finding, String findingId)
+ * createFinding(String parent, Finding finding, String findingId)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createFindingCallable()
+ * CreateMuteConfig Creates a mute config. Request object method variants only take one parameter, a request object, which must be constructed before the call. createMuteConfig(CreateMuteConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createMuteConfig(FolderLocationName parent, MuteConfig muteConfig, String muteConfigId)
+ * createMuteConfig(FolderName parent, MuteConfig muteConfig, String muteConfigId)
+ * createMuteConfig(LocationName parent, MuteConfig muteConfig, String muteConfigId)
+ * createMuteConfig(OrganizationLocationName parent, MuteConfig muteConfig, String muteConfigId)
+ * createMuteConfig(OrganizationName parent, MuteConfig muteConfig, String muteConfigId)
+ * createMuteConfig(ProjectName parent, MuteConfig muteConfig, String muteConfigId)
+ * createMuteConfig(String parent, MuteConfig muteConfig, String muteConfigId)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createMuteConfigCallable()
+ * CreateNotificationConfig Creates a notification config. Request object method variants only take one parameter, a request object, which must be constructed before the call. createNotificationConfig(CreateNotificationConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createNotificationConfig(FolderLocationName parent, NotificationConfig notificationConfig, String configId)
+ * createNotificationConfig(LocationName parent, NotificationConfig notificationConfig, String configId)
+ * createNotificationConfig(OrganizationLocationName parent, NotificationConfig notificationConfig, String configId)
+ * createNotificationConfig(String parent, NotificationConfig notificationConfig, String configId)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createNotificationConfigCallable()
+ * CreateSource Creates a source. Request object method variants only take one parameter, a request object, which must be constructed before the call. createSource(CreateSourceRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createSource(OrganizationName parent, Source source)
+ * createSource(String parent, Source source)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createSourceCallable()
+ * DeleteBigQueryExport Deletes an existing BigQuery export. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteBigQueryExport(DeleteBigQueryExportRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. deleteBigQueryExport(BigQueryExportName name)
+ * deleteBigQueryExport(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteBigQueryExportCallable()
+ * DeleteMuteConfig Deletes an existing mute config. If no location is specified, default is global. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteMuteConfig(DeleteMuteConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. deleteMuteConfig(MuteConfigName name)
+ * deleteMuteConfig(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteMuteConfigCallable()
+ * DeleteNotificationConfig Deletes a notification config. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteNotificationConfig(DeleteNotificationConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. deleteNotificationConfig(NotificationConfigName name)
+ * deleteNotificationConfig(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteNotificationConfigCallable()
+ * DeleteResourceValueConfig Deletes a ResourceValueConfig. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteResourceValueConfig(DeleteResourceValueConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. deleteResourceValueConfig(ResourceValueConfigName name)
+ * deleteResourceValueConfig(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteResourceValueConfigCallable()
+ * GetBigQueryExport Gets a BigQuery export. Request object method variants only take one parameter, a request object, which must be constructed before the call. getBigQueryExport(GetBigQueryExportRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getBigQueryExport(BigQueryExportName name)
+ * getBigQueryExport(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getBigQueryExportCallable()
+ * GetSimulation Get the simulation by name or the latest simulation for the given organization. Request object method variants only take one parameter, a request object, which must be constructed before the call. getSimulation(GetSimulationRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getSimulation(SimulationName name)
+ * getSimulation(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getSimulationCallable()
+ * GetValuedResource Get the valued resource by name Request object method variants only take one parameter, a request object, which must be constructed before the call. getValuedResource(GetValuedResourceRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getValuedResource(ValuedResourceName name)
+ * getValuedResource(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getValuedResourceCallable()
+ * GetIamPolicy Gets the access control policy on the specified Source. Request object method variants only take one parameter, a request object, which must be constructed before the call. getIamPolicy(GetIamPolicyRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getIamPolicy(ResourceName resource)
+ * getIamPolicy(String resource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getIamPolicyCallable()
+ * GetMuteConfig Gets a mute config. If no location is specified, default is global. Request object method variants only take one parameter, a request object, which must be constructed before the call. getMuteConfig(GetMuteConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getMuteConfig(MuteConfigName name)
+ * getMuteConfig(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getMuteConfigCallable()
+ * GetNotificationConfig Gets a notification config. Request object method variants only take one parameter, a request object, which must be constructed before the call. getNotificationConfig(GetNotificationConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getNotificationConfig(NotificationConfigName name)
+ * getNotificationConfig(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getNotificationConfigCallable()
+ * GetResourceValueConfig Gets a ResourceValueConfig. Request object method variants only take one parameter, a request object, which must be constructed before the call. getResourceValueConfig(GetResourceValueConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getResourceValueConfig(ResourceValueConfigName name)
+ * getResourceValueConfig(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getResourceValueConfigCallable()
+ * GetSource Gets a source. Request object method variants only take one parameter, a request object, which must be constructed before the call. getSource(GetSourceRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getSource(SourceName name)
+ * getSource(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getSourceCallable()
+ * GroupFindings Filters an organization or source's findings and groups them by their specified properties in a location. If no location is specified, findings are assumed to be in global
+ * To group across all sources provide a `-` as the source id. The following list shows some examples:
+ * + `/v2/organizations/{organization_id}/sources/-/findings` + `/v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings` + `/v2/folders/{folder_id}/sources/-/findings` + `/v2/folders/{folder_id}/sources/-/locations/{location_id}/findings` + `/v2/projects/{project_id}/sources/-/findings` + `/v2/projects/{project_id}/sources/-/locations/{location_id}/findings` Request object method variants only take one parameter, a request object, which must be constructed before the call. groupFindings(GroupFindingsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. groupFindings(SourceName parent, String groupBy)
+ * groupFindings(String parent, String groupBy)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. groupFindingsPagedCallable()
+ * groupFindingsCallable()
+ * ListAttackPaths Lists the attack paths for a set of simulation results or valued resources and filter. Request object method variants only take one parameter, a request object, which must be constructed before the call. listAttackPaths(ListAttackPathsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listAttackPaths(ValuedResourceName parent)
+ * listAttackPaths(String parent)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listAttackPathsPagedCallable()
+ * listAttackPathsCallable()
+ * ListBigQueryExports Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned. Request object method variants only take one parameter, a request object, which must be constructed before the call. listBigQueryExports(ListBigQueryExportsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listBigQueryExports(FolderLocationName parent)
+ * listBigQueryExports(LocationName parent)
+ * listBigQueryExports(OrganizationLocationName parent)
+ * listBigQueryExports(String parent)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listBigQueryExportsPagedCallable()
+ * listBigQueryExportsCallable()
+ * ListFindings Lists an organization or source's findings.
+ * To list across all sources for a given location provide a `-` as the source id. If no location is specified, finding are assumed to be in global. The following list shows some examples:
+ * + `/v2/organizations/{organization_id}/sources/-/findings` + `/v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings` Request object method variants only take one parameter, a request object, which must be constructed before the call. listFindings(ListFindingsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listFindings(SourceName parent)
+ * listFindings(String parent)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listFindingsPagedCallable()
+ * listFindingsCallable()
+ * ListMuteConfigs Lists mute configs. If no location is specified, default is global. Request object method variants only take one parameter, a request object, which must be constructed before the call. listMuteConfigs(ListMuteConfigsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listMuteConfigs(FolderLocationName parent)
+ * listMuteConfigs(FolderName parent)
+ * listMuteConfigs(LocationName parent)
+ * listMuteConfigs(OrganizationLocationName parent)
+ * listMuteConfigs(OrganizationName parent)
+ * listMuteConfigs(ProjectName parent)
+ * listMuteConfigs(String parent)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listMuteConfigsPagedCallable()
+ * listMuteConfigsCallable()
+ * ListNotificationConfigs Lists notification configs. Request object method variants only take one parameter, a request object, which must be constructed before the call. listNotificationConfigs(ListNotificationConfigsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listNotificationConfigs(FolderLocationName parent)
+ * listNotificationConfigs(LocationName parent)
+ * listNotificationConfigs(OrganizationLocationName parent)
+ * listNotificationConfigs(String parent)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listNotificationConfigsPagedCallable()
+ * listNotificationConfigsCallable()
+ * ListResourceValueConfigs Lists all ResourceValueConfigs. Request object method variants only take one parameter, a request object, which must be constructed before the call. listResourceValueConfigs(ListResourceValueConfigsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listResourceValueConfigs(OrganizationName parent)
+ * listResourceValueConfigs(String parent)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listResourceValueConfigsPagedCallable()
+ * listResourceValueConfigsCallable()
+ * ListSources Lists all sources belonging to an organization. Request object method variants only take one parameter, a request object, which must be constructed before the call. listSources(ListSourcesRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listSources(FolderName parent)
+ * listSources(OrganizationName parent)
+ * listSources(ProjectName parent)
+ * listSources(String parent)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listSourcesPagedCallable()
+ * listSourcesCallable()
+ * ListValuedResources Lists the valued resources for a set of simulation results and filter. Request object method variants only take one parameter, a request object, which must be constructed before the call. listValuedResources(ListValuedResourcesRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listValuedResources(SimulationName parent)
+ * listValuedResources(String parent)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listValuedResourcesPagedCallable()
+ * listValuedResourcesCallable()
+ * SetFindingState Updates the state of a finding. If no location is specified, finding is assumed to be in global Request object method variants only take one parameter, a request object, which must be constructed before the call. setFindingState(SetFindingStateRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. setFindingState(FindingName name, Finding.State state)
+ * setFindingState(String name, Finding.State state)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. setFindingStateCallable()
+ * SetIamPolicy Sets the access control policy on the specified Source. Request object method variants only take one parameter, a request object, which must be constructed before the call. setIamPolicy(SetIamPolicyRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. setIamPolicy(ResourceName resource, Policy policy)
+ * setIamPolicy(String resource, Policy policy)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. setIamPolicyCallable()
+ * SetMute Updates the mute state of a finding. If no location is specified, finding is assumed to be in global Request object method variants only take one parameter, a request object, which must be constructed before the call. setMute(SetMuteRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. setMute(FindingName name, Finding.Mute mute)
+ * setMute(String name, Finding.Mute mute)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. setMuteCallable()
+ * TestIamPermissions Returns the permissions that a caller has on the specified source. Request object method variants only take one parameter, a request object, which must be constructed before the call. testIamPermissions(TestIamPermissionsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. testIamPermissions(ResourceName resource, List<String> permissions)
+ * testIamPermissions(String resource, List<String> permissions)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. testIamPermissionsCallable()
+ * UpdateBigQueryExport Updates a BigQuery export. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateBigQueryExport(UpdateBigQueryExportRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateBigQueryExport(BigQueryExport bigQueryExport, FieldMask updateMask)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateBigQueryExportCallable()
+ * UpdateExternalSystem Updates external system. This is for a given finding. If no location is specified, finding is assumed to be in global Request object method variants only take one parameter, a request object, which must be constructed before the call. updateExternalSystem(UpdateExternalSystemRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateExternalSystem(ExternalSystem externalSystem, FieldMask updateMask)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateExternalSystemCallable()
+ * UpdateFinding Creates or updates a finding. If no location is specified, finding is assumed to be in global. The corresponding source must exist for a finding creation to succeed. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateFinding(UpdateFindingRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateFinding(Finding finding, FieldMask updateMask)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateFindingCallable()
+ * UpdateMuteConfig Updates a mute config. If no location is specified, default is global. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateMuteConfig(UpdateMuteConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateMuteConfig(MuteConfig muteConfig, FieldMask updateMask)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateMuteConfigCallable()
+ * UpdateNotificationConfig Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter Request object method variants only take one parameter, a request object, which must be constructed before the call. updateNotificationConfig(UpdateNotificationConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateNotificationConfig(NotificationConfig notificationConfig, FieldMask updateMask)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateNotificationConfigCallable()
+ * UpdateResourceValueConfig Updates an existing ResourceValueConfigs with new rules. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateResourceValueConfig(UpdateResourceValueConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateResourceValueConfig(ResourceValueConfig resourceValueConfig, FieldMask updateMask)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateResourceValueConfigCallable()
+ * UpdateSecurityMarks Updates security marks. For Finding Security marks, if no location is specified, finding is assumed to be in global. Assets Security Marks can only be accessed through global endpoint. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateSecurityMarks(UpdateSecurityMarksRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateSecurityMarks(SecurityMarks securityMarks, FieldMask updateMask)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateSecurityMarksCallable()
+ * UpdateSource Updates a source. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateSource(UpdateSourceRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateSource(Source source, FieldMask updateMask)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateSourceCallable()
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of SecurityCenterSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
+ * the wire:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class SecurityCenterClient implements BackgroundResource {
+ private final SecurityCenterSettings settings;
+ private final SecurityCenterStub stub;
+ private final OperationsClient httpJsonOperationsClient;
+ private final com.google.longrunning.OperationsClient operationsClient;
+
+ /** Constructs an instance of SecurityCenterClient with default settings. */
+ public static final SecurityCenterClient create() throws IOException {
+ return create(SecurityCenterSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of SecurityCenterClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final SecurityCenterClient create(SecurityCenterSettings settings)
+ throws IOException {
+ return new SecurityCenterClient(settings);
+ }
+
+ /**
+ * Constructs an instance of SecurityCenterClient, using the given stub for making calls. This is
+ * for advanced usage - prefer using create(SecurityCenterSettings).
+ */
+ public static final SecurityCenterClient create(SecurityCenterStub stub) {
+ return new SecurityCenterClient(stub);
+ }
+
+ /**
+ * Constructs an instance of SecurityCenterClient, using the given settings. This is protected so
+ * that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected SecurityCenterClient(SecurityCenterSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((SecurityCenterStubSettings) settings.getStubSettings()).createStub();
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ protected SecurityCenterClient(SecurityCenterStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ public final SecurityCenterSettings getSettings() {
+ return settings;
+ }
+
+ public SecurityCenterStub getStub() {
+ return stub;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ public final com.google.longrunning.OperationsClient getOperationsClient() {
+ return operationsClient;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ @BetaApi
+ public final OperationsClient getHttpJsonOperationsClient() {
+ return httpJsonOperationsClient;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource
+ * values for use by the attack path simulation.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * + `organizations/[organization_id]` +
+ * `organizations/[organization_id]/locations/[location_id]` + `folders/[folder_id]` +
+ * `folders/[folder_id]/locations/[location_id]` + `projects/[project_id]` +
+ * `projects/[project_id]/locations/[location_id]`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture Sample code:
+ *
+ * + `organizations/[organization_id]` +
+ * `organizations/[organization_id]/locations/[location_id]` + `folders/[folder_id]` +
+ * `folders/[folder_id]/locations/[location_id]` + `projects/[project_id]` +
+ * `projects/[project_id]/locations/[location_id]`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * + `organizations/{organization}/locations/{location}/bigQueryExports/{export_id}` +
+ * `folders/{folder}/locations/{location}/bigQueryExports/{export_id}` +
+ * `projects/{project}/locations/{location}/bigQueryExports/{export_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteBigQueryExport(BigQueryExportName name) {
+ DeleteBigQueryExportRequest request =
+ DeleteBigQueryExportRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteBigQueryExport(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes an existing BigQuery export.
+ *
+ * Sample code:
+ *
+ * + `organizations/{organization}/locations/{location}/bigQueryExports/{export_id}` +
+ * `folders/{folder}/locations/{location}/bigQueryExports/{export_id}` +
+ * `projects/{project}/locations/{location}/bigQueryExports/{export_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteBigQueryExport(String name) {
+ DeleteBigQueryExportRequest request =
+ DeleteBigQueryExportRequest.newBuilder().setName(name).build();
+ deleteBigQueryExport(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes an existing BigQuery export.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * + `organizations/{organization}/muteConfigs/{config_id}` +
+ * `organizations/{organization}/locations/{location}/muteConfigs/{config_id}` +
+ * `folders/{folder}/muteConfigs/{config_id}` +
+ * `folders/{folder}/locations/{location}/muteConfigs/{config_id}` +
+ * `projects/{project}/muteConfigs/{config_id}` +
+ * `projects/{project}/locations/{location}/muteConfigs/{config_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteMuteConfig(MuteConfigName name) {
+ DeleteMuteConfigRequest request =
+ DeleteMuteConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ deleteMuteConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes an existing mute config. If no location is specified, default is global.
+ *
+ * Sample code:
+ *
+ * + `organizations/{organization}/muteConfigs/{config_id}` +
+ * `organizations/{organization}/locations/{location}/muteConfigs/{config_id}` +
+ * `folders/{folder}/muteConfigs/{config_id}` +
+ * `folders/{folder}/locations/{location}/muteConfigs/{config_id}` +
+ * `projects/{project}/muteConfigs/{config_id}` +
+ * `projects/{project}/locations/{location}/muteConfigs/{config_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteMuteConfig(String name) {
+ DeleteMuteConfigRequest request = DeleteMuteConfigRequest.newBuilder().setName(name).build();
+ deleteMuteConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes an existing mute config. If no location is specified, default is global.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * +
+ * `organizations/[organization_id]/locations/[location_id]/notificationConfigs/[config_id]` +
+ * `folders/[folder_id]/locations/[location_id]notificationConfigs/[config_id]` +
+ * `projects/[project_id]/locations/[location_id]notificationConfigs/[config_id]`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteNotificationConfig(NotificationConfigName name) {
+ DeleteNotificationConfigRequest request =
+ DeleteNotificationConfigRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteNotificationConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a notification config.
+ *
+ * Sample code:
+ *
+ * +
+ * `organizations/[organization_id]/locations/[location_id]/notificationConfigs/[config_id]` +
+ * `folders/[folder_id]/locations/[location_id]notificationConfigs/[config_id]` +
+ * `projects/[project_id]/locations/[location_id]notificationConfigs/[config_id]`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteNotificationConfig(String name) {
+ DeleteNotificationConfigRequest request =
+ DeleteNotificationConfigRequest.newBuilder().setName(name).build();
+ deleteNotificationConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a notification config.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * + `organizations/{organization}/locations/{location}/bigQueryExports/{export_id}` +
+ * `folders/{folder}/locations/{location}/bigQueryExports/{export_id}` +
+ * `projects/{project}locations/{location}//bigQueryExports/{export_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BigQueryExport getBigQueryExport(BigQueryExportName name) {
+ GetBigQueryExportRequest request =
+ GetBigQueryExportRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getBigQueryExport(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a BigQuery export.
+ *
+ * Sample code:
+ *
+ * + `organizations/{organization}/locations/{location}/bigQueryExports/{export_id}` +
+ * `folders/{folder}/locations/{location}/bigQueryExports/{export_id}` +
+ * `projects/{project}locations/{location}//bigQueryExports/{export_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BigQueryExport getBigQueryExport(String name) {
+ GetBigQueryExportRequest request = GetBigQueryExportRequest.newBuilder().setName(name).build();
+ return getBigQueryExport(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a BigQuery export.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Valid format: "organizations/{organization}/simulations/latest"
+ * "organizations/{organization}/simulations/{simulation}"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Simulation getSimulation(SimulationName name) {
+ GetSimulationRequest request =
+ GetSimulationRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getSimulation(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get the simulation by name or the latest simulation for the given organization.
+ *
+ * Sample code:
+ *
+ * Valid format: "organizations/{organization}/simulations/latest"
+ * "organizations/{organization}/simulations/{simulation}"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Simulation getSimulation(String name) {
+ GetSimulationRequest request = GetSimulationRequest.newBuilder().setName(name).build();
+ return getSimulation(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get the simulation by name or the latest simulation for the given organization.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Valid format:
+ * "organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ValuedResource getValuedResource(ValuedResourceName name) {
+ GetValuedResourceRequest request =
+ GetValuedResourceRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getValuedResource(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get the valued resource by name
+ *
+ * Sample code:
+ *
+ * Valid format:
+ * "organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ValuedResource getValuedResource(String name) {
+ GetValuedResourceRequest request = GetValuedResourceRequest.newBuilder().setName(name).build();
+ return getValuedResource(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get the valued resource by name
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * + `organizations/{organization}/muteConfigs/{config_id}` +
+ * `organizations/{organization}/locations/{location}/muteConfigs/{config_id}` +
+ * `folders/{folder}/muteConfigs/{config_id}` +
+ * `folders/{folder}/locations/{location}/muteConfigs/{config_id}` +
+ * `projects/{project}/muteConfigs/{config_id}` +
+ * `projects/{project}/locations/{location}/muteConfigs/{config_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MuteConfig getMuteConfig(MuteConfigName name) {
+ GetMuteConfigRequest request =
+ GetMuteConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getMuteConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a mute config. If no location is specified, default is global.
+ *
+ * Sample code:
+ *
+ * + `organizations/{organization}/muteConfigs/{config_id}` +
+ * `organizations/{organization}/locations/{location}/muteConfigs/{config_id}` +
+ * `folders/{folder}/muteConfigs/{config_id}` +
+ * `folders/{folder}/locations/{location}/muteConfigs/{config_id}` +
+ * `projects/{project}/muteConfigs/{config_id}` +
+ * `projects/{project}/locations/{location}/muteConfigs/{config_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MuteConfig getMuteConfig(String name) {
+ GetMuteConfigRequest request = GetMuteConfigRequest.newBuilder().setName(name).build();
+ return getMuteConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a mute config. If no location is specified, default is global.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * +
+ * `organizations/[organization_id]/locations/[location_id]/notificationConfigs/[config_id]` +
+ * `folders/[folder_id]/locations/[location_id]/notificationConfigs/[config_id]` +
+ * `projects/[project_id]/locations/[location_id]/notificationConfigs/[config_id]`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final NotificationConfig getNotificationConfig(NotificationConfigName name) {
+ GetNotificationConfigRequest request =
+ GetNotificationConfigRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getNotificationConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a notification config.
+ *
+ * Sample code:
+ *
+ * +
+ * `organizations/[organization_id]/locations/[location_id]/notificationConfigs/[config_id]` +
+ * `folders/[folder_id]/locations/[location_id]/notificationConfigs/[config_id]` +
+ * `projects/[project_id]/locations/[location_id]/notificationConfigs/[config_id]`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final NotificationConfig getNotificationConfig(String name) {
+ GetNotificationConfigRequest request =
+ GetNotificationConfigRequest.newBuilder().setName(name).build();
+ return getNotificationConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a notification config.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * To group across all sources provide a `-` as the source id. The following list shows some
+ * examples:
+ *
+ * + `/v2/organizations/{organization_id}/sources/-/findings` +
+ * `/v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings` +
+ * `/v2/folders/{folder_id}/sources/-/findings` +
+ * `/v2/folders/{folder_id}/sources/-/locations/{location_id}/findings` +
+ * `/v2/projects/{project_id}/sources/-/findings` +
+ * `/v2/projects/{project_id}/sources/-/locations/{location_id}/findings`
+ *
+ * Sample code:
+ *
+ * + `organizations/[organization_id]/sources/[source_id]` +
+ * `organizations/[organization_id]/sources/[source_id]/locations/[location_id]` +
+ * `folders/[folder_id]/sources/[source_id]` +
+ * `folders/[folder_id]/sources/[source_id]/locations/[location_id]` +
+ * `projects/[project_id]/sources/[source_id]` +
+ * `projects/[project_id]/sources/[source_id]/locations/[location_id]`
+ * To groupBy across all sources provide a source_id of `-`. The following list shows some
+ * examples:
+ * + `organizations/{organization_id}/sources/-` +
+ * `organizations/{organization_id}/sources/-/locations/[location_id]` +
+ * `folders/{folder_id}/sources/-` + `folders/{folder_id}/sources/-/locations/[location_id]` +
+ * `projects/{project_id}/sources/-` +
+ * `projects/{project_id}/sources/-/locations/[location_id]`
+ * @param groupBy Required. Expression that defines what assets fields to use for grouping. The
+ * string value should follow SQL syntax: comma separated list of fields. For example:
+ * "parent,resource_name".
+ * The following fields are supported:
+ * To group across all sources provide a `-` as the source id. The following list shows some
+ * examples:
+ *
+ * + `/v2/organizations/{organization_id}/sources/-/findings` +
+ * `/v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings` +
+ * `/v2/folders/{folder_id}/sources/-/findings` +
+ * `/v2/folders/{folder_id}/sources/-/locations/{location_id}/findings` +
+ * `/v2/projects/{project_id}/sources/-/findings` +
+ * `/v2/projects/{project_id}/sources/-/locations/{location_id}/findings`
+ *
+ * Sample code:
+ *
+ * + `organizations/[organization_id]/sources/[source_id]` +
+ * `organizations/[organization_id]/sources/[source_id]/locations/[location_id]` +
+ * `folders/[folder_id]/sources/[source_id]` +
+ * `folders/[folder_id]/sources/[source_id]/locations/[location_id]` +
+ * `projects/[project_id]/sources/[source_id]` +
+ * `projects/[project_id]/sources/[source_id]/locations/[location_id]`
+ * To groupBy across all sources provide a source_id of `-`. The following list shows some
+ * examples:
+ * + `organizations/{organization_id}/sources/-` +
+ * `organizations/{organization_id}/sources/-/locations/[location_id]` +
+ * `folders/{folder_id}/sources/-` + `folders/{folder_id}/sources/-/locations/[location_id]` +
+ * `projects/{project_id}/sources/-` +
+ * `projects/{project_id}/sources/-/locations/[location_id]`
+ * @param groupBy Required. Expression that defines what assets fields to use for grouping. The
+ * string value should follow SQL syntax: comma separated list of fields. For example:
+ * "parent,resource_name".
+ * The following fields are supported:
+ * To group across all sources provide a `-` as the source id. The following list shows some
+ * examples:
+ *
+ * + `/v2/organizations/{organization_id}/sources/-/findings` +
+ * `/v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings` +
+ * `/v2/folders/{folder_id}/sources/-/findings` +
+ * `/v2/folders/{folder_id}/sources/-/locations/{location_id}/findings` +
+ * `/v2/projects/{project_id}/sources/-/findings` +
+ * `/v2/projects/{project_id}/sources/-/locations/{location_id}/findings`
+ *
+ * Sample code:
+ *
+ * To group across all sources provide a `-` as the source id. The following list shows some
+ * examples:
+ *
+ * + `/v2/organizations/{organization_id}/sources/-/findings` +
+ * `/v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings` +
+ * `/v2/folders/{folder_id}/sources/-/findings` +
+ * `/v2/folders/{folder_id}/sources/-/locations/{location_id}/findings` +
+ * `/v2/projects/{project_id}/sources/-/findings` +
+ * `/v2/projects/{project_id}/sources/-/locations/{location_id}/findings`
+ *
+ * Sample code:
+ *
+ * To group across all sources provide a `-` as the source id. The following list shows some
+ * examples:
+ *
+ * + `/v2/organizations/{organization_id}/sources/-/findings` +
+ * `/v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings` +
+ * `/v2/folders/{folder_id}/sources/-/findings` +
+ * `/v2/folders/{folder_id}/sources/-/locations/{location_id}/findings` +
+ * `/v2/projects/{project_id}/sources/-/findings` +
+ * `/v2/projects/{project_id}/sources/-/locations/{location_id}/findings`
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Valid formats: "organizations/{organization}",
+ * "organizations/{organization}/simulations/{simulation}"
+ * "organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}"
+ * "organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAttackPathsPagedResponse listAttackPaths(ValuedResourceName parent) {
+ ListAttackPathsRequest request =
+ ListAttackPathsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listAttackPaths(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the attack paths for a set of simulation results or valued resources and filter.
+ *
+ * Sample code:
+ *
+ * Valid formats: "organizations/{organization}",
+ * "organizations/{organization}/simulations/{simulation}"
+ * "organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}"
+ * "organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAttackPathsPagedResponse listAttackPaths(String parent) {
+ ListAttackPathsRequest request = ListAttackPathsRequest.newBuilder().setParent(parent).build();
+ return listAttackPaths(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the attack paths for a set of simulation results or valued resources and filter.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * To list across all sources for a given location provide a `-` as the source id. If no
+ * location is specified, finding are assumed to be in global. The following list shows some
+ * examples:
+ *
+ * + `/v2/organizations/{organization_id}/sources/-/findings` +
+ * `/v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings`
+ *
+ * Sample code:
+ *
+ * + `organizations/[organization_id]/sources/[source_id]` +
+ * `organizations/[organization_id]/sources/[source_id]/locations/[location_id]` +
+ * `folders/[folder_id]/sources/[source_id]` +
+ * `folders/[folder_id]/sources/[source_id]/locations/[location_id]` +
+ * `projects/[project_id]/sources/[source_id]` +
+ * `projects/[project_id]/sources/[source_id]/locations/[location_id]`
+ * To list across all sources provide a source_id of `-`. The following list shows some
+ * examples:
+ * + `organizations/{organization_id}/sources/-` +
+ * `organizations/{organization_id}/sources/-/locations/{location_id}` +
+ * `folders/{folder_id}/sources/-` + `folders/{folder_id}/sources/-locations/{location_id}` +
+ * `projects/{projects_id}/sources/-` +
+ * `projects/{projects_id}/sources/-/locations/{location_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFindingsPagedResponse listFindings(SourceName parent) {
+ ListFindingsRequest request =
+ ListFindingsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listFindings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists an organization or source's findings.
+ *
+ * To list across all sources for a given location provide a `-` as the source id. If no
+ * location is specified, finding are assumed to be in global. The following list shows some
+ * examples:
+ *
+ * + `/v2/organizations/{organization_id}/sources/-/findings` +
+ * `/v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings`
+ *
+ * Sample code:
+ *
+ * + `organizations/[organization_id]/sources/[source_id]` +
+ * `organizations/[organization_id]/sources/[source_id]/locations/[location_id]` +
+ * `folders/[folder_id]/sources/[source_id]` +
+ * `folders/[folder_id]/sources/[source_id]/locations/[location_id]` +
+ * `projects/[project_id]/sources/[source_id]` +
+ * `projects/[project_id]/sources/[source_id]/locations/[location_id]`
+ * To list across all sources provide a source_id of `-`. The following list shows some
+ * examples:
+ * + `organizations/{organization_id}/sources/-` +
+ * `organizations/{organization_id}/sources/-/locations/{location_id}` +
+ * `folders/{folder_id}/sources/-` + `folders/{folder_id}/sources/-locations/{location_id}` +
+ * `projects/{projects_id}/sources/-` +
+ * `projects/{projects_id}/sources/-/locations/{location_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFindingsPagedResponse listFindings(String parent) {
+ ListFindingsRequest request = ListFindingsRequest.newBuilder().setParent(parent).build();
+ return listFindings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists an organization or source's findings.
+ *
+ * To list across all sources for a given location provide a `-` as the source id. If no
+ * location is specified, finding are assumed to be in global. The following list shows some
+ * examples:
+ *
+ * + `/v2/organizations/{organization_id}/sources/-/findings` +
+ * `/v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings`
+ *
+ * Sample code:
+ *
+ * To list across all sources for a given location provide a `-` as the source id. If no
+ * location is specified, finding are assumed to be in global. The following list shows some
+ * examples:
+ *
+ * + `/v2/organizations/{organization_id}/sources/-/findings` +
+ * `/v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings`
+ *
+ * Sample code:
+ *
+ * To list across all sources for a given location provide a `-` as the source id. If no
+ * location is specified, finding are assumed to be in global. The following list shows some
+ * examples:
+ *
+ * + `/v2/organizations/{organization_id}/sources/-/findings` +
+ * `/v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings`
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Valid formats: "organizations/{organization}",
+ * "organizations/{organization}/simulations/{simulation}"
+ * "organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListValuedResourcesPagedResponse listValuedResources(SimulationName parent) {
+ ListValuedResourcesRequest request =
+ ListValuedResourcesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listValuedResources(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the valued resources for a set of simulation results and filter.
+ *
+ * Sample code:
+ *
+ * Valid formats: "organizations/{organization}",
+ * "organizations/{organization}/simulations/{simulation}"
+ * "organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListValuedResourcesPagedResponse listValuedResources(String parent) {
+ ListValuedResourcesRequest request =
+ ListValuedResourcesRequest.newBuilder().setParent(parent).build();
+ return listValuedResources(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the valued resources for a set of simulation results and filter.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * + `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}` +
+ * `organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
+ * + `folders/{folder_id}/sources/{source_id}/findings/{finding_id}` +
+ * `folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}` +
+ * `projects/{project_id}/sources/{source_id}/findings/{finding_id}` +
+ * `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
+ * @param state Required. The desired State of the finding.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Finding setFindingState(FindingName name, Finding.State state) {
+ SetFindingStateRequest request =
+ SetFindingStateRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .setState(state)
+ .build();
+ return setFindingState(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the state of a finding. If no location is specified, finding is assumed to be in global
+ *
+ * Sample code:
+ *
+ * + `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}` +
+ * `organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
+ * + `folders/{folder_id}/sources/{source_id}/findings/{finding_id}` +
+ * `folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}` +
+ * `projects/{project_id}/sources/{source_id}/findings/{finding_id}` +
+ * `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
+ * @param state Required. The desired State of the finding.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Finding setFindingState(String name, Finding.State state) {
+ SetFindingStateRequest request =
+ SetFindingStateRequest.newBuilder().setName(name).setState(state).build();
+ return setFindingState(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the state of a finding. If no location is specified, finding is assumed to be in global
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * + `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}` +
+ * `organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
+ * + `folders/{folder_id}/sources/{source_id}/findings/{finding_id}` +
+ * `folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}` +
+ * `projects/{project_id}/sources/{source_id}/findings/{finding_id}` +
+ * `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
+ * @param mute Required. The desired state of the Mute.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Finding setMute(FindingName name, Finding.Mute mute) {
+ SetMuteRequest request =
+ SetMuteRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .setMute(mute)
+ .build();
+ return setMute(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the mute state of a finding. If no location is specified, finding is assumed to be in
+ * global
+ *
+ * Sample code:
+ *
+ * + `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}` +
+ * `organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
+ * + `folders/{folder_id}/sources/{source_id}/findings/{finding_id}` +
+ * `folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}` +
+ * `projects/{project_id}/sources/{source_id}/findings/{finding_id}` +
+ * `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
+ * @param mute Required. The desired state of the Mute.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Finding setMute(String name, Finding.Mute mute) {
+ SetMuteRequest request = SetMuteRequest.newBuilder().setName(name).setMute(mute).build();
+ return setMute(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the mute state of a finding. If no location is specified, finding is assumed to be in
+ * global
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * If empty all mutable fields will be updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ExternalSystem updateExternalSystem(
+ ExternalSystem externalSystem, FieldMask updateMask) {
+ UpdateExternalSystemRequest request =
+ UpdateExternalSystemRequest.newBuilder()
+ .setExternalSystem(externalSystem)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateExternalSystem(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates external system. This is for a given finding. If no location is specified, finding is
+ * assumed to be in global
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * In the case of creation, the finding id portion of the name must be alphanumeric and
+ * less than or equal to 32 characters and greater than 0 characters in length.
+ * @param updateMask The FieldMask to use when updating the finding resource. This field should
+ * not be specified when creating a finding.
+ * When updating a finding, an empty mask is treated as updating all mutable fields and
+ * replacing source_properties. Individual source_properties can be added/updated by using
+ * "source_properties.<property key>" in the field mask.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Finding updateFinding(Finding finding, FieldMask updateMask) {
+ UpdateFindingRequest request =
+ UpdateFindingRequest.newBuilder().setFinding(finding).setUpdateMask(updateMask).build();
+ return updateFinding(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates or updates a finding. If no location is specified, finding is assumed to be in global.
+ * The corresponding source must exist for a finding creation to succeed.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * If empty all mutable fields will be updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final NotificationConfig updateNotificationConfig(
+ NotificationConfig notificationConfig, FieldMask updateMask) {
+ UpdateNotificationConfigRequest request =
+ UpdateNotificationConfigRequest.newBuilder()
+ .setNotificationConfig(notificationConfig)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateNotificationConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a notification config. The following update fields are allowed: description,
+ * pubsub_topic, streaming_config.filter
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The field mask must not contain duplicate fields. If empty or set to "marks", all marks
+ * will be replaced. Individual marks can be updated using "marks.<mark_key>".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SecurityMarks updateSecurityMarks(
+ SecurityMarks securityMarks, FieldMask updateMask) {
+ UpdateSecurityMarksRequest request =
+ UpdateSecurityMarksRequest.newBuilder()
+ .setSecurityMarks(securityMarks)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateSecurityMarks(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates security marks. For Finding Security marks, if no location is specified, finding is
+ * assumed to be in global. Assets Security Marks can only be accessed through global endpoint.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * If empty all mutable fields will be updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Source updateSource(Source source, FieldMask updateMask) {
+ UpdateSourceRequest request =
+ UpdateSourceRequest.newBuilder().setSource(source).setUpdateMask(updateMask).build();
+ return updateSource(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a source.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the total timeout of batchCreateResourceValueConfigs to 30 seconds:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction The interfaces provided are listed below, along with usage samples.
+ *
+ * ======================= SecurityCenterClient =======================
+ *
+ * Service Description: V2 APIs for Security Center service.
+ *
+ * Sample for SecurityCenterClient:
+ *
+ * This class is for advanced usage.
+ */
+@Generated("by gapic-generator-java")
+public class GrpcSecurityCenterCallableFactory implements GrpcStubCallableFactory {
+
+ @Override
+ public {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+ * List
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SecurityCenterSettings securityCenterSettings =
+ * SecurityCenterSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SecurityCenterSettings securityCenterSettings =
+ * SecurityCenterSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SecurityCenterSettings securityCenterSettings =
+ * SecurityCenterSettings.newHttpJsonBuilder().build();
+ * SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+ * List
+ *
+ * @param parent Required. Resource name of the new ResourceValueConfig's parent. The parent field
+ * in the CreateResourceValueConfigRequest messages must either be empty or match this field.
+ * @param requests Required. The resource value configs to be created.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateResourceValueConfigsResponse batchCreateResourceValueConfigs(
+ OrganizationName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String parent = OrganizationName.of("[ORGANIZATION]").toString();
+ * List
+ *
+ * @param parent Required. Resource name of the new ResourceValueConfig's parent. The parent field
+ * in the CreateResourceValueConfigRequest messages must either be empty or match this field.
+ * @param requests Required. The resource value configs to be created.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateResourceValueConfigsResponse batchCreateResourceValueConfigs(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * BatchCreateResourceValueConfigsRequest request =
+ * BatchCreateResourceValueConfigsRequest.newBuilder()
+ * .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+ * .addAllRequests(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateResourceValueConfigsResponse batchCreateResourceValueConfigs(
+ BatchCreateResourceValueConfigsRequest request) {
+ return batchCreateResourceValueConfigsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource
+ * values for use by the attack path simulation.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * BatchCreateResourceValueConfigsRequest request =
+ * BatchCreateResourceValueConfigsRequest.newBuilder()
+ * .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchCreateResourceValueConfigsRequest, BatchCreateResourceValueConfigsResponse>
+ batchCreateResourceValueConfigsCallable() {
+ return stub.batchCreateResourceValueConfigsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Kicks off an LRO to bulk mute findings for a parent based on a filter. If no location is
+ * specified, findings are muted in global. The parent can be either an organization, folder, or
+ * project. The findings matched by the filter will be muted after the LRO is done.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ResourceName parent = FolderName.of("[FOLDER]");
+ * BulkMuteFindingsResponse response = securityCenterClient.bulkMuteFindingsAsync(parent).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent, at which bulk action needs to be applied. If no location is
+ * specified, findings are updated in global. The following list shows some examples:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String parent = FolderName.of("[FOLDER]").toString();
+ * BulkMuteFindingsResponse response = securityCenterClient.bulkMuteFindingsAsync(parent).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent, at which bulk action needs to be applied. If no location is
+ * specified, findings are updated in global. The following list shows some examples:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * BulkMuteFindingsRequest request =
+ * BulkMuteFindingsRequest.newBuilder()
+ * .setParent(FolderName.of("[FOLDER]").toString())
+ * .setFilter("filter-1274492040")
+ * .build();
+ * BulkMuteFindingsResponse response = securityCenterClient.bulkMuteFindingsAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * BulkMuteFindingsRequest request =
+ * BulkMuteFindingsRequest.newBuilder()
+ * .setParent(FolderName.of("[FOLDER]").toString())
+ * .setFilter("filter-1274492040")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * BulkMuteFindingsRequest request =
+ * BulkMuteFindingsRequest.newBuilder()
+ * .setParent(FolderName.of("[FOLDER]").toString())
+ * .setFilter("filter-1274492040")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
+ * BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build();
+ * String bigQueryExportId = "bigQueryExportId1024198583";
+ * BigQueryExport response =
+ * securityCenterClient.createBigQueryExport(parent, bigQueryExport, bigQueryExportId);
+ * }
+ * }
+ *
+ * @param parent Required. The name of the parent resource of the new BigQuery export. Its format
+ * is "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @param bigQueryExport Required. The BigQuery export being created.
+ * @param bigQueryExportId Required. Unique identifier provided by the client within the parent
+ * scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a
+ * letter, must end with either a letter or a number, and must be 63 characters or less.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BigQueryExport createBigQueryExport(
+ FolderLocationName parent, BigQueryExport bigQueryExport, String bigQueryExportId) {
+ CreateBigQueryExportRequest request =
+ CreateBigQueryExportRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setBigQueryExport(bigQueryExport)
+ .setBigQueryExportId(bigQueryExportId)
+ .build();
+ return createBigQueryExport(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a BigQuery export.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build();
+ * String bigQueryExportId = "bigQueryExportId1024198583";
+ * BigQueryExport response =
+ * securityCenterClient.createBigQueryExport(parent, bigQueryExport, bigQueryExportId);
+ * }
+ * }
+ *
+ * @param parent Required. The name of the parent resource of the new BigQuery export. Its format
+ * is "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @param bigQueryExport Required. The BigQuery export being created.
+ * @param bigQueryExportId Required. Unique identifier provided by the client within the parent
+ * scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a
+ * letter, must end with either a letter or a number, and must be 63 characters or less.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BigQueryExport createBigQueryExport(
+ LocationName parent, BigQueryExport bigQueryExport, String bigQueryExportId) {
+ CreateBigQueryExportRequest request =
+ CreateBigQueryExportRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setBigQueryExport(bigQueryExport)
+ .setBigQueryExportId(bigQueryExportId)
+ .build();
+ return createBigQueryExport(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a BigQuery export.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+ * BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build();
+ * String bigQueryExportId = "bigQueryExportId1024198583";
+ * BigQueryExport response =
+ * securityCenterClient.createBigQueryExport(parent, bigQueryExport, bigQueryExportId);
+ * }
+ * }
+ *
+ * @param parent Required. The name of the parent resource of the new BigQuery export. Its format
+ * is "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @param bigQueryExport Required. The BigQuery export being created.
+ * @param bigQueryExportId Required. Unique identifier provided by the client within the parent
+ * scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a
+ * letter, must end with either a letter or a number, and must be 63 characters or less.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BigQueryExport createBigQueryExport(
+ OrganizationLocationName parent, BigQueryExport bigQueryExport, String bigQueryExportId) {
+ CreateBigQueryExportRequest request =
+ CreateBigQueryExportRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setBigQueryExport(bigQueryExport)
+ .setBigQueryExportId(bigQueryExportId)
+ .build();
+ return createBigQueryExport(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a BigQuery export.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
+ * BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build();
+ * String bigQueryExportId = "bigQueryExportId1024198583";
+ * BigQueryExport response =
+ * securityCenterClient.createBigQueryExport(parent, bigQueryExport, bigQueryExportId);
+ * }
+ * }
+ *
+ * @param parent Required. The name of the parent resource of the new BigQuery export. Its format
+ * is "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @param bigQueryExport Required. The BigQuery export being created.
+ * @param bigQueryExportId Required. Unique identifier provided by the client within the parent
+ * scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a
+ * letter, must end with either a letter or a number, and must be 63 characters or less.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BigQueryExport createBigQueryExport(
+ String parent, BigQueryExport bigQueryExport, String bigQueryExportId) {
+ CreateBigQueryExportRequest request =
+ CreateBigQueryExportRequest.newBuilder()
+ .setParent(parent)
+ .setBigQueryExport(bigQueryExport)
+ .setBigQueryExportId(bigQueryExportId)
+ .build();
+ return createBigQueryExport(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a BigQuery export.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * CreateBigQueryExportRequest request =
+ * CreateBigQueryExportRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setBigQueryExport(BigQueryExport.newBuilder().build())
+ * .setBigQueryExportId("bigQueryExportId1024198583")
+ * .build();
+ * BigQueryExport response = securityCenterClient.createBigQueryExport(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BigQueryExport createBigQueryExport(CreateBigQueryExportRequest request) {
+ return createBigQueryExportCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a BigQuery export.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * CreateBigQueryExportRequest request =
+ * CreateBigQueryExportRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setBigQueryExport(BigQueryExport.newBuilder().build())
+ * .setBigQueryExportId("bigQueryExportId1024198583")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+ * Finding finding = Finding.newBuilder().build();
+ * String findingId = "findingId439150212";
+ * Finding response = securityCenterClient.createFinding(parent, finding, findingId);
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the new finding's parent. The following list shows
+ * some examples of the format: + `organizations/[organization_id]/sources/[source_id]` +
+ * `organizations/[organization_id]/sources/[source_id]/locations/[location_id]`
+ * @param finding Required. The Finding being created. The name and security_marks will be ignored
+ * as they are both output only fields on this resource.
+ * @param findingId Required. Unique identifier provided by the client within the parent scope. It
+ * must be alphanumeric and less than or equal to 32 characters and greater than 0 characters
+ * in length.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Finding createFinding(SourceName parent, Finding finding, String findingId) {
+ CreateFindingRequest request =
+ CreateFindingRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setFinding(finding)
+ .setFindingId(findingId)
+ .build();
+ return createFinding(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a finding in a location. The corresponding source must exist for finding creation to
+ * succeed.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString();
+ * Finding finding = Finding.newBuilder().build();
+ * String findingId = "findingId439150212";
+ * Finding response = securityCenterClient.createFinding(parent, finding, findingId);
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the new finding's parent. The following list shows
+ * some examples of the format: + `organizations/[organization_id]/sources/[source_id]` +
+ * `organizations/[organization_id]/sources/[source_id]/locations/[location_id]`
+ * @param finding Required. The Finding being created. The name and security_marks will be ignored
+ * as they are both output only fields on this resource.
+ * @param findingId Required. Unique identifier provided by the client within the parent scope. It
+ * must be alphanumeric and less than or equal to 32 characters and greater than 0 characters
+ * in length.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Finding createFinding(String parent, Finding finding, String findingId) {
+ CreateFindingRequest request =
+ CreateFindingRequest.newBuilder()
+ .setParent(parent)
+ .setFinding(finding)
+ .setFindingId(findingId)
+ .build();
+ return createFinding(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a finding in a location. The corresponding source must exist for finding creation to
+ * succeed.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * CreateFindingRequest request =
+ * CreateFindingRequest.newBuilder()
+ * .setParent(
+ * SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+ * .setFindingId("findingId439150212")
+ * .setFinding(Finding.newBuilder().build())
+ * .build();
+ * Finding response = securityCenterClient.createFinding(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Finding createFinding(CreateFindingRequest request) {
+ return createFindingCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a finding in a location. The corresponding source must exist for finding creation to
+ * succeed.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * CreateFindingRequest request =
+ * CreateFindingRequest.newBuilder()
+ * .setParent(
+ * SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+ * .setFindingId("findingId439150212")
+ * .setFinding(Finding.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
+ * MuteConfig muteConfig = MuteConfig.newBuilder().build();
+ * String muteConfigId = "muteConfigId1689669942";
+ * MuteConfig response = securityCenterClient.createMuteConfig(parent, muteConfig, muteConfigId);
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the new mute configs's parent. Its format is
+ * "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @param muteConfig Required. The mute config being created.
+ * @param muteConfigId Required. Unique identifier provided by the client within the parent scope.
+ * It must consist of only lowercase letters, numbers, and hyphens, must start with a letter,
+ * must end with either a letter or a number, and must be 63 characters or less.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MuteConfig createMuteConfig(
+ FolderLocationName parent, MuteConfig muteConfig, String muteConfigId) {
+ CreateMuteConfigRequest request =
+ CreateMuteConfigRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setMuteConfig(muteConfig)
+ .setMuteConfigId(muteConfigId)
+ .build();
+ return createMuteConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a mute config.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * FolderName parent = FolderName.of("[FOLDER]");
+ * MuteConfig muteConfig = MuteConfig.newBuilder().build();
+ * String muteConfigId = "muteConfigId1689669942";
+ * MuteConfig response = securityCenterClient.createMuteConfig(parent, muteConfig, muteConfigId);
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the new mute configs's parent. Its format is
+ * "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @param muteConfig Required. The mute config being created.
+ * @param muteConfigId Required. Unique identifier provided by the client within the parent scope.
+ * It must consist of only lowercase letters, numbers, and hyphens, must start with a letter,
+ * must end with either a letter or a number, and must be 63 characters or less.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MuteConfig createMuteConfig(
+ FolderName parent, MuteConfig muteConfig, String muteConfigId) {
+ CreateMuteConfigRequest request =
+ CreateMuteConfigRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setMuteConfig(muteConfig)
+ .setMuteConfigId(muteConfigId)
+ .build();
+ return createMuteConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a mute config.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * MuteConfig muteConfig = MuteConfig.newBuilder().build();
+ * String muteConfigId = "muteConfigId1689669942";
+ * MuteConfig response = securityCenterClient.createMuteConfig(parent, muteConfig, muteConfigId);
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the new mute configs's parent. Its format is
+ * "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @param muteConfig Required. The mute config being created.
+ * @param muteConfigId Required. Unique identifier provided by the client within the parent scope.
+ * It must consist of only lowercase letters, numbers, and hyphens, must start with a letter,
+ * must end with either a letter or a number, and must be 63 characters or less.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MuteConfig createMuteConfig(
+ LocationName parent, MuteConfig muteConfig, String muteConfigId) {
+ CreateMuteConfigRequest request =
+ CreateMuteConfigRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setMuteConfig(muteConfig)
+ .setMuteConfigId(muteConfigId)
+ .build();
+ return createMuteConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a mute config.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+ * MuteConfig muteConfig = MuteConfig.newBuilder().build();
+ * String muteConfigId = "muteConfigId1689669942";
+ * MuteConfig response = securityCenterClient.createMuteConfig(parent, muteConfig, muteConfigId);
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the new mute configs's parent. Its format is
+ * "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @param muteConfig Required. The mute config being created.
+ * @param muteConfigId Required. Unique identifier provided by the client within the parent scope.
+ * It must consist of only lowercase letters, numbers, and hyphens, must start with a letter,
+ * must end with either a letter or a number, and must be 63 characters or less.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MuteConfig createMuteConfig(
+ OrganizationLocationName parent, MuteConfig muteConfig, String muteConfigId) {
+ CreateMuteConfigRequest request =
+ CreateMuteConfigRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setMuteConfig(muteConfig)
+ .setMuteConfigId(muteConfigId)
+ .build();
+ return createMuteConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a mute config.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+ * MuteConfig muteConfig = MuteConfig.newBuilder().build();
+ * String muteConfigId = "muteConfigId1689669942";
+ * MuteConfig response = securityCenterClient.createMuteConfig(parent, muteConfig, muteConfigId);
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the new mute configs's parent. Its format is
+ * "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @param muteConfig Required. The mute config being created.
+ * @param muteConfigId Required. Unique identifier provided by the client within the parent scope.
+ * It must consist of only lowercase letters, numbers, and hyphens, must start with a letter,
+ * must end with either a letter or a number, and must be 63 characters or less.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MuteConfig createMuteConfig(
+ OrganizationName parent, MuteConfig muteConfig, String muteConfigId) {
+ CreateMuteConfigRequest request =
+ CreateMuteConfigRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setMuteConfig(muteConfig)
+ .setMuteConfigId(muteConfigId)
+ .build();
+ return createMuteConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a mute config.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ProjectName parent = ProjectName.of("[PROJECT]");
+ * MuteConfig muteConfig = MuteConfig.newBuilder().build();
+ * String muteConfigId = "muteConfigId1689669942";
+ * MuteConfig response = securityCenterClient.createMuteConfig(parent, muteConfig, muteConfigId);
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the new mute configs's parent. Its format is
+ * "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @param muteConfig Required. The mute config being created.
+ * @param muteConfigId Required. Unique identifier provided by the client within the parent scope.
+ * It must consist of only lowercase letters, numbers, and hyphens, must start with a letter,
+ * must end with either a letter or a number, and must be 63 characters or less.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MuteConfig createMuteConfig(
+ ProjectName parent, MuteConfig muteConfig, String muteConfigId) {
+ CreateMuteConfigRequest request =
+ CreateMuteConfigRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setMuteConfig(muteConfig)
+ .setMuteConfigId(muteConfigId)
+ .build();
+ return createMuteConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a mute config.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String parent = OrganizationName.of("[ORGANIZATION]").toString();
+ * MuteConfig muteConfig = MuteConfig.newBuilder().build();
+ * String muteConfigId = "muteConfigId1689669942";
+ * MuteConfig response = securityCenterClient.createMuteConfig(parent, muteConfig, muteConfigId);
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the new mute configs's parent. Its format is
+ * "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @param muteConfig Required. The mute config being created.
+ * @param muteConfigId Required. Unique identifier provided by the client within the parent scope.
+ * It must consist of only lowercase letters, numbers, and hyphens, must start with a letter,
+ * must end with either a letter or a number, and must be 63 characters or less.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MuteConfig createMuteConfig(
+ String parent, MuteConfig muteConfig, String muteConfigId) {
+ CreateMuteConfigRequest request =
+ CreateMuteConfigRequest.newBuilder()
+ .setParent(parent)
+ .setMuteConfig(muteConfig)
+ .setMuteConfigId(muteConfigId)
+ .build();
+ return createMuteConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a mute config.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * CreateMuteConfigRequest request =
+ * CreateMuteConfigRequest.newBuilder()
+ * .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+ * .setMuteConfig(MuteConfig.newBuilder().build())
+ * .setMuteConfigId("muteConfigId1689669942")
+ * .build();
+ * MuteConfig response = securityCenterClient.createMuteConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MuteConfig createMuteConfig(CreateMuteConfigRequest request) {
+ return createMuteConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a mute config.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * CreateMuteConfigRequest request =
+ * CreateMuteConfigRequest.newBuilder()
+ * .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+ * .setMuteConfig(MuteConfig.newBuilder().build())
+ * .setMuteConfigId("muteConfigId1689669942")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
+ * NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
+ * String configId = "configId-580140035";
+ * NotificationConfig response =
+ * securityCenterClient.createNotificationConfig(parent, notificationConfig, configId);
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the new notification config's parent. Its format is
+ * "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @param notificationConfig Required. The notification config being created. The name and the
+ * service account will be ignored as they are both output only fields on this resource.
+ * @param configId Required. Unique identifier provided by the client within the parent scope. It
+ * must be between 1 and 128 characters and contain alphanumeric characters, underscores, or
+ * hyphens only.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final NotificationConfig createNotificationConfig(
+ FolderLocationName parent, NotificationConfig notificationConfig, String configId) {
+ CreateNotificationConfigRequest request =
+ CreateNotificationConfigRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setNotificationConfig(notificationConfig)
+ .setConfigId(configId)
+ .build();
+ return createNotificationConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a notification config.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
+ * String configId = "configId-580140035";
+ * NotificationConfig response =
+ * securityCenterClient.createNotificationConfig(parent, notificationConfig, configId);
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the new notification config's parent. Its format is
+ * "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @param notificationConfig Required. The notification config being created. The name and the
+ * service account will be ignored as they are both output only fields on this resource.
+ * @param configId Required. Unique identifier provided by the client within the parent scope. It
+ * must be between 1 and 128 characters and contain alphanumeric characters, underscores, or
+ * hyphens only.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final NotificationConfig createNotificationConfig(
+ LocationName parent, NotificationConfig notificationConfig, String configId) {
+ CreateNotificationConfigRequest request =
+ CreateNotificationConfigRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setNotificationConfig(notificationConfig)
+ .setConfigId(configId)
+ .build();
+ return createNotificationConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a notification config.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+ * NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
+ * String configId = "configId-580140035";
+ * NotificationConfig response =
+ * securityCenterClient.createNotificationConfig(parent, notificationConfig, configId);
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the new notification config's parent. Its format is
+ * "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @param notificationConfig Required. The notification config being created. The name and the
+ * service account will be ignored as they are both output only fields on this resource.
+ * @param configId Required. Unique identifier provided by the client within the parent scope. It
+ * must be between 1 and 128 characters and contain alphanumeric characters, underscores, or
+ * hyphens only.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final NotificationConfig createNotificationConfig(
+ OrganizationLocationName parent, NotificationConfig notificationConfig, String configId) {
+ CreateNotificationConfigRequest request =
+ CreateNotificationConfigRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setNotificationConfig(notificationConfig)
+ .setConfigId(configId)
+ .build();
+ return createNotificationConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a notification config.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
+ * NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
+ * String configId = "configId-580140035";
+ * NotificationConfig response =
+ * securityCenterClient.createNotificationConfig(parent, notificationConfig, configId);
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the new notification config's parent. Its format is
+ * "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @param notificationConfig Required. The notification config being created. The name and the
+ * service account will be ignored as they are both output only fields on this resource.
+ * @param configId Required. Unique identifier provided by the client within the parent scope. It
+ * must be between 1 and 128 characters and contain alphanumeric characters, underscores, or
+ * hyphens only.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final NotificationConfig createNotificationConfig(
+ String parent, NotificationConfig notificationConfig, String configId) {
+ CreateNotificationConfigRequest request =
+ CreateNotificationConfigRequest.newBuilder()
+ .setParent(parent)
+ .setNotificationConfig(notificationConfig)
+ .setConfigId(configId)
+ .build();
+ return createNotificationConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a notification config.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * CreateNotificationConfigRequest request =
+ * CreateNotificationConfigRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setConfigId("configId-580140035")
+ * .setNotificationConfig(NotificationConfig.newBuilder().build())
+ * .build();
+ * NotificationConfig response = securityCenterClient.createNotificationConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final NotificationConfig createNotificationConfig(
+ CreateNotificationConfigRequest request) {
+ return createNotificationConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a notification config.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * CreateNotificationConfigRequest request =
+ * CreateNotificationConfigRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setConfigId("configId-580140035")
+ * .setNotificationConfig(NotificationConfig.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+ * Source source = Source.newBuilder().build();
+ * Source response = securityCenterClient.createSource(parent, source);
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the new source's parent. Its format should be
+ * "organizations/[organization_id]".
+ * @param source Required. The Source being created, only the display_name and description will be
+ * used. All other fields will be ignored.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Source createSource(OrganizationName parent, Source source) {
+ CreateSourceRequest request =
+ CreateSourceRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setSource(source)
+ .build();
+ return createSource(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a source.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String parent = OrganizationName.of("[ORGANIZATION]").toString();
+ * Source source = Source.newBuilder().build();
+ * Source response = securityCenterClient.createSource(parent, source);
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the new source's parent. Its format should be
+ * "organizations/[organization_id]".
+ * @param source Required. The Source being created, only the display_name and description will be
+ * used. All other fields will be ignored.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Source createSource(String parent, Source source) {
+ CreateSourceRequest request =
+ CreateSourceRequest.newBuilder().setParent(parent).setSource(source).build();
+ return createSource(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a source.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * CreateSourceRequest request =
+ * CreateSourceRequest.newBuilder()
+ * .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+ * .setSource(Source.newBuilder().build())
+ * .build();
+ * Source response = securityCenterClient.createSource(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Source createSource(CreateSourceRequest request) {
+ return createSourceCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a source.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * CreateSourceRequest request =
+ * CreateSourceRequest.newBuilder()
+ * .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+ * .setSource(Source.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * BigQueryExportName name =
+ * BigQueryExportName.ofOrganizationLocationExportName(
+ * "[ORGANIZATION]", "[LOCATION]", "[EXPORT]");
+ * securityCenterClient.deleteBigQueryExport(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the BigQuery export to delete. The following list shows some
+ * examples of the format:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String name =
+ * BigQueryExportName.ofOrganizationLocationExportName(
+ * "[ORGANIZATION]", "[LOCATION]", "[EXPORT]")
+ * .toString();
+ * securityCenterClient.deleteBigQueryExport(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the BigQuery export to delete. The following list shows some
+ * examples of the format:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * DeleteBigQueryExportRequest request =
+ * DeleteBigQueryExportRequest.newBuilder()
+ * .setName(
+ * BigQueryExportName.ofOrganizationLocationExportName(
+ * "[ORGANIZATION]", "[LOCATION]", "[EXPORT]")
+ * .toString())
+ * .build();
+ * securityCenterClient.deleteBigQueryExport(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteBigQueryExport(DeleteBigQueryExportRequest request) {
+ deleteBigQueryExportCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes an existing BigQuery export.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * DeleteBigQueryExportRequest request =
+ * DeleteBigQueryExportRequest.newBuilder()
+ * .setName(
+ * BigQueryExportName.ofOrganizationLocationExportName(
+ * "[ORGANIZATION]", "[LOCATION]", "[EXPORT]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * MuteConfigName name =
+ * MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]");
+ * securityCenterClient.deleteMuteConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the mute config to delete. The following list shows some examples
+ * of the format:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String name =
+ * MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]").toString();
+ * securityCenterClient.deleteMuteConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the mute config to delete. The following list shows some examples
+ * of the format:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * DeleteMuteConfigRequest request =
+ * DeleteMuteConfigRequest.newBuilder()
+ * .setName(
+ * MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]")
+ * .toString())
+ * .build();
+ * securityCenterClient.deleteMuteConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteMuteConfig(DeleteMuteConfigRequest request) {
+ deleteMuteConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes an existing mute config. If no location is specified, default is global.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * DeleteMuteConfigRequest request =
+ * DeleteMuteConfigRequest.newBuilder()
+ * .setName(
+ * MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * NotificationConfigName name =
+ * NotificationConfigName.ofOrganizationLocationNotificationConfigName(
+ * "[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]");
+ * securityCenterClient.deleteNotificationConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the notification config to delete. The following list shows some
+ * examples of the format:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String name =
+ * NotificationConfigName.ofOrganizationLocationNotificationConfigName(
+ * "[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]")
+ * .toString();
+ * securityCenterClient.deleteNotificationConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the notification config to delete. The following list shows some
+ * examples of the format:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * DeleteNotificationConfigRequest request =
+ * DeleteNotificationConfigRequest.newBuilder()
+ * .setName(
+ * NotificationConfigName.ofOrganizationLocationNotificationConfigName(
+ * "[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]")
+ * .toString())
+ * .build();
+ * securityCenterClient.deleteNotificationConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteNotificationConfig(DeleteNotificationConfigRequest request) {
+ deleteNotificationConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a notification config.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * DeleteNotificationConfigRequest request =
+ * DeleteNotificationConfigRequest.newBuilder()
+ * .setName(
+ * NotificationConfigName.ofOrganizationLocationNotificationConfigName(
+ * "[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ResourceValueConfigName name =
+ * ResourceValueConfigName.of("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]");
+ * securityCenterClient.deleteResourceValueConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the ResourceValueConfig to delete
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteResourceValueConfig(ResourceValueConfigName name) {
+ DeleteResourceValueConfigRequest request =
+ DeleteResourceValueConfigRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteResourceValueConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a ResourceValueConfig.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String name =
+ * ResourceValueConfigName.of("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]").toString();
+ * securityCenterClient.deleteResourceValueConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the ResourceValueConfig to delete
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteResourceValueConfig(String name) {
+ DeleteResourceValueConfigRequest request =
+ DeleteResourceValueConfigRequest.newBuilder().setName(name).build();
+ deleteResourceValueConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a ResourceValueConfig.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * DeleteResourceValueConfigRequest request =
+ * DeleteResourceValueConfigRequest.newBuilder()
+ * .setName(
+ * ResourceValueConfigName.of("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]")
+ * .toString())
+ * .build();
+ * securityCenterClient.deleteResourceValueConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteResourceValueConfig(DeleteResourceValueConfigRequest request) {
+ deleteResourceValueConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a ResourceValueConfig.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * DeleteResourceValueConfigRequest request =
+ * DeleteResourceValueConfigRequest.newBuilder()
+ * .setName(
+ * ResourceValueConfigName.of("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * BigQueryExportName name =
+ * BigQueryExportName.ofOrganizationLocationExportName(
+ * "[ORGANIZATION]", "[LOCATION]", "[EXPORT]");
+ * BigQueryExport response = securityCenterClient.getBigQueryExport(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the BigQuery export to retrieve. The following list shows some
+ * examples of the format:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String name =
+ * BigQueryExportName.ofOrganizationLocationExportName(
+ * "[ORGANIZATION]", "[LOCATION]", "[EXPORT]")
+ * .toString();
+ * BigQueryExport response = securityCenterClient.getBigQueryExport(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the BigQuery export to retrieve. The following list shows some
+ * examples of the format:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GetBigQueryExportRequest request =
+ * GetBigQueryExportRequest.newBuilder()
+ * .setName(
+ * BigQueryExportName.ofOrganizationLocationExportName(
+ * "[ORGANIZATION]", "[LOCATION]", "[EXPORT]")
+ * .toString())
+ * .build();
+ * BigQueryExport response = securityCenterClient.getBigQueryExport(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BigQueryExport getBigQueryExport(GetBigQueryExportRequest request) {
+ return getBigQueryExportCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a BigQuery export.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GetBigQueryExportRequest request =
+ * GetBigQueryExportRequest.newBuilder()
+ * .setName(
+ * BigQueryExportName.ofOrganizationLocationExportName(
+ * "[ORGANIZATION]", "[LOCATION]", "[EXPORT]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * SimulationName name = SimulationName.of("[ORGANIZATION]", "[SIMULATION]");
+ * Simulation response = securityCenterClient.getSimulation(name);
+ * }
+ * }
+ *
+ * @param name Required. The organization name or simulation name of this simulation
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String name = SimulationName.of("[ORGANIZATION]", "[SIMULATION]").toString();
+ * Simulation response = securityCenterClient.getSimulation(name);
+ * }
+ * }
+ *
+ * @param name Required. The organization name or simulation name of this simulation
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GetSimulationRequest request =
+ * GetSimulationRequest.newBuilder()
+ * .setName(SimulationName.of("[ORGANIZATION]", "[SIMULATION]").toString())
+ * .build();
+ * Simulation response = securityCenterClient.getSimulation(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Simulation getSimulation(GetSimulationRequest request) {
+ return getSimulationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get the simulation by name or the latest simulation for the given organization.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GetSimulationRequest request =
+ * GetSimulationRequest.newBuilder()
+ * .setName(SimulationName.of("[ORGANIZATION]", "[SIMULATION]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ValuedResourceName name =
+ * ValuedResourceName.of("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]");
+ * ValuedResource response = securityCenterClient.getValuedResource(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of this valued resource
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String name =
+ * ValuedResourceName.of("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]").toString();
+ * ValuedResource response = securityCenterClient.getValuedResource(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of this valued resource
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GetValuedResourceRequest request =
+ * GetValuedResourceRequest.newBuilder()
+ * .setName(
+ * ValuedResourceName.of("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]")
+ * .toString())
+ * .build();
+ * ValuedResource response = securityCenterClient.getValuedResource(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ValuedResource getValuedResource(GetValuedResourceRequest request) {
+ return getValuedResourceCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get the valued resource by name
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GetValuedResourceRequest request =
+ * GetValuedResourceRequest.newBuilder()
+ * .setName(
+ * ValuedResourceName.of("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+ * Policy response = securityCenterClient.getIamPolicy(resource);
+ * }
+ * }
+ *
+ * @param resource REQUIRED: The resource for which the policy is being requested. See the
+ * operation documentation for the appropriate value for this field.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy getIamPolicy(ResourceName resource) {
+ GetIamPolicyRequest request =
+ GetIamPolicyRequest.newBuilder()
+ .setResource(resource == null ? null : resource.toString())
+ .build();
+ return getIamPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the access control policy on the specified Source.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String resource = FolderName.of("[FOLDER]").toString();
+ * Policy response = securityCenterClient.getIamPolicy(resource);
+ * }
+ * }
+ *
+ * @param resource REQUIRED: The resource for which the policy is being requested. See the
+ * operation documentation for the appropriate value for this field.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy getIamPolicy(String resource) {
+ GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build();
+ return getIamPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the access control policy on the specified Source.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+ * .setOptions(GetPolicyOptions.newBuilder().build())
+ * .build();
+ * Policy response = securityCenterClient.getIamPolicy(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy getIamPolicy(GetIamPolicyRequest request) {
+ return getIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the access control policy on the specified Source.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+ * .setOptions(GetPolicyOptions.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * MuteConfigName name =
+ * MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]");
+ * MuteConfig response = securityCenterClient.getMuteConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the mute config to retrieve. The following list shows some
+ * examples of the format:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String name =
+ * MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]").toString();
+ * MuteConfig response = securityCenterClient.getMuteConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the mute config to retrieve. The following list shows some
+ * examples of the format:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GetMuteConfigRequest request =
+ * GetMuteConfigRequest.newBuilder()
+ * .setName(
+ * MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]")
+ * .toString())
+ * .build();
+ * MuteConfig response = securityCenterClient.getMuteConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MuteConfig getMuteConfig(GetMuteConfigRequest request) {
+ return getMuteConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a mute config. If no location is specified, default is global.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GetMuteConfigRequest request =
+ * GetMuteConfigRequest.newBuilder()
+ * .setName(
+ * MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * NotificationConfigName name =
+ * NotificationConfigName.ofOrganizationLocationNotificationConfigName(
+ * "[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]");
+ * NotificationConfig response = securityCenterClient.getNotificationConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the notification config to get. The following list shows some
+ * examples of the format:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String name =
+ * NotificationConfigName.ofOrganizationLocationNotificationConfigName(
+ * "[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]")
+ * .toString();
+ * NotificationConfig response = securityCenterClient.getNotificationConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the notification config to get. The following list shows some
+ * examples of the format:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GetNotificationConfigRequest request =
+ * GetNotificationConfigRequest.newBuilder()
+ * .setName(
+ * NotificationConfigName.ofOrganizationLocationNotificationConfigName(
+ * "[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]")
+ * .toString())
+ * .build();
+ * NotificationConfig response = securityCenterClient.getNotificationConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final NotificationConfig getNotificationConfig(GetNotificationConfigRequest request) {
+ return getNotificationConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a notification config.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GetNotificationConfigRequest request =
+ * GetNotificationConfigRequest.newBuilder()
+ * .setName(
+ * NotificationConfigName.ofOrganizationLocationNotificationConfigName(
+ * "[ORGANIZATION]", "[LOCATION]", "[NOTIFICATION_CONFIG]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ResourceValueConfigName name =
+ * ResourceValueConfigName.of("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]");
+ * ResourceValueConfig response = securityCenterClient.getResourceValueConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource value config to retrieve. Its format is
+ * organizations/{organization}/resourceValueConfigs/{config_id}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ResourceValueConfig getResourceValueConfig(ResourceValueConfigName name) {
+ GetResourceValueConfigRequest request =
+ GetResourceValueConfigRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getResourceValueConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a ResourceValueConfig.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String name =
+ * ResourceValueConfigName.of("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]").toString();
+ * ResourceValueConfig response = securityCenterClient.getResourceValueConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource value config to retrieve. Its format is
+ * organizations/{organization}/resourceValueConfigs/{config_id}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ResourceValueConfig getResourceValueConfig(String name) {
+ GetResourceValueConfigRequest request =
+ GetResourceValueConfigRequest.newBuilder().setName(name).build();
+ return getResourceValueConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a ResourceValueConfig.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GetResourceValueConfigRequest request =
+ * GetResourceValueConfigRequest.newBuilder()
+ * .setName(
+ * ResourceValueConfigName.of("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]")
+ * .toString())
+ * .build();
+ * ResourceValueConfig response = securityCenterClient.getResourceValueConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ResourceValueConfig getResourceValueConfig(GetResourceValueConfigRequest request) {
+ return getResourceValueConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a ResourceValueConfig.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GetResourceValueConfigRequest request =
+ * GetResourceValueConfigRequest.newBuilder()
+ * .setName(
+ * ResourceValueConfigName.of("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * SourceName name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+ * Source response = securityCenterClient.getSource(name);
+ * }
+ * }
+ *
+ * @param name Required. Relative resource name of the source. Its format is
+ * "organizations/[organization_id]/source/[source_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Source getSource(SourceName name) {
+ GetSourceRequest request =
+ GetSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getSource(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a source.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString();
+ * Source response = securityCenterClient.getSource(name);
+ * }
+ * }
+ *
+ * @param name Required. Relative resource name of the source. Its format is
+ * "organizations/[organization_id]/source/[source_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Source getSource(String name) {
+ GetSourceRequest request = GetSourceRequest.newBuilder().setName(name).build();
+ return getSource(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a source.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GetSourceRequest request =
+ * GetSourceRequest.newBuilder()
+ * .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+ * .build();
+ * Source response = securityCenterClient.getSource(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Source getSource(GetSourceRequest request) {
+ return getSourceCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a source.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GetSourceRequest request =
+ * GetSourceRequest.newBuilder()
+ * .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+ * String groupBy = "groupBy293428022";
+ * for (GroupResult element : securityCenterClient.groupFindings(parent, groupBy).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Name of the source to groupBy. If no location is specified, finding is
+ * assumed to be in global. The following list shows some examples:
+ *
+ *
+ *
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GroupFindingsPagedResponse groupFindings(SourceName parent, String groupBy) {
+ GroupFindingsRequest request =
+ GroupFindingsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setGroupBy(groupBy)
+ .build();
+ return groupFindings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Filters an organization or source's findings and groups them by their specified properties in a
+ * location. If no location is specified, findings are assumed to be in global
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString();
+ * String groupBy = "groupBy293428022";
+ * for (GroupResult element : securityCenterClient.groupFindings(parent, groupBy).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Name of the source to groupBy. If no location is specified, finding is
+ * assumed to be in global. The following list shows some examples:
+ *
+ *
+ *
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GroupFindingsPagedResponse groupFindings(String parent, String groupBy) {
+ GroupFindingsRequest request =
+ GroupFindingsRequest.newBuilder().setParent(parent).setGroupBy(groupBy).build();
+ return groupFindings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Filters an organization or source's findings and groups them by their specified properties in a
+ * location. If no location is specified, findings are assumed to be in global
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GroupFindingsRequest request =
+ * GroupFindingsRequest.newBuilder()
+ * .setParent(
+ * SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+ * .setFilter("filter-1274492040")
+ * .setGroupBy("groupBy293428022")
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * for (GroupResult element : securityCenterClient.groupFindings(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GroupFindingsPagedResponse groupFindings(GroupFindingsRequest request) {
+ return groupFindingsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Filters an organization or source's findings and groups them by their specified properties in a
+ * location. If no location is specified, findings are assumed to be in global
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GroupFindingsRequest request =
+ * GroupFindingsRequest.newBuilder()
+ * .setParent(
+ * SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+ * .setFilter("filter-1274492040")
+ * .setGroupBy("groupBy293428022")
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * GroupFindingsRequest request =
+ * GroupFindingsRequest.newBuilder()
+ * .setParent(
+ * SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+ * .setFilter("filter-1274492040")
+ * .setGroupBy("groupBy293428022")
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * while (true) {
+ * GroupFindingsResponse response = securityCenterClient.groupFindingsCallable().call(request);
+ * for (GroupResult element : response.getGroupByResultsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ValuedResourceName parent =
+ * ValuedResourceName.of("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]");
+ * for (AttackPath element : securityCenterClient.listAttackPaths(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Name of parent to list attack paths.
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String parent =
+ * ValuedResourceName.of("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]").toString();
+ * for (AttackPath element : securityCenterClient.listAttackPaths(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Name of parent to list attack paths.
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListAttackPathsRequest request =
+ * ListAttackPathsRequest.newBuilder()
+ * .setParent(
+ * ValuedResourceName.of("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * for (AttackPath element : securityCenterClient.listAttackPaths(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAttackPathsPagedResponse listAttackPaths(ListAttackPathsRequest request) {
+ return listAttackPathsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the attack paths for a set of simulation results or valued resources and filter.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListAttackPathsRequest request =
+ * ListAttackPathsRequest.newBuilder()
+ * .setParent(
+ * ValuedResourceName.of("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListAttackPathsRequest request =
+ * ListAttackPathsRequest.newBuilder()
+ * .setParent(
+ * ValuedResourceName.of("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * while (true) {
+ * ListAttackPathsResponse response =
+ * securityCenterClient.listAttackPathsCallable().call(request);
+ * for (AttackPath element : response.getAttackPathsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
+ * for (BigQueryExport element : securityCenterClient.listBigQueryExports(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns the collection of BigQuery exports. Its format
+ * is "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBigQueryExportsPagedResponse listBigQueryExports(FolderLocationName parent) {
+ ListBigQueryExportsRequest request =
+ ListBigQueryExportsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listBigQueryExports(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports
+ * under that level are also returned e.g. if requesting BigQuery exports under a folder, then all
+ * BigQuery exports immediately under the folder plus the ones created under the projects within
+ * the folder are returned.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (BigQueryExport element : securityCenterClient.listBigQueryExports(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns the collection of BigQuery exports. Its format
+ * is "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBigQueryExportsPagedResponse listBigQueryExports(LocationName parent) {
+ ListBigQueryExportsRequest request =
+ ListBigQueryExportsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listBigQueryExports(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports
+ * under that level are also returned e.g. if requesting BigQuery exports under a folder, then all
+ * BigQuery exports immediately under the folder plus the ones created under the projects within
+ * the folder are returned.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+ * for (BigQueryExport element : securityCenterClient.listBigQueryExports(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns the collection of BigQuery exports. Its format
+ * is "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBigQueryExportsPagedResponse listBigQueryExports(
+ OrganizationLocationName parent) {
+ ListBigQueryExportsRequest request =
+ ListBigQueryExportsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listBigQueryExports(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports
+ * under that level are also returned e.g. if requesting BigQuery exports under a folder, then all
+ * BigQuery exports immediately under the folder plus the ones created under the projects within
+ * the folder are returned.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
+ * for (BigQueryExport element : securityCenterClient.listBigQueryExports(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns the collection of BigQuery exports. Its format
+ * is "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBigQueryExportsPagedResponse listBigQueryExports(String parent) {
+ ListBigQueryExportsRequest request =
+ ListBigQueryExportsRequest.newBuilder().setParent(parent).build();
+ return listBigQueryExports(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports
+ * under that level are also returned e.g. if requesting BigQuery exports under a folder, then all
+ * BigQuery exports immediately under the folder plus the ones created under the projects within
+ * the folder are returned.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListBigQueryExportsRequest request =
+ * ListBigQueryExportsRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (BigQueryExport element :
+ * securityCenterClient.listBigQueryExports(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBigQueryExportsPagedResponse listBigQueryExports(
+ ListBigQueryExportsRequest request) {
+ return listBigQueryExportsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports
+ * under that level are also returned e.g. if requesting BigQuery exports under a folder, then all
+ * BigQuery exports immediately under the folder plus the ones created under the projects within
+ * the folder are returned.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListBigQueryExportsRequest request =
+ * ListBigQueryExportsRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListBigQueryExportsRequest request =
+ * ListBigQueryExportsRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListBigQueryExportsResponse response =
+ * securityCenterClient.listBigQueryExportsCallable().call(request);
+ * for (BigQueryExport element : response.getBigQueryExportsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+ * for (ListFindingsResponse.ListFindingsResult element :
+ * securityCenterClient.listFindings(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Name of the source the findings belong to. If no location is specified,
+ * the default is global. The following list shows some examples:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString();
+ * for (ListFindingsResponse.ListFindingsResult element :
+ * securityCenterClient.listFindings(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Name of the source the findings belong to. If no location is specified,
+ * the default is global. The following list shows some examples:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListFindingsRequest request =
+ * ListFindingsRequest.newBuilder()
+ * .setParent(
+ * SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setFieldMask(FieldMask.newBuilder().build())
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * for (ListFindingsResponse.ListFindingsResult element :
+ * securityCenterClient.listFindings(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) {
+ return listFindingsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists an organization or source's findings.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListFindingsRequest request =
+ * ListFindingsRequest.newBuilder()
+ * .setParent(
+ * SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setFieldMask(FieldMask.newBuilder().build())
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListFindingsRequest request =
+ * ListFindingsRequest.newBuilder()
+ * .setParent(
+ * SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setFieldMask(FieldMask.newBuilder().build())
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * while (true) {
+ * ListFindingsResponse response = securityCenterClient.listFindingsCallable().call(request);
+ * for (ListFindingsResponse.ListFindingsResult element :
+ * response.getListFindingsResultsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
+ * for (MuteConfig element : securityCenterClient.listMuteConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns the collection of mute configs. Its format is
+ * "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]",
+ * "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]",
+ * "projects/[project_id]/locations/[location_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMuteConfigsPagedResponse listMuteConfigs(FolderLocationName parent) {
+ ListMuteConfigsRequest request =
+ ListMuteConfigsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listMuteConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists mute configs. If no location is specified, default is global.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * FolderName parent = FolderName.of("[FOLDER]");
+ * for (MuteConfig element : securityCenterClient.listMuteConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns the collection of mute configs. Its format is
+ * "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]",
+ * "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]",
+ * "projects/[project_id]/locations/[location_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMuteConfigsPagedResponse listMuteConfigs(FolderName parent) {
+ ListMuteConfigsRequest request =
+ ListMuteConfigsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listMuteConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists mute configs. If no location is specified, default is global.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (MuteConfig element : securityCenterClient.listMuteConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns the collection of mute configs. Its format is
+ * "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]",
+ * "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]",
+ * "projects/[project_id]/locations/[location_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMuteConfigsPagedResponse listMuteConfigs(LocationName parent) {
+ ListMuteConfigsRequest request =
+ ListMuteConfigsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listMuteConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists mute configs. If no location is specified, default is global.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+ * for (MuteConfig element : securityCenterClient.listMuteConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns the collection of mute configs. Its format is
+ * "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]",
+ * "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]",
+ * "projects/[project_id]/locations/[location_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMuteConfigsPagedResponse listMuteConfigs(OrganizationLocationName parent) {
+ ListMuteConfigsRequest request =
+ ListMuteConfigsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listMuteConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists mute configs. If no location is specified, default is global.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+ * for (MuteConfig element : securityCenterClient.listMuteConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns the collection of mute configs. Its format is
+ * "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]",
+ * "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]",
+ * "projects/[project_id]/locations/[location_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMuteConfigsPagedResponse listMuteConfigs(OrganizationName parent) {
+ ListMuteConfigsRequest request =
+ ListMuteConfigsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listMuteConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists mute configs. If no location is specified, default is global.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ProjectName parent = ProjectName.of("[PROJECT]");
+ * for (MuteConfig element : securityCenterClient.listMuteConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns the collection of mute configs. Its format is
+ * "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]",
+ * "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]",
+ * "projects/[project_id]/locations/[location_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMuteConfigsPagedResponse listMuteConfigs(ProjectName parent) {
+ ListMuteConfigsRequest request =
+ ListMuteConfigsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listMuteConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists mute configs. If no location is specified, default is global.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String parent = OrganizationName.of("[ORGANIZATION]").toString();
+ * for (MuteConfig element : securityCenterClient.listMuteConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns the collection of mute configs. Its format is
+ * "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]",
+ * "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]",
+ * "projects/[project_id]/locations/[location_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMuteConfigsPagedResponse listMuteConfigs(String parent) {
+ ListMuteConfigsRequest request = ListMuteConfigsRequest.newBuilder().setParent(parent).build();
+ return listMuteConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists mute configs. If no location is specified, default is global.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListMuteConfigsRequest request =
+ * ListMuteConfigsRequest.newBuilder()
+ * .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (MuteConfig element : securityCenterClient.listMuteConfigs(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMuteConfigsPagedResponse listMuteConfigs(ListMuteConfigsRequest request) {
+ return listMuteConfigsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists mute configs. If no location is specified, default is global.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListMuteConfigsRequest request =
+ * ListMuteConfigsRequest.newBuilder()
+ * .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListMuteConfigsRequest request =
+ * ListMuteConfigsRequest.newBuilder()
+ * .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListMuteConfigsResponse response =
+ * securityCenterClient.listMuteConfigsCallable().call(request);
+ * for (MuteConfig element : response.getMuteConfigsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
+ * for (NotificationConfig element :
+ * securityCenterClient.listNotificationConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The name of the parent in which to list the notification
+ * configurations. Its format is "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListNotificationConfigsPagedResponse listNotificationConfigs(
+ FolderLocationName parent) {
+ ListNotificationConfigsRequest request =
+ ListNotificationConfigsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listNotificationConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists notification configs.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (NotificationConfig element :
+ * securityCenterClient.listNotificationConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The name of the parent in which to list the notification
+ * configurations. Its format is "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListNotificationConfigsPagedResponse listNotificationConfigs(LocationName parent) {
+ ListNotificationConfigsRequest request =
+ ListNotificationConfigsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listNotificationConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists notification configs.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+ * for (NotificationConfig element :
+ * securityCenterClient.listNotificationConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The name of the parent in which to list the notification
+ * configurations. Its format is "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListNotificationConfigsPagedResponse listNotificationConfigs(
+ OrganizationLocationName parent) {
+ ListNotificationConfigsRequest request =
+ ListNotificationConfigsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listNotificationConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists notification configs.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
+ * for (NotificationConfig element :
+ * securityCenterClient.listNotificationConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The name of the parent in which to list the notification
+ * configurations. Its format is "organizations/[organization_id]/locations/[location_id]",
+ * "folders/[folder_id]/locations/[location_id]", or
+ * "projects/[project_id]/locations/[location_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListNotificationConfigsPagedResponse listNotificationConfigs(String parent) {
+ ListNotificationConfigsRequest request =
+ ListNotificationConfigsRequest.newBuilder().setParent(parent).build();
+ return listNotificationConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists notification configs.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListNotificationConfigsRequest request =
+ * ListNotificationConfigsRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * for (NotificationConfig element :
+ * securityCenterClient.listNotificationConfigs(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListNotificationConfigsPagedResponse listNotificationConfigs(
+ ListNotificationConfigsRequest request) {
+ return listNotificationConfigsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists notification configs.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListNotificationConfigsRequest request =
+ * ListNotificationConfigsRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListNotificationConfigsRequest request =
+ * ListNotificationConfigsRequest.newBuilder()
+ * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * while (true) {
+ * ListNotificationConfigsResponse response =
+ * securityCenterClient.listNotificationConfigsCallable().call(request);
+ * for (NotificationConfig element : response.getNotificationConfigsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+ * for (ResourceValueConfig element :
+ * securityCenterClient.listResourceValueConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns the collection of resource value configs. Its
+ * format is "organizations/[organization_id]"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListResourceValueConfigsPagedResponse listResourceValueConfigs(
+ OrganizationName parent) {
+ ListResourceValueConfigsRequest request =
+ ListResourceValueConfigsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listResourceValueConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all ResourceValueConfigs.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String parent = OrganizationName.of("[ORGANIZATION]").toString();
+ * for (ResourceValueConfig element :
+ * securityCenterClient.listResourceValueConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns the collection of resource value configs. Its
+ * format is "organizations/[organization_id]"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListResourceValueConfigsPagedResponse listResourceValueConfigs(String parent) {
+ ListResourceValueConfigsRequest request =
+ ListResourceValueConfigsRequest.newBuilder().setParent(parent).build();
+ return listResourceValueConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all ResourceValueConfigs.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListResourceValueConfigsRequest request =
+ * ListResourceValueConfigsRequest.newBuilder()
+ * .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (ResourceValueConfig element :
+ * securityCenterClient.listResourceValueConfigs(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListResourceValueConfigsPagedResponse listResourceValueConfigs(
+ ListResourceValueConfigsRequest request) {
+ return listResourceValueConfigsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all ResourceValueConfigs.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListResourceValueConfigsRequest request =
+ * ListResourceValueConfigsRequest.newBuilder()
+ * .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListResourceValueConfigsRequest request =
+ * ListResourceValueConfigsRequest.newBuilder()
+ * .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListResourceValueConfigsResponse response =
+ * securityCenterClient.listResourceValueConfigsCallable().call(request);
+ * for (ResourceValueConfig element : response.getResourceValueConfigsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * FolderName parent = FolderName.of("[FOLDER]");
+ * for (Source element : securityCenterClient.listSources(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the parent of sources to list. Its format should be
+ * "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListSourcesPagedResponse listSources(FolderName parent) {
+ ListSourcesRequest request =
+ ListSourcesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listSources(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all sources belonging to an organization.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+ * for (Source element : securityCenterClient.listSources(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the parent of sources to list. Its format should be
+ * "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListSourcesPagedResponse listSources(OrganizationName parent) {
+ ListSourcesRequest request =
+ ListSourcesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listSources(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all sources belonging to an organization.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ProjectName parent = ProjectName.of("[PROJECT]");
+ * for (Source element : securityCenterClient.listSources(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the parent of sources to list. Its format should be
+ * "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListSourcesPagedResponse listSources(ProjectName parent) {
+ ListSourcesRequest request =
+ ListSourcesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listSources(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all sources belonging to an organization.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String parent = OrganizationName.of("[ORGANIZATION]").toString();
+ * for (Source element : securityCenterClient.listSources(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the parent of sources to list. Its format should be
+ * "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListSourcesPagedResponse listSources(String parent) {
+ ListSourcesRequest request = ListSourcesRequest.newBuilder().setParent(parent).build();
+ return listSources(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all sources belonging to an organization.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListSourcesRequest request =
+ * ListSourcesRequest.newBuilder()
+ * .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * for (Source element : securityCenterClient.listSources(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListSourcesPagedResponse listSources(ListSourcesRequest request) {
+ return listSourcesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all sources belonging to an organization.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListSourcesRequest request =
+ * ListSourcesRequest.newBuilder()
+ * .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListSourcesRequest request =
+ * ListSourcesRequest.newBuilder()
+ * .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * while (true) {
+ * ListSourcesResponse response = securityCenterClient.listSourcesCallable().call(request);
+ * for (Source element : response.getSourcesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * SimulationName parent = SimulationName.of("[ORGANIZATION]", "[SIMULATION]");
+ * for (ValuedResource element : securityCenterClient.listValuedResources(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Name of parent to list exposed resources.
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String parent = SimulationName.of("[ORGANIZATION]", "[SIMULATION]").toString();
+ * for (ValuedResource element : securityCenterClient.listValuedResources(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Name of parent to list exposed resources.
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListValuedResourcesRequest request =
+ * ListValuedResourcesRequest.newBuilder()
+ * .setParent(SimulationName.of("[ORGANIZATION]", "[SIMULATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (ValuedResource element :
+ * securityCenterClient.listValuedResources(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListValuedResourcesPagedResponse listValuedResources(
+ ListValuedResourcesRequest request) {
+ return listValuedResourcesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the valued resources for a set of simulation results and filter.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListValuedResourcesRequest request =
+ * ListValuedResourcesRequest.newBuilder()
+ * .setParent(SimulationName.of("[ORGANIZATION]", "[SIMULATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ListValuedResourcesRequest request =
+ * ListValuedResourcesRequest.newBuilder()
+ * .setParent(SimulationName.of("[ORGANIZATION]", "[SIMULATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListValuedResourcesResponse response =
+ * securityCenterClient.listValuedResourcesCallable().call(request);
+ * for (ValuedResource element : response.getValuedResourcesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * FindingName name =
+ * FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
+ * Finding.State state = Finding.State.forNumber(0);
+ * Finding response = securityCenterClient.setFindingState(name, state);
+ * }
+ * }
+ *
+ * @param name Required. The [relative resource
+ * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) of the
+ * finding. If no location is specified, finding is assumed to be in global. The following
+ * list shows some examples:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String name =
+ * FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]")
+ * .toString();
+ * Finding.State state = Finding.State.forNumber(0);
+ * Finding response = securityCenterClient.setFindingState(name, state);
+ * }
+ * }
+ *
+ * @param name Required. The [relative resource
+ * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) of the
+ * finding. If no location is specified, finding is assumed to be in global. The following
+ * list shows some examples:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * SetFindingStateRequest request =
+ * SetFindingStateRequest.newBuilder()
+ * .setName(
+ * FindingName.ofOrganizationSourceFindingName(
+ * "[ORGANIZATION]", "[SOURCE]", "[FINDING]")
+ * .toString())
+ * .build();
+ * Finding response = securityCenterClient.setFindingState(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Finding setFindingState(SetFindingStateRequest request) {
+ return setFindingStateCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the state of a finding. If no location is specified, finding is assumed to be in global
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * SetFindingStateRequest request =
+ * SetFindingStateRequest.newBuilder()
+ * .setName(
+ * FindingName.ofOrganizationSourceFindingName(
+ * "[ORGANIZATION]", "[SOURCE]", "[FINDING]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+ * Policy policy = Policy.newBuilder().build();
+ * Policy response = securityCenterClient.setIamPolicy(resource, policy);
+ * }
+ * }
+ *
+ * @param resource REQUIRED: The resource for which the policy is being specified. See the
+ * operation documentation for the appropriate value for this field.
+ * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the
+ * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud
+ * Platform services (such as Projects) might reject them.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
+ SetIamPolicyRequest request =
+ SetIamPolicyRequest.newBuilder()
+ .setResource(resource == null ? null : resource.toString())
+ .setPolicy(policy)
+ .build();
+ return setIamPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the access control policy on the specified Source.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String resource = FolderName.of("[FOLDER]").toString();
+ * Policy policy = Policy.newBuilder().build();
+ * Policy response = securityCenterClient.setIamPolicy(resource, policy);
+ * }
+ * }
+ *
+ * @param resource REQUIRED: The resource for which the policy is being specified. See the
+ * operation documentation for the appropriate value for this field.
+ * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the
+ * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud
+ * Platform services (such as Projects) might reject them.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy setIamPolicy(String resource, Policy policy) {
+ SetIamPolicyRequest request =
+ SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build();
+ return setIamPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the access control policy on the specified Source.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Policy response = securityCenterClient.setIamPolicy(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy setIamPolicy(SetIamPolicyRequest request) {
+ return setIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the access control policy on the specified Source.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * FindingName name =
+ * FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
+ * Finding.Mute mute = Finding.Mute.forNumber(0);
+ * Finding response = securityCenterClient.setMute(name, mute);
+ * }
+ * }
+ *
+ * @param name Required. The [relative resource
+ * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) of the
+ * finding. If no location is specified, finding is assumed to be in global. The following
+ * list shows some examples:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String name =
+ * FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]")
+ * .toString();
+ * Finding.Mute mute = Finding.Mute.forNumber(0);
+ * Finding response = securityCenterClient.setMute(name, mute);
+ * }
+ * }
+ *
+ * @param name Required. The [relative resource
+ * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) of the
+ * finding. If no location is specified, finding is assumed to be in global. The following
+ * list shows some examples:
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * SetMuteRequest request =
+ * SetMuteRequest.newBuilder()
+ * .setName(
+ * FindingName.ofOrganizationSourceFindingName(
+ * "[ORGANIZATION]", "[SOURCE]", "[FINDING]")
+ * .toString())
+ * .build();
+ * Finding response = securityCenterClient.setMute(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Finding setMute(SetMuteRequest request) {
+ return setMuteCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the mute state of a finding. If no location is specified, finding is assumed to be in
+ * global
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * SetMuteRequest request =
+ * SetMuteRequest.newBuilder()
+ * .setName(
+ * FindingName.ofOrganizationSourceFindingName(
+ * "[ORGANIZATION]", "[SOURCE]", "[FINDING]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+ * List
+ *
+ * @param resource REQUIRED: The resource for which the policy detail is being requested. See the
+ * operation documentation for the appropriate value for this field.
+ * @param permissions The set of permissions to check for the `resource`. Permissions with
+ * wildcards (such as '*' or 'storage.*') are not allowed. For more information see
+ * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestIamPermissionsResponse testIamPermissions(
+ ResourceName resource, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * String resource = FolderName.of("[FOLDER]").toString();
+ * List
+ *
+ * @param resource REQUIRED: The resource for which the policy detail is being requested. See the
+ * operation documentation for the appropriate value for this field.
+ * @param permissions The set of permissions to check for the `resource`. Permissions with
+ * wildcards (such as '*' or 'storage.*') are not allowed. For more information see
+ * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestIamPermissionsResponse testIamPermissions(
+ String resource, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * TestIamPermissionsRequest request =
+ * TestIamPermissionsRequest.newBuilder()
+ * .setResource(
+ * SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+ * .addAllPermissions(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) {
+ return testIamPermissionsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the permissions that a caller has on the specified source.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * TestIamPermissionsRequest request =
+ * TestIamPermissionsRequest.newBuilder()
+ * .setResource(
+ * SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+ * .addAllPermissions(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * BigQueryExport response =
+ * securityCenterClient.updateBigQueryExport(bigQueryExport, updateMask);
+ * }
+ * }
+ *
+ * @param bigQueryExport Required. The BigQuery export being updated.
+ * @param updateMask The list of fields to be updated. If empty all mutable fields will be
+ * updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BigQueryExport updateBigQueryExport(
+ BigQueryExport bigQueryExport, FieldMask updateMask) {
+ UpdateBigQueryExportRequest request =
+ UpdateBigQueryExportRequest.newBuilder()
+ .setBigQueryExport(bigQueryExport)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateBigQueryExport(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a BigQuery export.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * UpdateBigQueryExportRequest request =
+ * UpdateBigQueryExportRequest.newBuilder()
+ * .setBigQueryExport(BigQueryExport.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * BigQueryExport response = securityCenterClient.updateBigQueryExport(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BigQueryExport updateBigQueryExport(UpdateBigQueryExportRequest request) {
+ return updateBigQueryExportCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a BigQuery export.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * UpdateBigQueryExportRequest request =
+ * UpdateBigQueryExportRequest.newBuilder()
+ * .setBigQueryExport(BigQueryExport.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ExternalSystem externalSystem = ExternalSystem.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * ExternalSystem response =
+ * securityCenterClient.updateExternalSystem(externalSystem, updateMask);
+ * }
+ * }
+ *
+ * @param externalSystem Required. The external system resource to update.
+ * @param updateMask The FieldMask to use when updating the external system resource.
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * UpdateExternalSystemRequest request =
+ * UpdateExternalSystemRequest.newBuilder()
+ * .setExternalSystem(ExternalSystem.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ExternalSystem response = securityCenterClient.updateExternalSystem(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ExternalSystem updateExternalSystem(UpdateExternalSystemRequest request) {
+ return updateExternalSystemCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates external system. This is for a given finding. If no location is specified, finding is
+ * assumed to be in global
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * UpdateExternalSystemRequest request =
+ * UpdateExternalSystemRequest.newBuilder()
+ * .setExternalSystem(ExternalSystem.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * Finding finding = Finding.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Finding response = securityCenterClient.updateFinding(finding, updateMask);
+ * }
+ * }
+ *
+ * @param finding Required. The finding resource to update or create if it does not already exist.
+ * parent, security_marks, and update_time will be ignored.
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * UpdateFindingRequest request =
+ * UpdateFindingRequest.newBuilder()
+ * .setFinding(Finding.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Finding response = securityCenterClient.updateFinding(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Finding updateFinding(UpdateFindingRequest request) {
+ return updateFindingCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates or updates a finding. If no location is specified, finding is assumed to be in global.
+ * The corresponding source must exist for a finding creation to succeed.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * UpdateFindingRequest request =
+ * UpdateFindingRequest.newBuilder()
+ * .setFinding(Finding.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * MuteConfig muteConfig = MuteConfig.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * MuteConfig response = securityCenterClient.updateMuteConfig(muteConfig, updateMask);
+ * }
+ * }
+ *
+ * @param muteConfig Required. The mute config being updated.
+ * @param updateMask The list of fields to be updated. If empty all mutable fields will be
+ * updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MuteConfig updateMuteConfig(MuteConfig muteConfig, FieldMask updateMask) {
+ UpdateMuteConfigRequest request =
+ UpdateMuteConfigRequest.newBuilder()
+ .setMuteConfig(muteConfig)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateMuteConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a mute config. If no location is specified, default is global.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * UpdateMuteConfigRequest request =
+ * UpdateMuteConfigRequest.newBuilder()
+ * .setMuteConfig(MuteConfig.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * MuteConfig response = securityCenterClient.updateMuteConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MuteConfig updateMuteConfig(UpdateMuteConfigRequest request) {
+ return updateMuteConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a mute config. If no location is specified, default is global.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * UpdateMuteConfigRequest request =
+ * UpdateMuteConfigRequest.newBuilder()
+ * .setMuteConfig(MuteConfig.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * NotificationConfig response =
+ * securityCenterClient.updateNotificationConfig(notificationConfig, updateMask);
+ * }
+ * }
+ *
+ * @param notificationConfig Required. The notification config to update.
+ * @param updateMask The FieldMask to use when updating the notification config.
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * UpdateNotificationConfigRequest request =
+ * UpdateNotificationConfigRequest.newBuilder()
+ * .setNotificationConfig(NotificationConfig.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * NotificationConfig response = securityCenterClient.updateNotificationConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final NotificationConfig updateNotificationConfig(
+ UpdateNotificationConfigRequest request) {
+ return updateNotificationConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a notification config. The following update fields are allowed: description,
+ * pubsub_topic, streaming_config.filter
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * UpdateNotificationConfigRequest request =
+ * UpdateNotificationConfigRequest.newBuilder()
+ * .setNotificationConfig(NotificationConfig.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * ResourceValueConfig resourceValueConfig = ResourceValueConfig.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * ResourceValueConfig response =
+ * securityCenterClient.updateResourceValueConfig(resourceValueConfig, updateMask);
+ * }
+ * }
+ *
+ * @param resourceValueConfig Required. The resource value config being updated.
+ * @param updateMask The list of fields to be updated. If empty all mutable fields will be
+ * updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ResourceValueConfig updateResourceValueConfig(
+ ResourceValueConfig resourceValueConfig, FieldMask updateMask) {
+ UpdateResourceValueConfigRequest request =
+ UpdateResourceValueConfigRequest.newBuilder()
+ .setResourceValueConfig(resourceValueConfig)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateResourceValueConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing ResourceValueConfigs with new rules.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * UpdateResourceValueConfigRequest request =
+ * UpdateResourceValueConfigRequest.newBuilder()
+ * .setResourceValueConfig(ResourceValueConfig.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ResourceValueConfig response = securityCenterClient.updateResourceValueConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ResourceValueConfig updateResourceValueConfig(
+ UpdateResourceValueConfigRequest request) {
+ return updateResourceValueConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing ResourceValueConfigs with new rules.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * UpdateResourceValueConfigRequest request =
+ * UpdateResourceValueConfigRequest.newBuilder()
+ * .setResourceValueConfig(ResourceValueConfig.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * SecurityMarks securityMarks = SecurityMarks.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * SecurityMarks response = securityCenterClient.updateSecurityMarks(securityMarks, updateMask);
+ * }
+ * }
+ *
+ * @param securityMarks Required. The security marks resource to update.
+ * @param updateMask The FieldMask to use when updating the security marks resource.
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * UpdateSecurityMarksRequest request =
+ * UpdateSecurityMarksRequest.newBuilder()
+ * .setSecurityMarks(SecurityMarks.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * SecurityMarks response = securityCenterClient.updateSecurityMarks(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SecurityMarks updateSecurityMarks(UpdateSecurityMarksRequest request) {
+ return updateSecurityMarksCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates security marks. For Finding Security marks, if no location is specified, finding is
+ * assumed to be in global. Assets Security Marks can only be accessed through global endpoint.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * UpdateSecurityMarksRequest request =
+ * UpdateSecurityMarksRequest.newBuilder()
+ * .setSecurityMarks(SecurityMarks.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * Source source = Source.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Source response = securityCenterClient.updateSource(source, updateMask);
+ * }
+ * }
+ *
+ * @param source Required. The source resource to update.
+ * @param updateMask The FieldMask to use when updating the source resource.
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * UpdateSourceRequest request =
+ * UpdateSourceRequest.newBuilder()
+ * .setSource(Source.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Source response = securityCenterClient.updateSource(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Source updateSource(UpdateSourceRequest request) {
+ return updateSourceCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a source.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * UpdateSourceRequest request =
+ * UpdateSourceRequest.newBuilder()
+ * .setSource(Source.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SecurityCenterSettings.Builder securityCenterSettingsBuilder =
+ * SecurityCenterSettings.newBuilder();
+ * securityCenterSettingsBuilder
+ * .batchCreateResourceValueConfigsSettings()
+ * .setRetrySettings(
+ * securityCenterSettingsBuilder
+ * .batchCreateResourceValueConfigsSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * SecurityCenterSettings securityCenterSettings = securityCenterSettingsBuilder.build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class SecurityCenterSettings extends ClientSettings{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ * OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+ * List
+ */
+@Generated("by gapic-generator-java")
+package com.google.cloud.securitycenter.v2;
+
+import javax.annotation.Generated;
diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/GrpcSecurityCenterCallableFactory.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/GrpcSecurityCenterCallableFactory.java
new file mode 100644
index 000000000000..aae719093172
--- /dev/null
+++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/GrpcSecurityCenterCallableFactory.java
@@ -0,0 +1,113 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v2.stub;
+
+import com.google.api.gax.grpc.GrpcCallSettings;
+import com.google.api.gax.grpc.GrpcCallableFactory;
+import com.google.api.gax.grpc.GrpcStubCallableFactory;
+import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.BidiStreamingCallable;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientStreamingCallable;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.StreamingCallSettings;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.longrunning.Operation;
+import com.google.longrunning.stub.OperationsStub;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * gRPC callable factory implementation for the SecurityCenter service API.
+ *
+ *