Skip to content

Commit

Permalink
Regenerate Google.Cloud.Tasks.V2 (#4400)
Browse files Browse the repository at this point in the history
Adds StackdriverLoggingConfig and Queue.StackdriverLoggingConfig
  • Loading branch information
yoshi-automation committed Feb 21, 2020
1 parent ff974a6 commit 8d040c3
Show file tree
Hide file tree
Showing 2 changed files with 234 additions and 18 deletions.
Expand Up @@ -47,6 +47,7 @@ public void GetQueueRequestObject()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.GetQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -71,6 +72,7 @@ public void GetQueueRequestObject()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.GetQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -97,6 +99,7 @@ public void GetQueue()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.GetQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -121,6 +124,7 @@ public void GetQueue()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.GetQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -147,6 +151,7 @@ public void GetQueueResourceNames()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.GetQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -171,6 +176,7 @@ public void GetQueueResourceNames()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.GetQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -198,6 +204,7 @@ public void CreateQueueRequestObject()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.CreateQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -223,6 +230,7 @@ public void CreateQueueRequestObject()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.CreateQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -250,6 +258,7 @@ public void CreateQueue()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.CreateQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -275,6 +284,7 @@ public void CreateQueue()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.CreateQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -302,6 +312,7 @@ public void CreateQueueResourceNames()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.CreateQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -327,6 +338,7 @@ public void CreateQueueResourceNames()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.CreateQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -354,6 +366,7 @@ public void UpdateQueueRequestObject()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.UpdateQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -379,6 +392,7 @@ public void UpdateQueueRequestObject()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.UpdateQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -406,6 +420,7 @@ public void UpdateQueue()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.UpdateQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -431,6 +446,7 @@ public void UpdateQueue()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.UpdateQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -550,6 +566,7 @@ public void PurgeQueueRequestObject()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.PurgeQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -574,6 +591,7 @@ public void PurgeQueueRequestObject()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.PurgeQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -600,6 +618,7 @@ public void PurgeQueue()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.PurgeQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -624,6 +643,7 @@ public void PurgeQueue()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.PurgeQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -650,6 +670,7 @@ public void PurgeQueueResourceNames()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.PurgeQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -674,6 +695,7 @@ public void PurgeQueueResourceNames()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.PurgeQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -700,6 +722,7 @@ public void PauseQueueRequestObject()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.PauseQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -724,6 +747,7 @@ public void PauseQueueRequestObject()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.PauseQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -750,6 +774,7 @@ public void PauseQueue()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.PauseQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -774,6 +799,7 @@ public void PauseQueue()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.PauseQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -800,6 +826,7 @@ public void PauseQueueResourceNames()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.PauseQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -824,6 +851,7 @@ public void PauseQueueResourceNames()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.PauseQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -850,6 +878,7 @@ public void ResumeQueueRequestObject()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.ResumeQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -874,6 +903,7 @@ public void ResumeQueueRequestObject()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.ResumeQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -900,6 +930,7 @@ public void ResumeQueue()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.ResumeQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -924,6 +955,7 @@ public void ResumeQueue()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.ResumeQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -950,6 +982,7 @@ public void ResumeQueueResourceNames()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.ResumeQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -974,6 +1007,7 @@ public void ResumeQueueResourceNames()
RetryConfig = new RetryConfig(),
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
};
mockGrpcClient.Setup(x => x.ResumeQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down

0 comments on commit 8d040c3

Please sign in to comment.