Skip to content

Commit

Permalink
feat: [securitycenter] add kernel_rootkit field to finding's list of …
Browse files Browse the repository at this point in the history
…attributes (#8878)

* feat: add kernel_rootkit field to finding's list of attributes
docs: miscellaneous style improvements

PiperOrigin-RevId: 493119809

Source-Link: googleapis/googleapis@6aff678

Source-Link: https://github.com/googleapis/googleapis-gen/commit/ee521940a017f393fce7731e4c22a43aff6b000e
Copy-Tag: eyJwIjoiamF2YS1zZWN1cml0eWNlbnRlci8uT3dsQm90LnlhbWwiLCJoIjoiZWU1MjE5NDBhMDE3ZjM5M2ZjZTc3MzFlNGMyMmE0M2FmZjZiMDAwZSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Dec 6, 2022
1 parent 3334870 commit 0d6e1cc
Show file tree
Hide file tree
Showing 44 changed files with 2,695 additions and 513 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
Map<String, List<String>> fields = new HashMap<>();
ProtoRestSerializer<CreateSourceRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("source", request.getSource(), false))
.toBody("source", request.getSource(), true))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Source>newBuilder()
Expand Down Expand Up @@ -148,12 +149,13 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
ProtoRestSerializer<CreateFindingRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "findingId", request.getFindingId());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("finding", request.getFinding(), false))
.toBody("finding", request.getFinding(), true))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Finding>newBuilder()
Expand Down Expand Up @@ -184,12 +186,13 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
Map<String, List<String>> fields = new HashMap<>();
ProtoRestSerializer<GetIamPolicyRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build(), false))
.toBody("*", request.toBuilder().clearResource().build(), true))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Policy>newBuilder()
Expand Down Expand Up @@ -221,6 +224,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
Map<String, List<String>> fields = new HashMap<>();
ProtoRestSerializer<GetOrganizationSettingsRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(request -> null)
Expand Down Expand Up @@ -253,6 +257,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
Map<String, List<String>> fields = new HashMap<>();
ProtoRestSerializer<GetSourceRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(request -> null)
Expand Down Expand Up @@ -286,12 +291,13 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
Map<String, List<String>> fields = new HashMap<>();
ProtoRestSerializer<GroupAssetsRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build(), false))
.toBody("*", request.toBuilder().clearParent().build(), true))
.build())
.setResponseParser(
ProtoMessageResponseParser.<GroupAssetsResponse>newBuilder()
Expand Down Expand Up @@ -322,12 +328,13 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
Map<String, List<String>> fields = new HashMap<>();
ProtoRestSerializer<GroupFindingsRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build(), false))
.toBody("*", request.toBuilder().clearParent().build(), true))
.build())
.setResponseParser(
ProtoMessageResponseParser.<GroupFindingsResponse>newBuilder()
Expand Down Expand Up @@ -366,6 +373,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
serializer.putQueryParam(fields, "pageSize", request.getPageSize());
serializer.putQueryParam(fields, "pageToken", request.getPageToken());
serializer.putQueryParam(fields, "readTime", request.getReadTime());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(request -> null)
Expand Down Expand Up @@ -405,6 +413,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
serializer.putQueryParam(fields, "pageSize", request.getPageSize());
serializer.putQueryParam(fields, "pageToken", request.getPageToken());
serializer.putQueryParam(fields, "readTime", request.getReadTime());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(request -> null)
Expand Down Expand Up @@ -440,6 +449,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "pageSize", request.getPageSize());
serializer.putQueryParam(fields, "pageToken", request.getPageToken());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(request -> null)
Expand Down Expand Up @@ -474,12 +484,13 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
Map<String, List<String>> fields = new HashMap<>();
ProtoRestSerializer<RunAssetDiscoveryRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build(), false))
.toBody("*", request.toBuilder().clearParent().build(), true))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -514,12 +525,13 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
Map<String, List<String>> fields = new HashMap<>();
ProtoRestSerializer<SetFindingStateRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build(), false))
.toBody("*", request.toBuilder().clearName().build(), true))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Finding>newBuilder()
Expand Down Expand Up @@ -550,12 +562,13 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
Map<String, List<String>> fields = new HashMap<>();
ProtoRestSerializer<SetIamPolicyRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build(), false))
.toBody("*", request.toBuilder().clearResource().build(), true))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Policy>newBuilder()
Expand Down Expand Up @@ -587,12 +600,13 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
Map<String, List<String>> fields = new HashMap<>();
ProtoRestSerializer<TestIamPermissionsRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build(), false))
.toBody("*", request.toBuilder().clearResource().build(), true))
.build())
.setResponseParser(
ProtoMessageResponseParser.<TestIamPermissionsResponse>newBuilder()
Expand Down Expand Up @@ -625,12 +639,13 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
ProtoRestSerializer<UpdateFindingRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "updateMask", request.getUpdateMask());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("finding", request.getFinding(), false))
.toBody("finding", request.getFinding(), true))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Finding>newBuilder()
Expand Down Expand Up @@ -666,6 +681,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
ProtoRestSerializer<UpdateOrganizationSettingsRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "updateMask", request.getUpdateMask());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
Expand All @@ -674,7 +690,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
.toBody(
"organizationSettings",
request.getOrganizationSettings(),
false))
true))
.build())
.setResponseParser(
ProtoMessageResponseParser.<OrganizationSettings>newBuilder()
Expand Down Expand Up @@ -707,12 +723,13 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
ProtoRestSerializer<UpdateSourceRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "updateMask", request.getUpdateMask());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("source", request.getSource(), false))
.toBody("source", request.getSource(), true))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Source>newBuilder()
Expand Down Expand Up @@ -749,12 +766,13 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "startTime", request.getStartTime());
serializer.putQueryParam(fields, "updateMask", request.getUpdateMask());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("securityMarks", request.getSecurityMarks(), false))
.toBody("securityMarks", request.getSecurityMarks(), true))
.build())
.setResponseParser(
ProtoMessageResponseParser.<SecurityMarks>newBuilder()
Expand Down
Loading

0 comments on commit 0d6e1cc

Please sign in to comment.