google-cloud-recommender-v1 0.14.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/recommender/v1/recommendation_pb.rb +1 -1
- data/lib/google/cloud/recommender/v1/recommender/client.rb +25 -2
- data/lib/google/cloud/recommender/v1/recommender/rest/client.rb +231 -1
- data/lib/google/cloud/recommender/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +13 -0
- data/proto_docs/google/cloud/recommender/v1/recommendation.rb +4 -1
- data/proto_docs/google/cloud/recommender/v1/recommender_service.rb +15 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78fd18ce507df303e688db6cecf02ccb129c0ce7282180dc0ea0e9e85cf69024
|
4
|
+
data.tar.gz: 2d45cc0f6792287bb391ac5e640d1af3ddef9e9ff05e575df0cda5bef0f6c2b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a1e67d2dd93719d456dcba24d743a5ab2157d65ef7989b44d640f06f35697ca7dd070975c688e3071d9f009345b6c5b0e4ae8e6ec72f6068093771cd4c53642
|
7
|
+
data.tar.gz: 9b77f0bffe7cce8b3c14496b65454e092215130aa2fc964a7eb117ec510087303bd99c5fb01e1249e83cdaa39f19174499958f01e25c50b3289263f4cd9ce6a2
|
@@ -11,7 +11,7 @@ require 'google/protobuf/timestamp_pb'
|
|
11
11
|
require 'google/type/money_pb'
|
12
12
|
|
13
13
|
|
14
|
-
descriptor_data = "\n0google/cloud/recommender/v1/recommendation.proto\x12\x1bgoogle.cloud.recommender.v1\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/type/money.proto\"\xa2\t\n\x0eRecommendation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1b\n\x13recommender_subtype\x18\x0c \x01(\t\x12\x35\n\x11last_refresh_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x0eprimary_impact\x18\x05 \x01(\x0b\x32#.google.cloud.recommender.v1.Impact\x12>\n\x11\x61\x64\x64itional_impact\x18\x06 \x03(\x0b\x32#.google.cloud.recommender.v1.Impact\x12\x46\n\x08priority\x18\x11 \x01(\x0e\x32\x34.google.cloud.recommender.v1.Recommendation.Priority\x12\x43\n\x07\x63ontent\x18\x07 \x01(\x0b\x32\x32.google.cloud.recommender.v1.RecommendationContent\x12H\n\nstate_info\x18\n \x01(\x0b\x32\x34.google.cloud.recommender.v1.RecommendationStateInfo\x12\x0c\n\x04\x65tag\x18\x0b \x01(\t\x12Y\n\x13\x61ssociated_insights\x18\x0e \x03(\x0b\x32<.google.cloud.recommender.v1.Recommendation.InsightReference\x12\x14\n\x0cxor_group_id\x18\x12 \x01(\t\x1a#\n\x10InsightReference\x12\x0f\n\x07insight\x18\x01 \x01(\t\"D\n\x08Priority\x12\x18\n\x14PRIORITY_UNSPECIFIED\x10\x00\x12\x06\n\x02P4\x10\x01\x12\x06\n\x02P3\x10\x02\x12\x06\n\x02P2\x10\x03\x12\x06\n\x02P1\x10\x04:\xda\x03\xea\x41\xd6\x03\n)recommender.googleapis.com/Recommendation\x12\x63projects/{project}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}\x12rbillingAccounts/{billing_account}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}\x12\x61\x66olders/{folder}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}\x12morganizations/{organization}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}\"\x89\x01\n\x15RecommendationContent\x12\x45\n\x10operation_groups\x18\x02 \x03(\x0b\x32+.google.cloud.recommender.v1.OperationGroup\x12)\n\x08overview\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\"L\n\x0eOperationGroup\x12:\n\noperations\x18\x01 \x03(\x0b\x32&.google.cloud.recommender.v1.Operation\"\xd7\x04\n\tOperation\x12\x0e\n\x06\x61\x63tion\x18\x01 \x01(\t\x12\x15\n\rresource_type\x18\x02 \x01(\t\x12\x10\n\x08resource\x18\x03 \x01(\t\x12\x0c\n\x04path\x18\x04 \x01(\t\x12\x17\n\x0fsource_resource\x18\x05 \x01(\t\x12\x13\n\x0bsource_path\x18\x06 \x01(\t\x12\'\n\x05value\x18\x07 \x01(\x0b\x32\x16.google.protobuf.ValueH\x00\x12\x42\n\rvalue_matcher\x18\n \x01(\x0b\x32).google.cloud.recommender.v1.ValueMatcherH\x00\x12M\n\x0cpath_filters\x18\x08 \x03(\x0b\x32\x37.google.cloud.recommender.v1.Operation.PathFiltersEntry\x12Z\n\x13path_value_matchers\x18\x0b \x03(\x0b\x32=.google.cloud.recommender.v1.Operation.PathValueMatchersEntry\x1aJ\n\x10PathFiltersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\x1a\x63\n\x16PathValueMatchersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).google.cloud.recommender.v1.ValueMatcher:\x02\x38\x01\x42\x0c\n\npath_value\":\n\x0cValueMatcher\x12\x19\n\x0fmatches_pattern\x18\x01 \x01(\tH\x00\x42\x0f\n\rmatch_variant\"
|
14
|
+
descriptor_data = "\n0google/cloud/recommender/v1/recommendation.proto\x12\x1bgoogle.cloud.recommender.v1\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/type/money.proto\"\xa2\t\n\x0eRecommendation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1b\n\x13recommender_subtype\x18\x0c \x01(\t\x12\x35\n\x11last_refresh_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x0eprimary_impact\x18\x05 \x01(\x0b\x32#.google.cloud.recommender.v1.Impact\x12>\n\x11\x61\x64\x64itional_impact\x18\x06 \x03(\x0b\x32#.google.cloud.recommender.v1.Impact\x12\x46\n\x08priority\x18\x11 \x01(\x0e\x32\x34.google.cloud.recommender.v1.Recommendation.Priority\x12\x43\n\x07\x63ontent\x18\x07 \x01(\x0b\x32\x32.google.cloud.recommender.v1.RecommendationContent\x12H\n\nstate_info\x18\n \x01(\x0b\x32\x34.google.cloud.recommender.v1.RecommendationStateInfo\x12\x0c\n\x04\x65tag\x18\x0b \x01(\t\x12Y\n\x13\x61ssociated_insights\x18\x0e \x03(\x0b\x32<.google.cloud.recommender.v1.Recommendation.InsightReference\x12\x14\n\x0cxor_group_id\x18\x12 \x01(\t\x1a#\n\x10InsightReference\x12\x0f\n\x07insight\x18\x01 \x01(\t\"D\n\x08Priority\x12\x18\n\x14PRIORITY_UNSPECIFIED\x10\x00\x12\x06\n\x02P4\x10\x01\x12\x06\n\x02P3\x10\x02\x12\x06\n\x02P2\x10\x03\x12\x06\n\x02P1\x10\x04:\xda\x03\xea\x41\xd6\x03\n)recommender.googleapis.com/Recommendation\x12\x63projects/{project}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}\x12rbillingAccounts/{billing_account}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}\x12\x61\x66olders/{folder}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}\x12morganizations/{organization}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}\"\x89\x01\n\x15RecommendationContent\x12\x45\n\x10operation_groups\x18\x02 \x03(\x0b\x32+.google.cloud.recommender.v1.OperationGroup\x12)\n\x08overview\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\"L\n\x0eOperationGroup\x12:\n\noperations\x18\x01 \x03(\x0b\x32&.google.cloud.recommender.v1.Operation\"\xd7\x04\n\tOperation\x12\x0e\n\x06\x61\x63tion\x18\x01 \x01(\t\x12\x15\n\rresource_type\x18\x02 \x01(\t\x12\x10\n\x08resource\x18\x03 \x01(\t\x12\x0c\n\x04path\x18\x04 \x01(\t\x12\x17\n\x0fsource_resource\x18\x05 \x01(\t\x12\x13\n\x0bsource_path\x18\x06 \x01(\t\x12\'\n\x05value\x18\x07 \x01(\x0b\x32\x16.google.protobuf.ValueH\x00\x12\x42\n\rvalue_matcher\x18\n \x01(\x0b\x32).google.cloud.recommender.v1.ValueMatcherH\x00\x12M\n\x0cpath_filters\x18\x08 \x03(\x0b\x32\x37.google.cloud.recommender.v1.Operation.PathFiltersEntry\x12Z\n\x13path_value_matchers\x18\x0b \x03(\x0b\x32=.google.cloud.recommender.v1.Operation.PathValueMatchersEntry\x1aJ\n\x10PathFiltersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\x1a\x63\n\x16PathValueMatchersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).google.cloud.recommender.v1.ValueMatcher:\x02\x38\x01\x42\x0c\n\npath_value\":\n\x0cValueMatcher\x12\x19\n\x0fmatches_pattern\x18\x01 \x01(\tH\x00\x42\x0f\n\rmatch_variant\"\x93\x01\n\x0e\x43ostProjection\x12 \n\x04\x63ost\x18\x01 \x01(\x0b\x32\x12.google.type.Money\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x16\x63ost_in_local_currency\x18\x03 \x01(\x0b\x32\x12.google.type.Money\">\n\x12SecurityProjection\x12(\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"Y\n\x18SustainabilityProjection\x12\x10\n\x08kg_c_o2e\x18\x01 \x01(\x01\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xec\x01\n\x15ReliabilityProjection\x12J\n\x05risks\x18\x01 \x03(\x0e\x32;.google.cloud.recommender.v1.ReliabilityProjection.RiskType\x12(\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"]\n\x08RiskType\x12\x19\n\x15RISK_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12SERVICE_DISRUPTION\x10\x01\x12\r\n\tDATA_LOSS\x10\x02\x12\x0f\n\x0b\x41\x43\x43\x45SS_DENY\x10\x03\"\xa8\x04\n\x06Impact\x12>\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32,.google.cloud.recommender.v1.Impact.Category\x12\x46\n\x0f\x63ost_projection\x18\x64 \x01(\x0b\x32+.google.cloud.recommender.v1.CostProjectionH\x00\x12N\n\x13security_projection\x18\x65 \x01(\x0b\x32/.google.cloud.recommender.v1.SecurityProjectionH\x00\x12Z\n\x19sustainability_projection\x18\x66 \x01(\x0b\x32\x35.google.cloud.recommender.v1.SustainabilityProjectionH\x00\x12T\n\x16reliability_projection\x18g \x01(\x0b\x32\x32.google.cloud.recommender.v1.ReliabilityProjectionH\x00\"\x85\x01\n\x08\x43\x61tegory\x12\x18\n\x14\x43\x41TEGORY_UNSPECIFIED\x10\x00\x12\x08\n\x04\x43OST\x10\x01\x12\x0c\n\x08SECURITY\x10\x02\x12\x0f\n\x0bPERFORMANCE\x10\x03\x12\x11\n\rMANAGEABILITY\x10\x04\x12\x12\n\x0eSUSTAINABILITY\x10\x05\x12\x0f\n\x0bRELIABILITY\x10\x06\x42\x0c\n\nprojection\"\xde\x02\n\x17RecommendationStateInfo\x12I\n\x05state\x18\x01 \x01(\x0e\x32:.google.cloud.recommender.v1.RecommendationStateInfo.State\x12_\n\x0estate_metadata\x18\x02 \x03(\x0b\x32G.google.cloud.recommender.v1.RecommendationStateInfo.StateMetadataEntry\x1a\x34\n\x12StateMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"a\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0b\n\x07\x43LAIMED\x10\x06\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tDISMISSED\x10\x05\x42\xde\x03\n\x1f\x63om.google.cloud.recommender.v1P\x01ZAcloud.google.com/go/recommender/apiv1/recommenderpb;recommenderpb\xa2\x02\x04\x43REC\xaa\x02\x1bGoogle.Cloud.Recommender.V1\xea\x41\xcf\x02\n&recommender.googleapis.com/Recommender\x12\x42projects/{project}/locations/{location}/recommenders/{recommender}\x12QbillingAccounts/{billing_account}/locations/{location}/recommenders/{recommender}\x12@folders/{folder}/locations/{location}/recommenders/{recommender}\x12Lorganizations/{organization}/locations/{location}/recommenders/{recommender}b\x06proto3"
|
15
15
|
|
16
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
17
|
|
@@ -169,7 +169,8 @@ module Google
|
|
169
169
|
credentials: credentials,
|
170
170
|
endpoint: @config.endpoint,
|
171
171
|
channel_args: @config.channel_args,
|
172
|
-
interceptors: @config.interceptors
|
172
|
+
interceptors: @config.interceptors,
|
173
|
+
channel_pool_config: @config.channel_pool
|
173
174
|
)
|
174
175
|
end
|
175
176
|
|
@@ -231,6 +232,8 @@ module Google
|
|
231
232
|
#
|
232
233
|
# * `severity`
|
233
234
|
#
|
235
|
+
# * `targetResources`
|
236
|
+
#
|
234
237
|
# Examples:
|
235
238
|
#
|
236
239
|
# * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED`
|
@@ -239,8 +242,13 @@ module Google
|
|
239
242
|
#
|
240
243
|
# * `severity = CRITICAL OR severity = HIGH`
|
241
244
|
#
|
245
|
+
# * `targetResources :
|
246
|
+
# //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1`
|
247
|
+
#
|
242
248
|
# * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)`
|
243
249
|
#
|
250
|
+
# The max allowed filter length is 500 characters.
|
251
|
+
#
|
244
252
|
# (These expressions are based on the filter language described at
|
245
253
|
# https://google.aip.dev/160)
|
246
254
|
#
|
@@ -550,6 +558,8 @@ module Google
|
|
550
558
|
#
|
551
559
|
# * `priority`
|
552
560
|
#
|
561
|
+
# * `targetResources`
|
562
|
+
#
|
553
563
|
# Examples:
|
554
564
|
#
|
555
565
|
# * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED`
|
@@ -558,8 +568,13 @@ module Google
|
|
558
568
|
#
|
559
569
|
# * `priority = P1 OR priority = P2`
|
560
570
|
#
|
571
|
+
# * `targetResources :
|
572
|
+
# //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1`
|
573
|
+
#
|
561
574
|
# * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)`
|
562
575
|
#
|
576
|
+
# The max allowed filter length is 500 characters.
|
577
|
+
#
|
563
578
|
# (These expressions are based on the filter language described at
|
564
579
|
# https://google.aip.dev/160)
|
565
580
|
#
|
@@ -745,7 +760,7 @@ module Google
|
|
745
760
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
746
761
|
#
|
747
762
|
# @param name [::String]
|
748
|
-
# Name of the recommendation.
|
763
|
+
# Required. Name of the recommendation.
|
749
764
|
# @param etag [::String]
|
750
765
|
# Fingerprint of the Recommendation. Provides optimistic locking.
|
751
766
|
#
|
@@ -1611,6 +1626,14 @@ module Google
|
|
1611
1626
|
end
|
1612
1627
|
end
|
1613
1628
|
|
1629
|
+
##
|
1630
|
+
# Configuration for the channel pool
|
1631
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1632
|
+
#
|
1633
|
+
def channel_pool
|
1634
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1635
|
+
end
|
1636
|
+
|
1614
1637
|
##
|
1615
1638
|
# Configuration RPC class for the Recommender API.
|
1616
1639
|
#
|
@@ -222,6 +222,8 @@ module Google
|
|
222
222
|
#
|
223
223
|
# * `severity`
|
224
224
|
#
|
225
|
+
# * `targetResources`
|
226
|
+
#
|
225
227
|
# Examples:
|
226
228
|
#
|
227
229
|
# * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED`
|
@@ -230,8 +232,13 @@ module Google
|
|
230
232
|
#
|
231
233
|
# * `severity = CRITICAL OR severity = HIGH`
|
232
234
|
#
|
235
|
+
# * `targetResources :
|
236
|
+
# //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1`
|
237
|
+
#
|
233
238
|
# * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)`
|
234
239
|
#
|
240
|
+
# The max allowed filter length is 500 characters.
|
241
|
+
#
|
235
242
|
# (These expressions are based on the filter language described at
|
236
243
|
# https://google.aip.dev/160)
|
237
244
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -241,6 +248,26 @@ module Google
|
|
241
248
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Recommender::V1::Insight>]
|
242
249
|
#
|
243
250
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
251
|
+
#
|
252
|
+
# @example Basic example
|
253
|
+
# require "google/cloud/recommender/v1"
|
254
|
+
#
|
255
|
+
# # Create a client object. The client can be reused for multiple calls.
|
256
|
+
# client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
|
257
|
+
#
|
258
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
259
|
+
# request = Google::Cloud::Recommender::V1::ListInsightsRequest.new
|
260
|
+
#
|
261
|
+
# # Call the list_insights method.
|
262
|
+
# result = client.list_insights request
|
263
|
+
#
|
264
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
265
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
266
|
+
# result.each do |item|
|
267
|
+
# # Each element is of type ::Google::Cloud::Recommender::V1::Insight.
|
268
|
+
# p item
|
269
|
+
# end
|
270
|
+
#
|
244
271
|
def list_insights request, options = nil
|
245
272
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
246
273
|
|
@@ -305,6 +332,22 @@ module Google
|
|
305
332
|
# @return [::Google::Cloud::Recommender::V1::Insight]
|
306
333
|
#
|
307
334
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
335
|
+
#
|
336
|
+
# @example Basic example
|
337
|
+
# require "google/cloud/recommender/v1"
|
338
|
+
#
|
339
|
+
# # Create a client object. The client can be reused for multiple calls.
|
340
|
+
# client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
|
341
|
+
#
|
342
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
343
|
+
# request = Google::Cloud::Recommender::V1::GetInsightRequest.new
|
344
|
+
#
|
345
|
+
# # Call the get_insight method.
|
346
|
+
# result = client.get_insight request
|
347
|
+
#
|
348
|
+
# # The returned object is of type Google::Cloud::Recommender::V1::Insight.
|
349
|
+
# p result
|
350
|
+
#
|
308
351
|
def get_insight request, options = nil
|
309
352
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
310
353
|
|
@@ -377,6 +420,22 @@ module Google
|
|
377
420
|
# @return [::Google::Cloud::Recommender::V1::Insight]
|
378
421
|
#
|
379
422
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
423
|
+
#
|
424
|
+
# @example Basic example
|
425
|
+
# require "google/cloud/recommender/v1"
|
426
|
+
#
|
427
|
+
# # Create a client object. The client can be reused for multiple calls.
|
428
|
+
# client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
|
429
|
+
#
|
430
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
431
|
+
# request = Google::Cloud::Recommender::V1::MarkInsightAcceptedRequest.new
|
432
|
+
#
|
433
|
+
# # Call the mark_insight_accepted method.
|
434
|
+
# result = client.mark_insight_accepted request
|
435
|
+
#
|
436
|
+
# # The returned object is of type Google::Cloud::Recommender::V1::Insight.
|
437
|
+
# p result
|
438
|
+
#
|
380
439
|
def mark_insight_accepted request, options = nil
|
381
440
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
382
441
|
|
@@ -468,6 +527,8 @@ module Google
|
|
468
527
|
#
|
469
528
|
# * `priority`
|
470
529
|
#
|
530
|
+
# * `targetResources`
|
531
|
+
#
|
471
532
|
# Examples:
|
472
533
|
#
|
473
534
|
# * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED`
|
@@ -476,8 +537,13 @@ module Google
|
|
476
537
|
#
|
477
538
|
# * `priority = P1 OR priority = P2`
|
478
539
|
#
|
540
|
+
# * `targetResources :
|
541
|
+
# //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1`
|
542
|
+
#
|
479
543
|
# * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)`
|
480
544
|
#
|
545
|
+
# The max allowed filter length is 500 characters.
|
546
|
+
#
|
481
547
|
# (These expressions are based on the filter language described at
|
482
548
|
# https://google.aip.dev/160)
|
483
549
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -487,6 +553,26 @@ module Google
|
|
487
553
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Recommender::V1::Recommendation>]
|
488
554
|
#
|
489
555
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
556
|
+
#
|
557
|
+
# @example Basic example
|
558
|
+
# require "google/cloud/recommender/v1"
|
559
|
+
#
|
560
|
+
# # Create a client object. The client can be reused for multiple calls.
|
561
|
+
# client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
|
562
|
+
#
|
563
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
564
|
+
# request = Google::Cloud::Recommender::V1::ListRecommendationsRequest.new
|
565
|
+
#
|
566
|
+
# # Call the list_recommendations method.
|
567
|
+
# result = client.list_recommendations request
|
568
|
+
#
|
569
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
570
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
571
|
+
# result.each do |item|
|
572
|
+
# # Each element is of type ::Google::Cloud::Recommender::V1::Recommendation.
|
573
|
+
# p item
|
574
|
+
# end
|
575
|
+
#
|
490
576
|
def list_recommendations request, options = nil
|
491
577
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
492
578
|
|
@@ -551,6 +637,22 @@ module Google
|
|
551
637
|
# @return [::Google::Cloud::Recommender::V1::Recommendation]
|
552
638
|
#
|
553
639
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
640
|
+
#
|
641
|
+
# @example Basic example
|
642
|
+
# require "google/cloud/recommender/v1"
|
643
|
+
#
|
644
|
+
# # Create a client object. The client can be reused for multiple calls.
|
645
|
+
# client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
|
646
|
+
#
|
647
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
648
|
+
# request = Google::Cloud::Recommender::V1::GetRecommendationRequest.new
|
649
|
+
#
|
650
|
+
# # Call the get_recommendation method.
|
651
|
+
# result = client.get_recommendation request
|
652
|
+
#
|
653
|
+
# # The returned object is of type Google::Cloud::Recommender::V1::Recommendation.
|
654
|
+
# p result
|
655
|
+
#
|
554
656
|
def get_recommendation request, options = nil
|
555
657
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
556
658
|
|
@@ -613,7 +715,7 @@ module Google
|
|
613
715
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
614
716
|
#
|
615
717
|
# @param name [::String]
|
616
|
-
# Name of the recommendation.
|
718
|
+
# Required. Name of the recommendation.
|
617
719
|
# @param etag [::String]
|
618
720
|
# Fingerprint of the Recommendation. Provides optimistic locking.
|
619
721
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -623,6 +725,22 @@ module Google
|
|
623
725
|
# @return [::Google::Cloud::Recommender::V1::Recommendation]
|
624
726
|
#
|
625
727
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
728
|
+
#
|
729
|
+
# @example Basic example
|
730
|
+
# require "google/cloud/recommender/v1"
|
731
|
+
#
|
732
|
+
# # Create a client object. The client can be reused for multiple calls.
|
733
|
+
# client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
|
734
|
+
#
|
735
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
736
|
+
# request = Google::Cloud::Recommender::V1::MarkRecommendationDismissedRequest.new
|
737
|
+
#
|
738
|
+
# # Call the mark_recommendation_dismissed method.
|
739
|
+
# result = client.mark_recommendation_dismissed request
|
740
|
+
#
|
741
|
+
# # The returned object is of type Google::Cloud::Recommender::V1::Recommendation.
|
742
|
+
# p result
|
743
|
+
#
|
626
744
|
def mark_recommendation_dismissed request, options = nil
|
627
745
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
628
746
|
|
@@ -701,6 +819,22 @@ module Google
|
|
701
819
|
# @return [::Google::Cloud::Recommender::V1::Recommendation]
|
702
820
|
#
|
703
821
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
822
|
+
#
|
823
|
+
# @example Basic example
|
824
|
+
# require "google/cloud/recommender/v1"
|
825
|
+
#
|
826
|
+
# # Create a client object. The client can be reused for multiple calls.
|
827
|
+
# client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
|
828
|
+
#
|
829
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
830
|
+
# request = Google::Cloud::Recommender::V1::MarkRecommendationClaimedRequest.new
|
831
|
+
#
|
832
|
+
# # Call the mark_recommendation_claimed method.
|
833
|
+
# result = client.mark_recommendation_claimed request
|
834
|
+
#
|
835
|
+
# # The returned object is of type Google::Cloud::Recommender::V1::Recommendation.
|
836
|
+
# p result
|
837
|
+
#
|
704
838
|
def mark_recommendation_claimed request, options = nil
|
705
839
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
706
840
|
|
@@ -780,6 +914,22 @@ module Google
|
|
780
914
|
# @return [::Google::Cloud::Recommender::V1::Recommendation]
|
781
915
|
#
|
782
916
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
917
|
+
#
|
918
|
+
# @example Basic example
|
919
|
+
# require "google/cloud/recommender/v1"
|
920
|
+
#
|
921
|
+
# # Create a client object. The client can be reused for multiple calls.
|
922
|
+
# client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
|
923
|
+
#
|
924
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
925
|
+
# request = Google::Cloud::Recommender::V1::MarkRecommendationSucceededRequest.new
|
926
|
+
#
|
927
|
+
# # Call the mark_recommendation_succeeded method.
|
928
|
+
# result = client.mark_recommendation_succeeded request
|
929
|
+
#
|
930
|
+
# # The returned object is of type Google::Cloud::Recommender::V1::Recommendation.
|
931
|
+
# p result
|
932
|
+
#
|
783
933
|
def mark_recommendation_succeeded request, options = nil
|
784
934
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
785
935
|
|
@@ -859,6 +1009,22 @@ module Google
|
|
859
1009
|
# @return [::Google::Cloud::Recommender::V1::Recommendation]
|
860
1010
|
#
|
861
1011
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1012
|
+
#
|
1013
|
+
# @example Basic example
|
1014
|
+
# require "google/cloud/recommender/v1"
|
1015
|
+
#
|
1016
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1017
|
+
# client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
|
1018
|
+
#
|
1019
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1020
|
+
# request = Google::Cloud::Recommender::V1::MarkRecommendationFailedRequest.new
|
1021
|
+
#
|
1022
|
+
# # Call the mark_recommendation_failed method.
|
1023
|
+
# result = client.mark_recommendation_failed request
|
1024
|
+
#
|
1025
|
+
# # The returned object is of type Google::Cloud::Recommender::V1::Recommendation.
|
1026
|
+
# p result
|
1027
|
+
#
|
862
1028
|
def mark_recommendation_failed request, options = nil
|
863
1029
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
864
1030
|
|
@@ -932,6 +1098,22 @@ module Google
|
|
932
1098
|
# @return [::Google::Cloud::Recommender::V1::RecommenderConfig]
|
933
1099
|
#
|
934
1100
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1101
|
+
#
|
1102
|
+
# @example Basic example
|
1103
|
+
# require "google/cloud/recommender/v1"
|
1104
|
+
#
|
1105
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1106
|
+
# client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
|
1107
|
+
#
|
1108
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1109
|
+
# request = Google::Cloud::Recommender::V1::GetRecommenderConfigRequest.new
|
1110
|
+
#
|
1111
|
+
# # Call the get_recommender_config method.
|
1112
|
+
# result = client.get_recommender_config request
|
1113
|
+
#
|
1114
|
+
# # The returned object is of type Google::Cloud::Recommender::V1::RecommenderConfig.
|
1115
|
+
# p result
|
1116
|
+
#
|
935
1117
|
def get_recommender_config request, options = nil
|
936
1118
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
937
1119
|
|
@@ -1000,6 +1182,22 @@ module Google
|
|
1000
1182
|
# @return [::Google::Cloud::Recommender::V1::RecommenderConfig]
|
1001
1183
|
#
|
1002
1184
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1185
|
+
#
|
1186
|
+
# @example Basic example
|
1187
|
+
# require "google/cloud/recommender/v1"
|
1188
|
+
#
|
1189
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1190
|
+
# client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
|
1191
|
+
#
|
1192
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1193
|
+
# request = Google::Cloud::Recommender::V1::UpdateRecommenderConfigRequest.new
|
1194
|
+
#
|
1195
|
+
# # Call the update_recommender_config method.
|
1196
|
+
# result = client.update_recommender_config request
|
1197
|
+
#
|
1198
|
+
# # The returned object is of type Google::Cloud::Recommender::V1::RecommenderConfig.
|
1199
|
+
# p result
|
1200
|
+
#
|
1003
1201
|
def update_recommender_config request, options = nil
|
1004
1202
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1005
1203
|
|
@@ -1073,6 +1271,22 @@ module Google
|
|
1073
1271
|
# @return [::Google::Cloud::Recommender::V1::InsightTypeConfig]
|
1074
1272
|
#
|
1075
1273
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1274
|
+
#
|
1275
|
+
# @example Basic example
|
1276
|
+
# require "google/cloud/recommender/v1"
|
1277
|
+
#
|
1278
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1279
|
+
# client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
|
1280
|
+
#
|
1281
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1282
|
+
# request = Google::Cloud::Recommender::V1::GetInsightTypeConfigRequest.new
|
1283
|
+
#
|
1284
|
+
# # Call the get_insight_type_config method.
|
1285
|
+
# result = client.get_insight_type_config request
|
1286
|
+
#
|
1287
|
+
# # The returned object is of type Google::Cloud::Recommender::V1::InsightTypeConfig.
|
1288
|
+
# p result
|
1289
|
+
#
|
1076
1290
|
def get_insight_type_config request, options = nil
|
1077
1291
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1078
1292
|
|
@@ -1141,6 +1355,22 @@ module Google
|
|
1141
1355
|
# @return [::Google::Cloud::Recommender::V1::InsightTypeConfig]
|
1142
1356
|
#
|
1143
1357
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1358
|
+
#
|
1359
|
+
# @example Basic example
|
1360
|
+
# require "google/cloud/recommender/v1"
|
1361
|
+
#
|
1362
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1363
|
+
# client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
|
1364
|
+
#
|
1365
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1366
|
+
# request = Google::Cloud::Recommender::V1::UpdateInsightTypeConfigRequest.new
|
1367
|
+
#
|
1368
|
+
# # Call the update_insight_type_config method.
|
1369
|
+
# result = client.update_insight_type_config request
|
1370
|
+
#
|
1371
|
+
# # The returned object is of type Google::Cloud::Recommender::V1::InsightTypeConfig.
|
1372
|
+
# p result
|
1373
|
+
#
|
1144
1374
|
def update_insight_type_config request, options = nil
|
1145
1375
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1146
1376
|
|
@@ -304,6 +304,19 @@ module Google
|
|
304
304
|
# seconds: 360 # 6 minutes
|
305
305
|
# total_poll_timeout:
|
306
306
|
# seconds: 54000 # 90 minutes
|
307
|
+
# @!attribute [rw] auto_populated_fields
|
308
|
+
# @return [::Array<::String>]
|
309
|
+
# List of top-level fields of the request message, that should be
|
310
|
+
# automatically populated by the client libraries based on their
|
311
|
+
# (google.api.field_info).format. Currently supported format: UUID4.
|
312
|
+
#
|
313
|
+
# Example of a YAML configuration:
|
314
|
+
#
|
315
|
+
# publishing:
|
316
|
+
# method_settings:
|
317
|
+
# - selector: google.example.v1.ExampleService.CreateExample
|
318
|
+
# auto_populated_fields:
|
319
|
+
# - request_id
|
307
320
|
class MethodSettings
|
308
321
|
include ::Google::Protobuf::MessageExts
|
309
322
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -264,6 +264,9 @@ module Google
|
|
264
264
|
# @!attribute [rw] duration
|
265
265
|
# @return [::Google::Protobuf::Duration]
|
266
266
|
# Duration for which this cost applies.
|
267
|
+
# @!attribute [rw] cost_in_local_currency
|
268
|
+
# @return [::Google::Type::Money]
|
269
|
+
# The approximate cost savings in the billing account's local currency.
|
267
270
|
class CostProjection
|
268
271
|
include ::Google::Protobuf::MessageExts
|
269
272
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -335,7 +338,7 @@ module Google
|
|
335
338
|
# Use with CategoryType.SUSTAINABILITY
|
336
339
|
# @!attribute [rw] reliability_projection
|
337
340
|
# @return [::Google::Cloud::Recommender::V1::ReliabilityProjection]
|
338
|
-
# Use with CategoryType.
|
341
|
+
# Use with CategoryType.RELIABILITY
|
339
342
|
class Impact
|
340
343
|
include ::Google::Protobuf::MessageExts
|
341
344
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -63,6 +63,8 @@ module Google
|
|
63
63
|
#
|
64
64
|
# * `severity`
|
65
65
|
#
|
66
|
+
# * `targetResources`
|
67
|
+
#
|
66
68
|
# Examples:
|
67
69
|
#
|
68
70
|
# * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED`
|
@@ -71,8 +73,13 @@ module Google
|
|
71
73
|
#
|
72
74
|
# * `severity = CRITICAL OR severity = HIGH`
|
73
75
|
#
|
76
|
+
# * `targetResources :
|
77
|
+
# //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1`
|
78
|
+
#
|
74
79
|
# * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)`
|
75
80
|
#
|
81
|
+
# The max allowed filter length is 500 characters.
|
82
|
+
#
|
76
83
|
# (These expressions are based on the filter language described at
|
77
84
|
# https://google.aip.dev/160)
|
78
85
|
class ListInsightsRequest
|
@@ -169,6 +176,8 @@ module Google
|
|
169
176
|
#
|
170
177
|
# * `priority`
|
171
178
|
#
|
179
|
+
# * `targetResources`
|
180
|
+
#
|
172
181
|
# Examples:
|
173
182
|
#
|
174
183
|
# * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED`
|
@@ -177,8 +186,13 @@ module Google
|
|
177
186
|
#
|
178
187
|
# * `priority = P1 OR priority = P2`
|
179
188
|
#
|
189
|
+
# * `targetResources :
|
190
|
+
# //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1`
|
191
|
+
#
|
180
192
|
# * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)`
|
181
193
|
#
|
194
|
+
# The max allowed filter length is 500 characters.
|
195
|
+
#
|
182
196
|
# (These expressions are based on the filter language described at
|
183
197
|
# https://google.aip.dev/160)
|
184
198
|
class ListRecommendationsRequest
|
@@ -211,7 +225,7 @@ module Google
|
|
211
225
|
# Request for the `MarkRecommendationDismissed` Method.
|
212
226
|
# @!attribute [rw] name
|
213
227
|
# @return [::String]
|
214
|
-
# Name of the recommendation.
|
228
|
+
# Required. Name of the recommendation.
|
215
229
|
# @!attribute [rw] etag
|
216
230
|
# @return [::String]
|
217
231
|
# Fingerprint of the Recommendation. Provides optimistic locking.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-recommender-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|