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

Commit 5d2e042

Browse files
fix(deps): require google-api-core>=1.32.0,>=2.8.0 (#217)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 459095142 Source-Link: googleapis/googleapis@4f1be99 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ae686d9cde4fc3e36d0ac02efb8643b15890c1ed Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWU2ODZkOWNkZTRmYzNlMzZkMGFjMDJlZmI4NjQzYjE1ODkwYzFlZCJ9 feat: Implement configurable recommenders and update .bazel files PiperOrigin-RevId: 457101611 Source-Link: googleapis/googleapis@c13c88b Source-Link: https://github.com/googleapis/googleapis-gen/commit/4eb3716b18c24627d23a5998c1d3f95edcc897c3 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGViMzcxNmIxOGMyNDYyN2QyM2E1OTk4YzFkM2Y5NWVkY2M4OTdjMyJ9 feat: add audience parameter PiperOrigin-RevId: 456827138 Source-Link: googleapis/googleapis@23f1a15 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4075a8514f676691ec156688a5bbf183aa9893ce Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDA3NWE4NTE0ZjY3NjY5MWVjMTU2Njg4YTViYmYxODNhYTk4OTNjZSJ9
1 parent e15db74 commit 5d2e042

31 files changed

+4314
-397
lines changed

google/cloud/recommender/__init__.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
)
2020
from google.cloud.recommender_v1.services.recommender.client import RecommenderClient
2121
from google.cloud.recommender_v1.types.insight import Insight, InsightStateInfo
22+
from google.cloud.recommender_v1.types.insight_type_config import (
23+
InsightTypeConfig,
24+
InsightTypeGenerationConfig,
25+
)
2226
from google.cloud.recommender_v1.types.recommendation import (
2327
CostProjection,
2428
Impact,
@@ -30,9 +34,15 @@
3034
SecurityProjection,
3135
ValueMatcher,
3236
)
37+
from google.cloud.recommender_v1.types.recommender_config import (
38+
RecommenderConfig,
39+
RecommenderGenerationConfig,
40+
)
3341
from google.cloud.recommender_v1.types.recommender_service import (
3442
GetInsightRequest,
43+
GetInsightTypeConfigRequest,
3544
GetRecommendationRequest,
45+
GetRecommenderConfigRequest,
3646
ListInsightsRequest,
3747
ListInsightsResponse,
3848
ListRecommendationsRequest,
@@ -41,13 +51,17 @@
4151
MarkRecommendationClaimedRequest,
4252
MarkRecommendationFailedRequest,
4353
MarkRecommendationSucceededRequest,
54+
UpdateInsightTypeConfigRequest,
55+
UpdateRecommenderConfigRequest,
4456
)
4557

4658
__all__ = (
4759
"RecommenderClient",
4860
"RecommenderAsyncClient",
4961
"Insight",
5062
"InsightStateInfo",
63+
"InsightTypeConfig",
64+
"InsightTypeGenerationConfig",
5165
"CostProjection",
5266
"Impact",
5367
"Operation",
@@ -57,8 +71,12 @@
5771
"RecommendationStateInfo",
5872
"SecurityProjection",
5973
"ValueMatcher",
74+
"RecommenderConfig",
75+
"RecommenderGenerationConfig",
6076
"GetInsightRequest",
77+
"GetInsightTypeConfigRequest",
6178
"GetRecommendationRequest",
79+
"GetRecommenderConfigRequest",
6280
"ListInsightsRequest",
6381
"ListInsightsResponse",
6482
"ListRecommendationsRequest",
@@ -67,4 +85,6 @@
6785
"MarkRecommendationClaimedRequest",
6886
"MarkRecommendationFailedRequest",
6987
"MarkRecommendationSucceededRequest",
88+
"UpdateInsightTypeConfigRequest",
89+
"UpdateRecommenderConfigRequest",
7090
)

