Skip to content

Commit

Permalink
Regenerate Google.Cloud.Dataproc.V1 (#4213)
Browse files Browse the repository at this point in the history
Adds AutoscalingPolicyClient.

Although technically making a non-virtual member implement an interface is breaking change, and that's what happened to the request messages here, we're going to treat that as such a corner case that it's not worth worrying about.
  • Loading branch information
yoshi-automation authored Feb 7, 2020
1 parent 618837b commit a629906
Show file tree
Hide file tree
Showing 6 changed files with 2,422 additions and 12 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -624,16 +624,15 @@ public void ListClusters1()
/// <summary>Snippet for ListClustersAsync</summary>
public async Task ListClustersAsync2()
{
// Snippet: ListClustersAsync(string,string,string,string,int?,CallSettings)
// Snippet: ListClustersAsync(string,string,string,int?,CallSettings)
// Create client
ClusterControllerClient clusterControllerClient = await ClusterControllerClient.CreateAsync();
// Initialize request argument(s)
string projectId = "";
string region = "";
string filter = "";
// Make the request
PagedAsyncEnumerable<ListClustersResponse, Cluster> response =
clusterControllerClient.ListClustersAsync(projectId: projectId, region: region, filter: filter);
clusterControllerClient.ListClustersAsync(projectId, region);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Cluster item) =>
Expand Down Expand Up @@ -670,16 +669,15 @@ await response.AsRawResponses().ForEachAsync((ListClustersResponse page) =>
/// <summary>Snippet for ListClusters</summary>
public void ListClusters2()
{
// Snippet: ListClusters(string,string,string,string,int?,CallSettings)
// Snippet: ListClusters(string,string,string,int?,CallSettings)
// Create client
ClusterControllerClient clusterControllerClient = ClusterControllerClient.Create();
// Initialize request argument(s)
string projectId = "";
string region = "";
string filter = "";
// Make the request
PagedEnumerable<ListClustersResponse, Cluster> response =
clusterControllerClient.ListClusters(projectId: projectId, region: region, filter: filter);
clusterControllerClient.ListClusters(projectId, region);

// Iterate over all response items, lazily performing RPCs as required
foreach (Cluster item in response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,16 +262,15 @@ public void ListJobs1()
/// <summary>Snippet for ListJobsAsync</summary>
public async Task ListJobsAsync2()
{
// Snippet: ListJobsAsync(string,string,string,string,int?,CallSettings)
// Snippet: ListJobsAsync(string,string,string,int?,CallSettings)
// Create client
JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
// Initialize request argument(s)
string projectId = "";
string region = "";
string filter = "";
// Make the request
PagedAsyncEnumerable<ListJobsResponse, Job> response =
jobControllerClient.ListJobsAsync(projectId: projectId, region: region, filter: filter);
jobControllerClient.ListJobsAsync(projectId, region);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Job item) =>
Expand Down Expand Up @@ -308,16 +307,15 @@ await response.AsRawResponses().ForEachAsync((ListJobsResponse page) =>
/// <summary>Snippet for ListJobs</summary>
public void ListJobs2()
{
// Snippet: ListJobs(string,string,string,string,int?,CallSettings)
// Snippet: ListJobs(string,string,string,int?,CallSettings)
// Create client
JobControllerClient jobControllerClient = JobControllerClient.Create();
// Initialize request argument(s)
string projectId = "";
string region = "";
string filter = "";
// Make the request
PagedEnumerable<ListJobsResponse, Job> response =
jobControllerClient.ListJobs(projectId: projectId, region: region, filter: filter);
jobControllerClient.ListJobs(projectId, region);

// Iterate over all response items, lazily performing RPCs as required
foreach (Job item in response)
Expand Down
Loading

0 comments on commit a629906

Please sign in to comment.