From ab2685d8d3a0e191dc8aef83df36773c07cb3d06 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Tue, 18 Feb 2020 08:21:06 -0800 Subject: [PATCH] fix: Dataproc v1 - AutoscalingPolicy annotation This adds the second resource name pattern to the AutoscalingPolicy resource. Committer: @lukesneeringer PiperOrigin-RevId: 295738415 --- google/cloud/dataproc/v1/autoscaling_policies.proto | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/google/cloud/dataproc/v1/autoscaling_policies.proto b/google/cloud/dataproc/v1/autoscaling_policies.proto index 65035a59..51fbc87d 100644 --- a/google/cloud/dataproc/v1/autoscaling_policies.proto +++ b/google/cloud/dataproc/v1/autoscaling_policies.proto @@ -29,6 +29,11 @@ option java_multiple_files = true; option java_outer_classname = "AutoscalingPoliciesProto"; option java_package = "com.google.cloud.dataproc.v1"; +option (google.api.resource_definition) = { + type: "dataproc.googleapis.com/Region" + pattern: "projects/{project}/regions/{region}" +}; + // The API interface for managing autoscaling policies in the // Dataproc API. service AutoscalingPolicyService { @@ -98,6 +103,7 @@ service AutoscalingPolicyService { message AutoscalingPolicy { option (google.api.resource) = { type: "dataproc.googleapis.com/AutoscalingPolicy" + pattern: "projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}" pattern: "projects/{project}/regions/{region}/autoscalingPolicies/{autoscaling_policy}" };