Skip to content

Commit

Permalink
Regenerate all APIs
Browse files Browse the repository at this point in the history
This uses the new GAX method for the routing header, which URL-encodes values.
  • Loading branch information
jskeet committed Jul 11, 2019
1 parent c43981c commit 215ea7f
Show file tree
Hide file tree
Showing 61 changed files with 517 additions and 517 deletions.
Expand Up @@ -577,10 +577,10 @@ public AssetServiceClientImpl(AssetService.AssetServiceClient grpcClient, AssetS
grpcClient.CreateOperationsClient(), effectiveSettings.ExportAssetsOperationsSettings);
_callExportAssets = clientHelper.BuildApiCall<ExportAssetsRequest, lro::Operation>(
GrpcClient.ExportAssetsAsync, GrpcClient.ExportAssets, effectiveSettings.ExportAssetsSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
.WithGoogleRequestParam("parent", request => request.Parent);
_callBatchGetAssetsHistory = clientHelper.BuildApiCall<BatchGetAssetsHistoryRequest, BatchGetAssetsHistoryResponse>(
GrpcClient.BatchGetAssetsHistoryAsync, GrpcClient.BatchGetAssetsHistory, effectiveSettings.BatchGetAssetsHistorySettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
.WithGoogleRequestParam("parent", request => request.Parent);
Modify_ApiCall(ref _callExportAssets);
Modify_ExportAssetsApiCall(ref _callExportAssets);
Modify_ApiCall(ref _callBatchGetAssetsHistory);
Expand Down
Expand Up @@ -573,10 +573,10 @@ public AssetServiceClientImpl(AssetService.AssetServiceClient grpcClient, AssetS
grpcClient.CreateOperationsClient(), effectiveSettings.ExportAssetsOperationsSettings);
_callExportAssets = clientHelper.BuildApiCall<ExportAssetsRequest, lro::Operation>(
GrpcClient.ExportAssetsAsync, GrpcClient.ExportAssets, effectiveSettings.ExportAssetsSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
.WithGoogleRequestParam("parent", request => request.Parent);
_callBatchGetAssetsHistory = clientHelper.BuildApiCall<BatchGetAssetsHistoryRequest, BatchGetAssetsHistoryResponse>(
GrpcClient.BatchGetAssetsHistoryAsync, GrpcClient.BatchGetAssetsHistory, effectiveSettings.BatchGetAssetsHistorySettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
.WithGoogleRequestParam("parent", request => request.Parent);
Modify_ApiCall(ref _callExportAssets);
Modify_ExportAssetsApiCall(ref _callExportAssets);
Modify_ApiCall(ref _callBatchGetAssetsHistory);
Expand Down
Expand Up @@ -3340,46 +3340,46 @@ public DataTransferServiceClientImpl(DataTransferService.DataTransferServiceClie
gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings);
_callGetDataSource = clientHelper.BuildApiCall<GetDataSourceRequest, DataSource>(
GrpcClient.GetDataSourceAsync, GrpcClient.GetDataSource, effectiveSettings.GetDataSourceSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
.WithGoogleRequestParam("name", request => request.Name);
_callListDataSources = clientHelper.BuildApiCall<ListDataSourcesRequest, ListDataSourcesResponse>(
GrpcClient.ListDataSourcesAsync, GrpcClient.ListDataSources, effectiveSettings.ListDataSourcesSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
.WithGoogleRequestParam("parent", request => request.Parent);
_callCreateTransferConfig = clientHelper.BuildApiCall<CreateTransferConfigRequest, TransferConfig>(
GrpcClient.CreateTransferConfigAsync, GrpcClient.CreateTransferConfig, effectiveSettings.CreateTransferConfigSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
.WithGoogleRequestParam("parent", request => request.Parent);
_callUpdateTransferConfig = clientHelper.BuildApiCall<UpdateTransferConfigRequest, TransferConfig>(
GrpcClient.UpdateTransferConfigAsync, GrpcClient.UpdateTransferConfig, effectiveSettings.UpdateTransferConfigSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"transfer_config.name={request.TransferConfig?.Name}"));
.WithGoogleRequestParam("transfer_config.name", request => request.TransferConfig?.Name);
_callDeleteTransferConfig = clientHelper.BuildApiCall<DeleteTransferConfigRequest, pbwkt::Empty>(
GrpcClient.DeleteTransferConfigAsync, GrpcClient.DeleteTransferConfig, effectiveSettings.DeleteTransferConfigSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
.WithGoogleRequestParam("name", request => request.Name);
_callGetTransferConfig = clientHelper.BuildApiCall<GetTransferConfigRequest, TransferConfig>(
GrpcClient.GetTransferConfigAsync, GrpcClient.GetTransferConfig, effectiveSettings.GetTransferConfigSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
.WithGoogleRequestParam("name", request => request.Name);
_callListTransferConfigs = clientHelper.BuildApiCall<ListTransferConfigsRequest, ListTransferConfigsResponse>(
GrpcClient.ListTransferConfigsAsync, GrpcClient.ListTransferConfigs, effectiveSettings.ListTransferConfigsSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
.WithGoogleRequestParam("parent", request => request.Parent);
_callScheduleTransferRuns = clientHelper.BuildApiCall<ScheduleTransferRunsRequest, ScheduleTransferRunsResponse>(
GrpcClient.ScheduleTransferRunsAsync, GrpcClient.ScheduleTransferRuns, effectiveSettings.ScheduleTransferRunsSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
.WithGoogleRequestParam("parent", request => request.Parent);
_callGetTransferRun = clientHelper.BuildApiCall<GetTransferRunRequest, TransferRun>(
GrpcClient.GetTransferRunAsync, GrpcClient.GetTransferRun, effectiveSettings.GetTransferRunSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
.WithGoogleRequestParam("name", request => request.Name);
_callDeleteTransferRun = clientHelper.BuildApiCall<DeleteTransferRunRequest, pbwkt::Empty>(
GrpcClient.DeleteTransferRunAsync, GrpcClient.DeleteTransferRun, effectiveSettings.DeleteTransferRunSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
.WithGoogleRequestParam("name", request => request.Name);
_callListTransferRuns = clientHelper.BuildApiCall<ListTransferRunsRequest, ListTransferRunsResponse>(
GrpcClient.ListTransferRunsAsync, GrpcClient.ListTransferRuns, effectiveSettings.ListTransferRunsSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
.WithGoogleRequestParam("parent", request => request.Parent);
_callListTransferLogs = clientHelper.BuildApiCall<ListTransferLogsRequest, ListTransferLogsResponse>(
GrpcClient.ListTransferLogsAsync, GrpcClient.ListTransferLogs, effectiveSettings.ListTransferLogsSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
.WithGoogleRequestParam("parent", request => request.Parent);
_callCheckValidCreds = clientHelper.BuildApiCall<CheckValidCredsRequest, CheckValidCredsResponse>(
GrpcClient.CheckValidCredsAsync, GrpcClient.CheckValidCreds, effectiveSettings.CheckValidCredsSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
.WithGoogleRequestParam("name", request => request.Name);
_callStartManualTransferRuns = clientHelper.BuildApiCall<StartManualTransferRunsRequest, StartManualTransferRunsResponse>(
GrpcClient.StartManualTransferRunsAsync, GrpcClient.StartManualTransferRuns, effectiveSettings.StartManualTransferRunsSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
.WithGoogleRequestParam("parent", request => request.Parent);
Modify_ApiCall(ref _callGetDataSource);
Modify_GetDataSourceApiCall(ref _callGetDataSource);
Modify_ApiCall(ref _callListDataSources);
Expand Down
Expand Up @@ -4342,58 +4342,58 @@ public BigtableInstanceAdminClientImpl(BigtableInstanceAdmin.BigtableInstanceAdm
grpcClient.CreateOperationsClient(), effectiveSettings.UpdateAppProfileOperationsSettings);
_callCreateInstance = clientHelper.BuildApiCall<CreateInstanceRequest, lro::Operation>(
GrpcClient.CreateInstanceAsync, GrpcClient.CreateInstance, effectiveSettings.CreateInstanceSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
.WithGoogleRequestParam("parent", request => request.Parent);
_callGetInstance = clientHelper.BuildApiCall<GetInstanceRequest, Instance>(
GrpcClient.GetInstanceAsync, GrpcClient.GetInstance, effectiveSettings.GetInstanceSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
.WithGoogleRequestParam("name", request => request.Name);
_callListInstances = clientHelper.BuildApiCall<ListInstancesRequest, ListInstancesResponse>(
GrpcClient.ListInstancesAsync, GrpcClient.ListInstances, effectiveSettings.ListInstancesSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
.WithGoogleRequestParam("parent", request => request.Parent);
_callPartialUpdateInstance = clientHelper.BuildApiCall<PartialUpdateInstanceRequest, lro::Operation>(
GrpcClient.PartialUpdateInstanceAsync, GrpcClient.PartialUpdateInstance, effectiveSettings.PartialUpdateInstanceSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"instance.name={request.Instance?.Name}"));
.WithGoogleRequestParam("instance.name", request => request.Instance?.Name);
_callDeleteInstance = clientHelper.BuildApiCall<DeleteInstanceRequest, pbwkt::Empty>(
GrpcClient.DeleteInstanceAsync, GrpcClient.DeleteInstance, effectiveSettings.DeleteInstanceSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
.WithGoogleRequestParam("name", request => request.Name);
_callCreateCluster = clientHelper.BuildApiCall<CreateClusterRequest, lro::Operation>(
GrpcClient.CreateClusterAsync, GrpcClient.CreateCluster, effectiveSettings.CreateClusterSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
.WithGoogleRequestParam("parent", request => request.Parent);
_callGetCluster = clientHelper.BuildApiCall<GetClusterRequest, Cluster>(
GrpcClient.GetClusterAsync, GrpcClient.GetCluster, effectiveSettings.GetClusterSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
.WithGoogleRequestParam("name", request => request.Name);
_callListClusters = clientHelper.BuildApiCall<ListClustersRequest, ListClustersResponse>(
GrpcClient.ListClustersAsync, GrpcClient.ListClusters, effectiveSettings.ListClustersSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
.WithGoogleRequestParam("parent", request => request.Parent);
_callUpdateCluster = clientHelper.BuildApiCall<Cluster, lro::Operation>(
GrpcClient.UpdateClusterAsync, GrpcClient.UpdateCluster, effectiveSettings.UpdateClusterSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
.WithGoogleRequestParam("name", request => request.Name);
_callDeleteCluster = clientHelper.BuildApiCall<DeleteClusterRequest, pbwkt::Empty>(
GrpcClient.DeleteClusterAsync, GrpcClient.DeleteCluster, effectiveSettings.DeleteClusterSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
.WithGoogleRequestParam("name", request => request.Name);
_callCreateAppProfile = clientHelper.BuildApiCall<CreateAppProfileRequest, AppProfile>(
GrpcClient.CreateAppProfileAsync, GrpcClient.CreateAppProfile, effectiveSettings.CreateAppProfileSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
.WithGoogleRequestParam("parent", request => request.Parent);
_callGetAppProfile = clientHelper.BuildApiCall<GetAppProfileRequest, AppProfile>(
GrpcClient.GetAppProfileAsync, GrpcClient.GetAppProfile, effectiveSettings.GetAppProfileSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
.WithGoogleRequestParam("name", request => request.Name);
_callListAppProfiles = clientHelper.BuildApiCall<ListAppProfilesRequest, ListAppProfilesResponse>(
GrpcClient.ListAppProfilesAsync, GrpcClient.ListAppProfiles, effectiveSettings.ListAppProfilesSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
.WithGoogleRequestParam("parent", request => request.Parent);
_callUpdateAppProfile = clientHelper.BuildApiCall<UpdateAppProfileRequest, lro::Operation>(
GrpcClient.UpdateAppProfileAsync, GrpcClient.UpdateAppProfile, effectiveSettings.UpdateAppProfileSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"app_profile.name={request.AppProfile?.Name}"));
.WithGoogleRequestParam("app_profile.name", request => request.AppProfile?.Name);
_callDeleteAppProfile = clientHelper.BuildApiCall<DeleteAppProfileRequest, pbwkt::Empty>(
GrpcClient.DeleteAppProfileAsync, GrpcClient.DeleteAppProfile, effectiveSettings.DeleteAppProfileSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
.WithGoogleRequestParam("name", request => request.Name);
_callGetIamPolicy = clientHelper.BuildApiCall<iam::GetIamPolicyRequest, iam::Policy>(
GrpcClient.GetIamPolicyAsync, GrpcClient.GetIamPolicy, effectiveSettings.GetIamPolicySettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}"));
.WithGoogleRequestParam("resource", request => request.Resource);
_callSetIamPolicy = clientHelper.BuildApiCall<iam::SetIamPolicyRequest, iam::Policy>(
GrpcClient.SetIamPolicyAsync, GrpcClient.SetIamPolicy, effectiveSettings.SetIamPolicySettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}"));
.WithGoogleRequestParam("resource", request => request.Resource);
_callTestIamPermissions = clientHelper.BuildApiCall<iam::TestIamPermissionsRequest, iam::TestIamPermissionsResponse>(
GrpcClient.TestIamPermissionsAsync, GrpcClient.TestIamPermissions, effectiveSettings.TestIamPermissionsSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}"));
.WithGoogleRequestParam("resource", request => request.Resource);
Modify_ApiCall(ref _callCreateInstance);
Modify_CreateInstanceApiCall(ref _callCreateInstance);
Modify_ApiCall(ref _callGetInstance);
Expand Down

0 comments on commit 215ea7f

Please sign in to comment.