Skip to content

Commit

Permalink
feat: Add support for Media CDN
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 483999352

Source-Link: googleapis/googleapis@d0a9cd5

Source-Link: googleapis/googleapis-gen@b40f231
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuVmlkZW8uU3RpdGNoZXIuVjEvLk93bEJvdC55YW1sIiwiaCI6ImI0MGYyMzExOTUwMTlhMjBmYmExNjRlNmI5ZmRiMzQ0ZTYyODNhMTMifQ==
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Oct 27, 2022
1 parent c412cb7 commit b01726a
Show file tree
Hide file tree
Showing 2 changed files with 323 additions and 13 deletions.
Expand Up @@ -45,6 +45,7 @@ public void CreateCdnKeyRequestObject()
Hostname = "hostnamef4ac9708",
GoogleCdnKey = new GoogleCdnKey(),
AkamaiCdnKey = new AkamaiCdnKey(),
MediaCdnKey = new MediaCdnKey(),
};
mockGrpcClient.Setup(x => x.CreateCdnKey(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
VideoStitcherServiceClient client = new VideoStitcherServiceClientImpl(mockGrpcClient.Object, null, null);
Expand All @@ -69,6 +70,7 @@ public void CreateCdnKeyRequestObject()
Hostname = "hostnamef4ac9708",
GoogleCdnKey = new GoogleCdnKey(),
AkamaiCdnKey = new AkamaiCdnKey(),
MediaCdnKey = new MediaCdnKey(),
};
mockGrpcClient.Setup(x => x.CreateCdnKeyAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<CdnKey>(stt::Task.FromResult(expectedResponse), null, null, null, null));
VideoStitcherServiceClient client = new VideoStitcherServiceClientImpl(mockGrpcClient.Object, null, null);
Expand All @@ -95,6 +97,7 @@ public void CreateCdnKey()
Hostname = "hostnamef4ac9708",
GoogleCdnKey = new GoogleCdnKey(),
AkamaiCdnKey = new AkamaiCdnKey(),
MediaCdnKey = new MediaCdnKey(),
};
mockGrpcClient.Setup(x => x.CreateCdnKey(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
VideoStitcherServiceClient client = new VideoStitcherServiceClientImpl(mockGrpcClient.Object, null, null);
Expand All @@ -119,6 +122,7 @@ public void CreateCdnKey()
Hostname = "hostnamef4ac9708",
GoogleCdnKey = new GoogleCdnKey(),
AkamaiCdnKey = new AkamaiCdnKey(),
MediaCdnKey = new MediaCdnKey(),
};
mockGrpcClient.Setup(x => x.CreateCdnKeyAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<CdnKey>(stt::Task.FromResult(expectedResponse), null, null, null, null));
VideoStitcherServiceClient client = new VideoStitcherServiceClientImpl(mockGrpcClient.Object, null, null);
Expand All @@ -145,6 +149,7 @@ public void CreateCdnKeyResourceNames()
Hostname = "hostnamef4ac9708",
GoogleCdnKey = new GoogleCdnKey(),
AkamaiCdnKey = new AkamaiCdnKey(),
MediaCdnKey = new MediaCdnKey(),
};
mockGrpcClient.Setup(x => x.CreateCdnKey(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
VideoStitcherServiceClient client = new VideoStitcherServiceClientImpl(mockGrpcClient.Object, null, null);
Expand All @@ -169,6 +174,7 @@ public void CreateCdnKeyResourceNames()
Hostname = "hostnamef4ac9708",
GoogleCdnKey = new GoogleCdnKey(),
AkamaiCdnKey = new AkamaiCdnKey(),
MediaCdnKey = new MediaCdnKey(),
};
mockGrpcClient.Setup(x => x.CreateCdnKeyAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<CdnKey>(stt::Task.FromResult(expectedResponse), null, null, null, null));
VideoStitcherServiceClient client = new VideoStitcherServiceClientImpl(mockGrpcClient.Object, null, null);
Expand All @@ -193,6 +199,7 @@ public void GetCdnKeyRequestObject()
Hostname = "hostnamef4ac9708",
GoogleCdnKey = new GoogleCdnKey(),
AkamaiCdnKey = new AkamaiCdnKey(),
MediaCdnKey = new MediaCdnKey(),
};
mockGrpcClient.Setup(x => x.GetCdnKey(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
VideoStitcherServiceClient client = new VideoStitcherServiceClientImpl(mockGrpcClient.Object, null, null);
Expand All @@ -215,6 +222,7 @@ public void GetCdnKeyRequestObject()
Hostname = "hostnamef4ac9708",
GoogleCdnKey = new GoogleCdnKey(),
AkamaiCdnKey = new AkamaiCdnKey(),
MediaCdnKey = new MediaCdnKey(),
};
mockGrpcClient.Setup(x => x.GetCdnKeyAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<CdnKey>(stt::Task.FromResult(expectedResponse), null, null, null, null));
VideoStitcherServiceClient client = new VideoStitcherServiceClientImpl(mockGrpcClient.Object, null, null);
Expand All @@ -239,6 +247,7 @@ public void GetCdnKey()
Hostname = "hostnamef4ac9708",
GoogleCdnKey = new GoogleCdnKey(),
AkamaiCdnKey = new AkamaiCdnKey(),
MediaCdnKey = new MediaCdnKey(),
};
mockGrpcClient.Setup(x => x.GetCdnKey(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
VideoStitcherServiceClient client = new VideoStitcherServiceClientImpl(mockGrpcClient.Object, null, null);
Expand All @@ -261,6 +270,7 @@ public void GetCdnKey()
Hostname = "hostnamef4ac9708",
GoogleCdnKey = new GoogleCdnKey(),
AkamaiCdnKey = new AkamaiCdnKey(),
MediaCdnKey = new MediaCdnKey(),
};
mockGrpcClient.Setup(x => x.GetCdnKeyAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<CdnKey>(stt::Task.FromResult(expectedResponse), null, null, null, null));
VideoStitcherServiceClient client = new VideoStitcherServiceClientImpl(mockGrpcClient.Object, null, null);
Expand All @@ -285,6 +295,7 @@ public void GetCdnKeyResourceNames()
Hostname = "hostnamef4ac9708",
GoogleCdnKey = new GoogleCdnKey(),
AkamaiCdnKey = new AkamaiCdnKey(),
MediaCdnKey = new MediaCdnKey(),
};
mockGrpcClient.Setup(x => x.GetCdnKey(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
VideoStitcherServiceClient client = new VideoStitcherServiceClientImpl(mockGrpcClient.Object, null, null);
Expand All @@ -307,6 +318,7 @@ public void GetCdnKeyResourceNames()
Hostname = "hostnamef4ac9708",
GoogleCdnKey = new GoogleCdnKey(),
AkamaiCdnKey = new AkamaiCdnKey(),
MediaCdnKey = new MediaCdnKey(),
};
mockGrpcClient.Setup(x => x.GetCdnKeyAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<CdnKey>(stt::Task.FromResult(expectedResponse), null, null, null, null));
VideoStitcherServiceClient client = new VideoStitcherServiceClientImpl(mockGrpcClient.Object, null, null);
Expand Down Expand Up @@ -425,6 +437,7 @@ public void UpdateCdnKeyRequestObject()
Hostname = "hostnamef4ac9708",
GoogleCdnKey = new GoogleCdnKey(),
AkamaiCdnKey = new AkamaiCdnKey(),
MediaCdnKey = new MediaCdnKey(),
};
mockGrpcClient.Setup(x => x.UpdateCdnKey(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
VideoStitcherServiceClient client = new VideoStitcherServiceClientImpl(mockGrpcClient.Object, null, null);
Expand All @@ -448,6 +461,7 @@ public void UpdateCdnKeyRequestObject()
Hostname = "hostnamef4ac9708",
GoogleCdnKey = new GoogleCdnKey(),
AkamaiCdnKey = new AkamaiCdnKey(),
MediaCdnKey = new MediaCdnKey(),
};
mockGrpcClient.Setup(x => x.UpdateCdnKeyAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<CdnKey>(stt::Task.FromResult(expectedResponse), null, null, null, null));
VideoStitcherServiceClient client = new VideoStitcherServiceClientImpl(mockGrpcClient.Object, null, null);
Expand All @@ -473,6 +487,7 @@ public void UpdateCdnKey()
Hostname = "hostnamef4ac9708",
GoogleCdnKey = new GoogleCdnKey(),
AkamaiCdnKey = new AkamaiCdnKey(),
MediaCdnKey = new MediaCdnKey(),
};
mockGrpcClient.Setup(x => x.UpdateCdnKey(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
VideoStitcherServiceClient client = new VideoStitcherServiceClientImpl(mockGrpcClient.Object, null, null);
Expand All @@ -496,6 +511,7 @@ public void UpdateCdnKey()
Hostname = "hostnamef4ac9708",
GoogleCdnKey = new GoogleCdnKey(),
AkamaiCdnKey = new AkamaiCdnKey(),
MediaCdnKey = new MediaCdnKey(),
};
mockGrpcClient.Setup(x => x.UpdateCdnKeyAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<CdnKey>(stt::Task.FromResult(expectedResponse), null, null, null, null));
VideoStitcherServiceClient client = new VideoStitcherServiceClientImpl(mockGrpcClient.Object, null, null);
Expand Down

0 comments on commit b01726a

Please sign in to comment.