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:
parent
8a1020bf68
commit
ab2685d8d3
|
|
@ -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}"
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue