Skip to content

Commit 6dfafca

Browse files
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
1 parent 635ac2a commit 6dfafca

File tree

789 files changed

+326827
-0
lines changed

Some content is hidden

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

789 files changed

+326827
-0
lines changed

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

Lines changed: 5564 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 653 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
{
2+
"schema": "1.0",
3+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
4+
"language": "java",
5+
"protoPackage": "google.cloud.securitycenter.v1",
6+
"libraryPackage": "com.google.cloud.securitycenter.v1",
7+
"services": {
8+
"SecurityCenter": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "SecurityCenterClient",
12+
"rpcs": {
13+
"BulkMuteFindings": {
14+
"methods": ["bulkMuteFindingsAsync", "bulkMuteFindingsAsync", "bulkMuteFindingsAsync", "bulkMuteFindingsOperationCallable", "bulkMuteFindingsCallable"]
15+
},
16+
"CreateBigQueryExport": {
17+
"methods": ["createBigQueryExport", "createBigQueryExport", "createBigQueryExport", "createBigQueryExport", "createBigQueryExport", "createBigQueryExportCallable"]
18+
},
19+
"CreateFinding": {
20+
"methods": ["createFinding", "createFinding", "createFinding", "createFindingCallable"]
21+
},
22+
"CreateMuteConfig": {
23+
"methods": ["createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfig", "createMuteConfigCallable"]
24+
},
25+
"CreateNotificationConfig": {
26+
"methods": ["createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfigCallable"]
27+
},
28+
"CreateSource": {
29+
"methods": ["createSource", "createSource", "createSource", "createSourceCallable"]
30+
},
31+
"DeleteBigQueryExport": {
32+
"methods": ["deleteBigQueryExport", "deleteBigQueryExport", "deleteBigQueryExport", "deleteBigQueryExportCallable"]
33+
},
34+
"DeleteMuteConfig": {
35+
"methods": ["deleteMuteConfig", "deleteMuteConfig", "deleteMuteConfig", "deleteMuteConfigCallable"]
36+
},
37+
"DeleteNotificationConfig": {
38+
"methods": ["deleteNotificationConfig", "deleteNotificationConfig", "deleteNotificationConfig", "deleteNotificationConfigCallable"]
39+
},
40+
"GetBigQueryExport": {
41+
"methods": ["getBigQueryExport", "getBigQueryExport", "getBigQueryExport", "getBigQueryExportCallable"]
42+
},
43+
"GetIamPolicy": {
44+
"methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"]
45+
},
46+
"GetMuteConfig": {
47+
"methods": ["getMuteConfig", "getMuteConfig", "getMuteConfig", "getMuteConfigCallable"]
48+
},
49+
"GetNotificationConfig": {
50+
"methods": ["getNotificationConfig", "getNotificationConfig", "getNotificationConfig", "getNotificationConfigCallable"]
51+
},
52+
"GetOrganizationSettings": {
53+
"methods": ["getOrganizationSettings", "getOrganizationSettings", "getOrganizationSettings", "getOrganizationSettingsCallable"]
54+
},
55+
"GetSource": {
56+
"methods": ["getSource", "getSource", "getSource", "getSourceCallable"]
57+
},
58+
"GroupAssets": {
59+
"methods": ["groupAssets", "groupAssetsPagedCallable", "groupAssetsCallable"]
60+
},
61+
"GroupFindings": {
62+
"methods": ["groupFindings", "groupFindings", "groupFindings", "groupFindingsPagedCallable", "groupFindingsCallable"]
63+
},
64+
"ListAssets": {
65+
"methods": ["listAssets", "listAssetsPagedCallable", "listAssetsCallable"]
66+
},
67+
"ListBigQueryExports": {
68+
"methods": ["listBigQueryExports", "listBigQueryExports", "listBigQueryExports", "listBigQueryExports", "listBigQueryExports", "listBigQueryExportsPagedCallable", "listBigQueryExportsCallable"]
69+
},
70+
"ListFindings": {
71+
"methods": ["listFindings", "listFindingsPagedCallable", "listFindingsCallable"]
72+
},
73+
"ListMuteConfigs": {
74+
"methods": ["listMuteConfigs", "listMuteConfigs", "listMuteConfigs", "listMuteConfigs", "listMuteConfigs", "listMuteConfigsPagedCallable", "listMuteConfigsCallable"]
75+
},
76+
"ListNotificationConfigs": {
77+
"methods": ["listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigsPagedCallable", "listNotificationConfigsCallable"]
78+
},
79+
"ListSources": {
80+
"methods": ["listSources", "listSources", "listSources", "listSources", "listSources", "listSourcesPagedCallable", "listSourcesCallable"]
81+
},
82+
"RunAssetDiscovery": {
83+
"methods": ["runAssetDiscoveryAsync", "runAssetDiscoveryAsync", "runAssetDiscoveryAsync", "runAssetDiscoveryOperationCallable", "runAssetDiscoveryCallable"]
84+
},
85+
"SetFindingState": {
86+
"methods": ["setFindingState", "setFindingState", "setFindingState", "setFindingStateCallable"]
87+
},
88+
"SetIamPolicy": {
89+
"methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"]
90+
},
91+
"SetMute": {
92+
"methods": ["setMute", "setMute", "setMute", "setMuteCallable"]
93+
},
94+
"TestIamPermissions": {
95+
"methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"]
96+
},
97+
"UpdateBigQueryExport": {
98+
"methods": ["updateBigQueryExport", "updateBigQueryExport", "updateBigQueryExportCallable"]
99+
},
100+
"UpdateExternalSystem": {
101+
"methods": ["updateExternalSystem", "updateExternalSystem", "updateExternalSystemCallable"]
102+
},
103+
"UpdateFinding": {
104+
"methods": ["updateFinding", "updateFinding", "updateFindingCallable"]
105+
},
106+
"UpdateMuteConfig": {
107+
"methods": ["updateMuteConfig", "updateMuteConfig", "updateMuteConfigCallable"]
108+
},
109+
"UpdateNotificationConfig": {
110+
"methods": ["updateNotificationConfig", "updateNotificationConfig", "updateNotificationConfig", "updateNotificationConfigCallable"]
111+
},
112+
"UpdateOrganizationSettings": {
113+
"methods": ["updateOrganizationSettings", "updateOrganizationSettings", "updateOrganizationSettingsCallable"]
114+
},
115+
"UpdateSecurityMarks": {
116+
"methods": ["updateSecurityMarks", "updateSecurityMarks", "updateSecurityMarksCallable"]
117+
},
118+
"UpdateSource": {
119+
"methods": ["updateSource", "updateSource", "updateSourceCallable"]
120+
}
121+
}
122+
}
123+
}
124+
}
125+
}
126+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/**
18+
* A client to Security Command Center API
19+
*
20+
* <p>The interfaces provided are listed below, along with usage samples.
21+
*
22+
* <p>======================= SecurityCenterClient =======================
23+
*
24+
* <p>Service Description: V1 APIs for Security Center service.
25+
*
26+
* <p>Sample for SecurityCenterClient:
27+
*
28+
* <pre>{@code
29+
* // This snippet has been automatically generated for illustrative purposes only.
30+
* // It may require modifications to work in your environment.
31+
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
32+
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
33+
* Source source = Source.newBuilder().build();
34+
* Source response = securityCenterClient.createSource(parent, source);
35+
* }
36+
* }</pre>
37+
*/
38+
@Generated("by gapic-generator-java")
39+
package com.google.cloud.securitycenter.v1;
40+
41+
import javax.annotation.Generated;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.securitycenter.v1.stub;
18+
19+
import com.google.api.gax.grpc.GrpcCallSettings;
20+
import com.google.api.gax.grpc.GrpcCallableFactory;
21+
import com.google.api.gax.grpc.GrpcStubCallableFactory;
22+
import com.google.api.gax.rpc.BatchingCallSettings;
23+
import com.google.api.gax.rpc.BidiStreamingCallable;
24+
import com.google.api.gax.rpc.ClientContext;
25+
import com.google.api.gax.rpc.ClientStreamingCallable;
26+
import com.google.api.gax.rpc.OperationCallSettings;
27+
import com.google.api.gax.rpc.OperationCallable;
28+
import com.google.api.gax.rpc.PagedCallSettings;
29+
import com.google.api.gax.rpc.ServerStreamingCallSettings;
30+
import com.google.api.gax.rpc.ServerStreamingCallable;
31+
import com.google.api.gax.rpc.StreamingCallSettings;
32+
import com.google.api.gax.rpc.UnaryCallSettings;
33+
import com.google.api.gax.rpc.UnaryCallable;
34+
import com.google.longrunning.Operation;
35+
import com.google.longrunning.stub.OperationsStub;
36+
import javax.annotation.Generated;
37+
38+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
39+
/**
40+
* gRPC callable factory implementation for the SecurityCenter service API.
41+
*
42+
* <p>This class is for advanced usage.
43+
*/
44+
@Generated("by gapic-generator-java")
45+
public class GrpcSecurityCenterCallableFactory implements GrpcStubCallableFactory {
46+
47+
@Override
48+
public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createUnaryCallable(
49+
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
50+
UnaryCallSettings<RequestT, ResponseT> callSettings,
51+
ClientContext clientContext) {
52+
return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext);
53+
}
54+
55+
@Override
56+
public <RequestT, ResponseT, PagedListResponseT>
57+
UnaryCallable<RequestT, PagedListResponseT> createPagedCallable(
58+
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
59+
PagedCallSettings<RequestT, ResponseT, PagedListResponseT> callSettings,
60+
ClientContext clientContext) {
61+
return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext);
62+
}
63+
64+
@Override
65+
public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCallable(
66+
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
67+
BatchingCallSettings<RequestT, ResponseT> callSettings,
68+
ClientContext clientContext) {
69+
return GrpcCallableFactory.createBatchingCallable(
70+
grpcCallSettings, callSettings, clientContext);
71+
}
72+
73+
@Override
74+
public <RequestT, ResponseT, MetadataT>
75+
OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(
76+
GrpcCallSettings<RequestT, Operation> grpcCallSettings,
77+
OperationCallSettings<RequestT, ResponseT, MetadataT> callSettings,
78+
ClientContext clientContext,
79+
OperationsStub operationsStub) {
80+
return GrpcCallableFactory.createOperationCallable(
81+
grpcCallSettings, callSettings, clientContext, operationsStub);
82+
}
83+
84+
@Override
85+
public <RequestT, ResponseT>
86+
BidiStreamingCallable<RequestT, ResponseT> createBidiStreamingCallable(
87+
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
88+
StreamingCallSettings<RequestT, ResponseT> callSettings,
89+
ClientContext clientContext) {
90+
return GrpcCallableFactory.createBidiStreamingCallable(
91+
grpcCallSettings, callSettings, clientContext);
92+
}
93+
94+
@Override
95+
public <RequestT, ResponseT>
96+
ServerStreamingCallable<RequestT, ResponseT> createServerStreamingCallable(
97+
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
98+
ServerStreamingCallSettings<RequestT, ResponseT> callSettings,
99+
ClientContext clientContext) {
100+
return GrpcCallableFactory.createServerStreamingCallable(
101+
grpcCallSettings, callSettings, clientContext);
102+
}
103+
104+
@Override
105+
public <RequestT, ResponseT>
106+
ClientStreamingCallable<RequestT, ResponseT> createClientStreamingCallable(
107+
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
108+
StreamingCallSettings<RequestT, ResponseT> callSettings,
109+
ClientContext clientContext) {
110+
return GrpcCallableFactory.createClientStreamingCallable(
111+
grpcCallSettings, callSettings, clientContext);
112+
}
113+
}

0 commit comments

Comments
 (0)