Skip to content

Commit 1676bd0

Browse files
Google APIscopybara-github
authored andcommitted
feat: Support utilization insights and cloud hub
docs: Add identifier annotation for field name PiperOrigin-RevId: 922901240
1 parent c832807 commit 1676bd0

5 files changed

Lines changed: 22 additions & 13 deletions

File tree

google/cloud/recommender/v1/insight.proto

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@ syntax = "proto3";
1616

1717
package google.cloud.recommender.v1;
1818

19+
import "google/api/field_behavior.proto";
1920
import "google/api/resource.proto";
2021
import "google/protobuf/duration.proto";
2122
import "google/protobuf/struct.proto";
@@ -95,8 +96,8 @@ message Insight {
9596
string recommendation = 1;
9697
}
9798

98-
// Name of the insight.
99-
string name = 1;
99+
// Identifier. Name of the insight.
100+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
100101

101102
// Free-form human readable summary in English. The maximum length is 500
102103
// characters.

google/cloud/recommender/v1/insight_type_config.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -37,10 +37,10 @@ message InsightTypeConfig {
3737
pattern: "billingAccounts/{billing_account}/locations/{location}/insightTypes/{insight_type}/config"
3838
};
3939

40-
// Name of insight type config.
40+
// Identifier. Name of insight type config.
4141
// Eg,
4242
// projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config
43-
string name = 1;
43+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
4444

4545
// InsightTypeGenerationConfig which configures the generation of
4646
// insights for this insight type.

google/cloud/recommender/v1/recommendation.proto

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@ syntax = "proto3";
1616

1717
package google.cloud.recommender.v1;
1818

19+
import "google/api/field_behavior.proto";
1920
import "google/api/resource.proto";
2021
import "google/protobuf/duration.proto";
2122
import "google/protobuf/struct.proto";
@@ -71,8 +72,8 @@ message Recommendation {
7172
string insight = 1;
7273
}
7374

74-
// Name of recommendation.
75-
string name = 1;
75+
// Identifier. Name of recommendation.
76+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
7677

7778
// Free-form human readable summary in English. The maximum length is 500
7879
// characters.
@@ -123,6 +124,9 @@ message Recommendation {
123124
// exclusive group. This means that only one recommendation within the group
124125
// is suggested to be applied.
125126
string xor_group_id = 18;
127+
128+
// Fully qualified resource names that this recommendation is targeting.
129+
repeated string target_resources = 19;
126130
}
127131

128132
// Contains what resources are changing and how they are changing.
@@ -236,6 +240,7 @@ message Operation {
236240

237241
// Contains various matching options for values for a GCP resource field.
238242
message ValueMatcher {
243+
// To be used for full regex matching.
239244
oneof match_variant {
240245
// To be used for full regex matching. The regular expression is using the
241246
// Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be
@@ -346,6 +351,9 @@ message Impact {
346351
// Use with CategoryType.RELIABILITY
347352
ReliabilityProjection reliability_projection = 103;
348353
}
354+
355+
// The service that this impact is associated with.
356+
string service = 3;
349357
}
350358

351359
// Information for state. Contains state and metadata.

google/cloud/recommender/v1/recommender_config.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -37,10 +37,10 @@ message RecommenderConfig {
3737
pattern: "billingAccounts/{billing_account}/locations/{location}/recommenders/{recommender}/config"
3838
};
3939

40-
// Name of recommender config.
40+
// Identifier. Name of recommender config.
4141
// Eg,
4242
// projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config
43-
string name = 1;
43+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
4444

4545
// RecommenderGenerationConfig which configures the Generation of
4646
// recommendations for this recommender.

google/cloud/recommender/v1/recommender_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)