-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adding database access information, such as queries field to a …
…finding. A database may be a sub-resource of an instance (as in the case of CloudSQL instances or Cloud Spanner instances), or the database instance itself PiperOrigin-RevId: 469544940 Source-Link: googleapis/googleapis@a887434 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ca12635e1b065de9efcaa551669648fcbde1a944 Copy-Tag: eyJwIjoiamF2YS1zZWN1cml0eWNlbnRlci8uT3dsQm90LnlhbWwiLCJoIjoiY2ExMjYzNWUxYjA2NWRlOWVmY2FhNTUxNjY5NjQ4ZmNiZGUxYTk0NCJ9
- Loading branch information
1 parent
635ac2a
commit 6dfafca
Showing
789 changed files
with
326,827 additions
and
0 deletions.
There are no files selected for viewing
5,564 changes: 5,564 additions & 0 deletions
5,564
...securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
653 changes: 653 additions & 0 deletions
653
...curitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java
Large diffs are not rendered by default.
Oops, something went wrong.
126 changes: 126 additions & 0 deletions
126
...cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/gapic_metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
{ | ||
"schema": "1.0", | ||
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods", | ||
"language": "java", | ||
"protoPackage": "google.cloud.securitycenter.v1", | ||
"libraryPackage": "com.google.cloud.securitycenter.v1", | ||
"services": { | ||
"SecurityCenter": { | ||
"clients": { | ||
"grpc": { | ||
"libraryClient": "SecurityCenterClient", | ||
"rpcs": { | ||
"BulkMuteFindings": { | ||
"methods": ["bulkMuteFindingsAsync", "bulkMuteFindingsAsync", "bulkMuteFindingsAsync", "bulkMuteFindingsOperationCallable", "bulkMuteFindingsCallable"] | ||
}, | ||
"CreateBigQueryExport": { | ||
"methods": ["createBigQueryExport", "createBigQueryExport", "createBigQueryExport", "createBigQueryExport", "createBigQueryExport", "createBigQueryExportCallable"] | ||
}, | ||
"CreateFinding": { | ||
"methods": ["createFinding", "createFinding", "createFinding", "createFindingCallable"] | ||
}, | ||
"CreateMuteConfig": { | ||
"methods": ["createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfigCallable"] | ||
}, | ||
"CreateNotificationConfig": { | ||
"methods": ["createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfigCallable"] | ||
}, | ||
"CreateSource": { | ||
"methods": ["createSource", "createSource", "createSource", "createSourceCallable"] | ||
}, | ||
"DeleteBigQueryExport": { | ||
"methods": ["deleteBigQueryExport", "deleteBigQueryExport", "deleteBigQueryExport", "deleteBigQueryExportCallable"] | ||
}, | ||
"DeleteMuteConfig": { | ||
"methods": ["deleteMuteConfig", "deleteMuteConfig", "deleteMuteConfig", "deleteMuteConfigCallable"] | ||
}, | ||
"DeleteNotificationConfig": { | ||
"methods": ["deleteNotificationConfig", "deleteNotificationConfig", "deleteNotificationConfig", "deleteNotificationConfigCallable"] | ||
}, | ||
"GetBigQueryExport": { | ||
"methods": ["getBigQueryExport", "getBigQueryExport", "getBigQueryExport", "getBigQueryExportCallable"] | ||
}, | ||
"GetIamPolicy": { | ||
"methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] | ||
}, | ||
"GetMuteConfig": { | ||
"methods": ["getMuteConfig", "getMuteConfig", "getMuteConfig", "getMuteConfigCallable"] | ||
}, | ||
"GetNotificationConfig": { | ||
"methods": ["getNotificationConfig", "getNotificationConfig", "getNotificationConfig", "getNotificationConfigCallable"] | ||
}, | ||
"GetOrganizationSettings": { | ||
"methods": ["getOrganizationSettings", "getOrganizationSettings", "getOrganizationSettings", "getOrganizationSettingsCallable"] | ||
}, | ||
"GetSource": { | ||
"methods": ["getSource", "getSource", "getSource", "getSourceCallable"] | ||
}, | ||
"GroupAssets": { | ||
"methods": ["groupAssets", "groupAssetsPagedCallable", "groupAssetsCallable"] | ||
}, | ||
"GroupFindings": { | ||
"methods": ["groupFindings", "groupFindings", "groupFindings", "groupFindingsPagedCallable", "groupFindingsCallable"] | ||
}, | ||
"ListAssets": { | ||
"methods": ["listAssets", "listAssetsPagedCallable", "listAssetsCallable"] | ||
}, | ||
"ListBigQueryExports": { | ||
"methods": ["listBigQueryExports", "listBigQueryExports", "listBigQueryExports", "listBigQueryExports", "listBigQueryExports", "listBigQueryExportsPagedCallable", "listBigQueryExportsCallable"] | ||
}, | ||
"ListFindings": { | ||
"methods": ["listFindings", "listFindingsPagedCallable", "listFindingsCallable"] | ||
}, | ||
"ListMuteConfigs": { | ||
"methods": ["listMuteConfigs", "listMuteConfigs", "listMuteConfigs", "listMuteConfigs", "listMuteConfigs", "listMuteConfigsPagedCallable", "listMuteConfigsCallable"] | ||
}, | ||
"ListNotificationConfigs": { | ||
"methods": ["listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigsPagedCallable", "listNotificationConfigsCallable"] | ||
}, | ||
"ListSources": { | ||
"methods": ["listSources", "listSources", "listSources", "listSources", "listSources", "listSourcesPagedCallable", "listSourcesCallable"] | ||
}, | ||
"RunAssetDiscovery": { | ||
"methods": ["runAssetDiscoveryAsync", "runAssetDiscoveryAsync", "runAssetDiscoveryAsync", "runAssetDiscoveryOperationCallable", "runAssetDiscoveryCallable"] | ||
}, | ||
"SetFindingState": { | ||
"methods": ["setFindingState", "setFindingState", "setFindingState", "setFindingStateCallable"] | ||
}, | ||
"SetIamPolicy": { | ||
"methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] | ||
}, | ||
"SetMute": { | ||
"methods": ["setMute", "setMute", "setMute", "setMuteCallable"] | ||
}, | ||
"TestIamPermissions": { | ||
"methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"] | ||
}, | ||
"UpdateBigQueryExport": { | ||
"methods": ["updateBigQueryExport", "updateBigQueryExport", "updateBigQueryExportCallable"] | ||
}, | ||
"UpdateExternalSystem": { | ||
"methods": ["updateExternalSystem", "updateExternalSystem", "updateExternalSystemCallable"] | ||
}, | ||
"UpdateFinding": { | ||
"methods": ["updateFinding", "updateFinding", "updateFindingCallable"] | ||
}, | ||
"UpdateMuteConfig": { | ||
"methods": ["updateMuteConfig", "updateMuteConfig", "updateMuteConfigCallable"] | ||
}, | ||
"UpdateNotificationConfig": { | ||
"methods": ["updateNotificationConfig", "updateNotificationConfig", "updateNotificationConfig", "updateNotificationConfigCallable"] | ||
}, | ||
"UpdateOrganizationSettings": { | ||
"methods": ["updateOrganizationSettings", "updateOrganizationSettings", "updateOrganizationSettingsCallable"] | ||
}, | ||
"UpdateSecurityMarks": { | ||
"methods": ["updateSecurityMarks", "updateSecurityMarks", "updateSecurityMarksCallable"] | ||
}, | ||
"UpdateSource": { | ||
"methods": ["updateSource", "updateSource", "updateSourceCallable"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...e-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright 2022 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. | ||
*/ | ||
|
||
/** | ||
* A client to Security Command Center API | ||
* | ||
* <p>The interfaces provided are listed below, along with usage samples. | ||
* | ||
* <p>======================= SecurityCenterClient ======================= | ||
* | ||
* <p>Service Description: V1 APIs for Security Center service. | ||
* | ||
* <p>Sample for SecurityCenterClient: | ||
* | ||
* <pre>{@code | ||
* // This snippet has been automatically generated for illustrative purposes only. | ||
* // It may require modifications to work in your environment. | ||
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { | ||
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); | ||
* Source source = Source.newBuilder().build(); | ||
* Source response = securityCenterClient.createSource(parent, source); | ||
* } | ||
* }</pre> | ||
*/ | ||
@Generated("by gapic-generator-java") | ||
package com.google.cloud.securitycenter.v1; | ||
|
||
import javax.annotation.Generated; |
113 changes: 113 additions & 0 deletions
113
.../main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
/* | ||
* Copyright 2022 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.v1.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. | ||
* | ||
* <p>This class is for advanced usage. | ||
*/ | ||
@Generated("by gapic-generator-java") | ||
public class GrpcSecurityCenterCallableFactory implements GrpcStubCallableFactory { | ||
|
||
@Override | ||
public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createUnaryCallable( | ||
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, | ||
UnaryCallSettings<RequestT, ResponseT> callSettings, | ||
ClientContext clientContext) { | ||
return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); | ||
} | ||
|
||
@Override | ||
public <RequestT, ResponseT, PagedListResponseT> | ||
UnaryCallable<RequestT, PagedListResponseT> createPagedCallable( | ||
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, | ||
PagedCallSettings<RequestT, ResponseT, PagedListResponseT> callSettings, | ||
ClientContext clientContext) { | ||
return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); | ||
} | ||
|
||
@Override | ||
public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCallable( | ||
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, | ||
BatchingCallSettings<RequestT, ResponseT> callSettings, | ||
ClientContext clientContext) { | ||
return GrpcCallableFactory.createBatchingCallable( | ||
grpcCallSettings, callSettings, clientContext); | ||
} | ||
|
||
@Override | ||
public <RequestT, ResponseT, MetadataT> | ||
OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable( | ||
GrpcCallSettings<RequestT, Operation> grpcCallSettings, | ||
OperationCallSettings<RequestT, ResponseT, MetadataT> callSettings, | ||
ClientContext clientContext, | ||
OperationsStub operationsStub) { | ||
return GrpcCallableFactory.createOperationCallable( | ||
grpcCallSettings, callSettings, clientContext, operationsStub); | ||
} | ||
|
||
@Override | ||
public <RequestT, ResponseT> | ||
BidiStreamingCallable<RequestT, ResponseT> createBidiStreamingCallable( | ||
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, | ||
StreamingCallSettings<RequestT, ResponseT> callSettings, | ||
ClientContext clientContext) { | ||
return GrpcCallableFactory.createBidiStreamingCallable( | ||
grpcCallSettings, callSettings, clientContext); | ||
} | ||
|
||
@Override | ||
public <RequestT, ResponseT> | ||
ServerStreamingCallable<RequestT, ResponseT> createServerStreamingCallable( | ||
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, | ||
ServerStreamingCallSettings<RequestT, ResponseT> callSettings, | ||
ClientContext clientContext) { | ||
return GrpcCallableFactory.createServerStreamingCallable( | ||
grpcCallSettings, callSettings, clientContext); | ||
} | ||
|
||
@Override | ||
public <RequestT, ResponseT> | ||
ClientStreamingCallable<RequestT, ResponseT> createClientStreamingCallable( | ||
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, | ||
StreamingCallSettings<RequestT, ResponseT> callSettings, | ||
ClientContext clientContext) { | ||
return GrpcCallableFactory.createClientStreamingCallable( | ||
grpcCallSettings, callSettings, clientContext); | ||
} | ||
} |
Oops, something went wrong.