Skip to content

Commit

Permalink
feat: Add next_steps field to finding's list of attributes
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 440383959

Source-Link: googleapis/googleapis@6a276f6

Source-Link: googleapis/googleapis-gen@f94fc64
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VjdXJpdHlDZW50ZXIuVjEvLk93bEJvdC55YW1sIiwiaCI6ImY5NGZjNjQwNjE4MzcwMzNiYWI4OGM2NTA3NWUxODE0ZWRiNjEzM2EifQ==
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Apr 8, 2022
1 parent ca27181 commit 8d16471
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ public void CreateFindingRequestObject()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.CreateFinding(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -284,6 +285,7 @@ public void CreateFindingRequestObject()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.CreateFindingAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Finding>(stt::Task.FromResult(expectedResponse), null, null, null, null));
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -341,6 +343,7 @@ public void CreateFinding()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.CreateFinding(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -396,6 +399,7 @@ public void CreateFinding()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.CreateFindingAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Finding>(stt::Task.FromResult(expectedResponse), null, null, null, null));
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -453,6 +457,7 @@ public void CreateFindingResourceNames()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.CreateFinding(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -508,6 +513,7 @@ public void CreateFindingResourceNames()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.CreateFindingAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Finding>(stt::Task.FromResult(expectedResponse), null, null, null, null));
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2535,6 +2541,7 @@ public void SetFindingStateRequestObject()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.SetFindingState(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2590,6 +2597,7 @@ public void SetFindingStateRequestObject()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.SetFindingStateAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Finding>(stt::Task.FromResult(expectedResponse), null, null, null, null));
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2647,6 +2655,7 @@ public void SetFindingState()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.SetFindingState(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2702,6 +2711,7 @@ public void SetFindingState()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.SetFindingStateAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Finding>(stt::Task.FromResult(expectedResponse), null, null, null, null));
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2759,6 +2769,7 @@ public void SetFindingStateResourceNames()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.SetFindingState(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2814,6 +2825,7 @@ public void SetFindingStateResourceNames()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.SetFindingStateAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Finding>(stt::Task.FromResult(expectedResponse), null, null, null, null));
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2870,6 +2882,7 @@ public void SetMuteRequestObject()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.SetMute(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2924,6 +2937,7 @@ public void SetMuteRequestObject()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.SetMuteAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Finding>(stt::Task.FromResult(expectedResponse), null, null, null, null));
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2980,6 +2994,7 @@ public void SetMute()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.SetMute(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -3034,6 +3049,7 @@ public void SetMute()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.SetMuteAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Finding>(stt::Task.FromResult(expectedResponse), null, null, null, null));
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -3090,6 +3106,7 @@ public void SetMuteResourceNames()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.SetMute(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -3144,6 +3161,7 @@ public void SetMuteResourceNames()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.SetMuteAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Finding>(stt::Task.FromResult(expectedResponse), null, null, null, null));
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -3672,6 +3690,7 @@ public void UpdateFindingRequestObject()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.UpdateFinding(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -3726,6 +3745,7 @@ public void UpdateFindingRequestObject()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.UpdateFindingAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Finding>(stt::Task.FromResult(expectedResponse), null, null, null, null));
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -3781,6 +3801,7 @@ public void UpdateFinding()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.UpdateFinding(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -3834,6 +3855,7 @@ public void UpdateFinding()
Access = new Access(),
MuteInitiator = "mute_initiator3bd7566e",
IamBindings = { new IamBinding(), },
NextSteps = "next_stepsc5904826",
};
mockGrpcClient.Setup(x => x.UpdateFindingAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Finding>(stt::Task.FromResult(expectedResponse), null, null, null, null));
SecurityCenterClient client = new SecurityCenterClientImpl(mockGrpcClient.Object, null);
Expand Down
Loading

0 comments on commit 8d16471

Please sign in to comment.