Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
docs: generate sample code in the Java microgenerator (#437)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/2eb44d9f-9230-443a-a6c3-d1d42a6b9d96/targets

- [ ] To automatically regenerate this PR, check this box.

PiperOrigin-RevId: 356341083
Source-Link: googleapis/googleapis@8d8c008
  • Loading branch information
yoshi-automation committed Feb 9, 2021
1 parent 2406563 commit bb35671
Show file tree
Hide file tree
Showing 11 changed files with 3,300 additions and 5 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,62 @@
*
* <p>Sample for AutoscalingPolicyServiceClient:
*
* <pre>{@code
* try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
* AutoscalingPolicyServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
* AutoscalingPolicy response =
* autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
* }
* }</pre>
*
* <p>======================= ClusterControllerClient =======================
*
* <p>Service Description: The ClusterControllerService provides methods to manage clusters of
* Compute Engine instances.
*
* <p>Sample for ClusterControllerClient:
*
* <pre>{@code
* try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
* String projectId = "projectId-894832108";
* String region = "region-934795532";
* String clusterName = "clusterName-1141738587";
* Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
* }
* }</pre>
*
* <p>======================= JobControllerClient =======================
*
* <p>Service Description: The JobController provides methods to manage jobs.
*
* <p>Sample for JobControllerClient:
*
* <pre>{@code
* try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
* String projectId = "projectId-894832108";
* String region = "region-934795532";
* Job job = Job.newBuilder().build();
* Job response = jobControllerClient.submitJob(projectId, region, job);
* }
* }</pre>
*
* <p>======================= WorkflowTemplateServiceClient =======================
*
* <p>Service Description: The API interface for managing Workflow Templates in the Dataproc API.
*
* <p>Sample for WorkflowTemplateServiceClient:
*
* <pre>{@code
* try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
* WorkflowTemplateServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
* WorkflowTemplate response =
* workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
* }
* }</pre>
*/
@Generated("by gapic-generator-java")
package com.google.cloud.dataproc.v1;
Expand Down
Loading

0 comments on commit bb35671

Please sign in to comment.