google/cloud/recommender_v1/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
from .services.recommender import RecommenderAsyncClient, RecommenderClient
1818
from .types.insight import Insight, InsightStateInfo
19+
from .types.insight_type_config import InsightTypeConfig, InsightTypeGenerationConfig
1920
from .types.recommendation import (
2021
CostProjection,
2122
Impact,
@@ -27,9 +28,12 @@
2728
SecurityProjection,
2829
ValueMatcher,
2930
)
31+
from .types.recommender_config import RecommenderConfig, RecommenderGenerationConfig
3032
from .types.recommender_service import (
3133
GetInsightRequest,
34+
GetInsightTypeConfigRequest,
3235
GetRecommendationRequest,
36+
GetRecommenderConfigRequest,
3337
ListInsightsRequest,
3438
ListInsightsResponse,
3539
ListRecommendationsRequest,
@@ -38,16 +42,22 @@
3842
MarkRecommendationClaimedRequest,
3943
MarkRecommendationFailedRequest,
4044
MarkRecommendationSucceededRequest,
45+
UpdateInsightTypeConfigRequest,
46+
UpdateRecommenderConfigRequest,
4147
)
4248

4349
__all__ = (
4450
"RecommenderAsyncClient",
4551
"CostProjection",
4652
"GetInsightRequest",
53+
"GetInsightTypeConfigRequest",
4754
"GetRecommendationRequest",
55+
"GetRecommenderConfigRequest",
4856
"Impact",
4957
"Insight",
5058
"InsightStateInfo",
59+
"InsightTypeConfig",
60+
"InsightTypeGenerationConfig",
5161
"ListInsightsRequest",
5262
"ListInsightsResponse",
5363
"ListRecommendationsRequest",
@@ -62,6 +72,10 @@
6272
"RecommendationContent",
6373
"RecommendationStateInfo",
6474
"RecommenderClient",
75+
"RecommenderConfig",
76+
"RecommenderGenerationConfig",
6577
"SecurityProjection",
78+
"UpdateInsightTypeConfigRequest",
79+
"UpdateRecommenderConfigRequest",
6680
"ValueMatcher",
6781
)

google/cloud/recommender_v1/gapic_metadata.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,21 @@
1515
"get_insight"
1616
]
1717
},
18+
"GetInsightTypeConfig": {
19+
"methods": [
20+
"get_insight_type_config"
21+
]
22+
},
1823
"GetRecommendation": {
1924
"methods": [
2025
"get_recommendation"
2126
]
2227
},
28+
"GetRecommenderConfig": {
29+
"methods": [
30+
"get_recommender_config"
31+
]
32+
},
2333
"ListInsights": {
2434
"methods": [
2535
"list_insights"
@@ -49,6 +59,16 @@
4959
"methods": [
5060
"mark_recommendation_succeeded"
5161
]
62+
},
63+
"UpdateInsightTypeConfig": {
64+
"methods": [
65+
"update_insight_type_config"
66+
]
67+
},
68+
"UpdateRecommenderConfig": {
69+
"methods": [
70+
"update_recommender_config"
71+
]
5272
}
5373
}
5474
},
@@ -60,11 +80,21 @@
6080
"get_insight"
6181
]
6282
},
83+
"GetInsightTypeConfig": {
84+
"methods": [
85+
"get_insight_type_config"
86+
]
87+
},
6388
"GetRecommendation": {
6489
"methods": [
6590
"get_recommendation"
6691
]
6792
},
93+
"GetRecommenderConfig": {
94+
"methods": [
95+
"get_recommender_config"
96+
]
97+
},
6898
"ListInsights": {
6999
"methods": [
70100
"list_insights"
@@ -94,6 +124,16 @@
94124
"methods": [
95125
"mark_recommendation_succeeded"
96126
]
127+
},
128+
"UpdateInsightTypeConfig": {
129+
"methods": [
130+
"update_insight_type_config"
131+
]
132+
},
133+
"UpdateRecommenderConfig": {
134+
"methods": [
135+
"update_recommender_config"
136+
]
97137
}
98138
}
99139
}

0 commit comments

Comments
 (0)