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

docs: generate sample code in the Java microgenerator #437

Merged
merged 1 commit into from Feb 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view

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.

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