fix: Dataproc v1 - AutoscalingPolicy annotation

This adds the second resource name pattern to the
AutoscalingPolicy resource.

Committer: @lukesneeringer
PiperOrigin-RevId: 295738415
This commit is contained in:
Google APIs 2020-02-18 08:21:06 -08:00 committed by Copybara-Service
parent 8a1020bf68
commit ab2685d8d3
1 changed files with 6 additions and 0 deletions

View File

@ -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}"
};