google-cloud-recommender-v1 0.8.6 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -6
- data/lib/google/cloud/recommender/v1/insight_pb.rb +11 -1
- data/lib/google/cloud/recommender/v1/insight_type_config_pb.rb +37 -0
- data/lib/google/cloud/recommender/v1/recommendation_pb.rb +18 -1
- data/lib/google/cloud/recommender/v1/recommender/client.rb +477 -29
- data/lib/google/cloud/recommender/v1/recommender/paths.rb +86 -0
- data/lib/google/cloud/recommender/v1/recommender_config_pb.rb +37 -0
- data/lib/google/cloud/recommender/v1/recommender_service_pb.rb +25 -1
- data/lib/google/cloud/recommender/v1/recommender_service_services_pb.rb +16 -4
- data/lib/google/cloud/recommender/v1/version.rb +1 -1
- data/lib/google/cloud/recommender/v1.rb +2 -0
- data/proto_docs/google/cloud/recommender/v1/insight.rb +21 -0
- data/proto_docs/google/cloud/recommender/v1/insight_type_config.rb +88 -0
- data/proto_docs/google/cloud/recommender/v1/recommendation.rb +47 -2
- data/proto_docs/google/cloud/recommender/v1/recommender_config.rb +88 -0
- data/proto_docs/google/cloud/recommender/v1/recommender_service.rb +141 -25
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +2 -2
- metadata +17 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 707bd3a5f1f0d41f14b85e95e0284f68f52cc3e336f70f62fc70fbd9ed3fe799
|
4
|
+
data.tar.gz: 1dec2653973ae12d7d20f70ca4d1891c22c1c35298ae0acb873ac5b640549007
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db073310ab553b239521da23b4ab67d9f057704b173262a82e94806c3b8d5ec991ffdc902eca3e26aa6b7019924e664670750f0dcb19733faf93e7a2fc807ee7
|
7
|
+
data.tar.gz: a59bfd93c781a96229db7bc7832b482504bc10b9c3b5d3bfc049a75c02eadf529fcb7d891fa303c647ba84931a5780024c12c587ba9192d93b5b84965016d428
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Recommender::V1::ListInsightsRequest.new # (request f
|
|
37
37
|
response = client.list_insights request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-recommender-v1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/recommender)
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -1,11 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/recommender/v1/insight.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/resource_pb'
|
5
7
|
require 'google/protobuf/duration_pb'
|
6
8
|
require 'google/protobuf/struct_pb'
|
7
9
|
require 'google/protobuf/timestamp_pb'
|
8
|
-
require 'google/protobuf'
|
9
10
|
|
10
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
12
|
add_file("google/cloud/recommender/v1/insight.proto", :syntax => :proto3) do
|
@@ -19,6 +20,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
19
20
|
optional :observation_period, :message, 5, "google.protobuf.Duration"
|
20
21
|
optional :state_info, :message, 6, "google.cloud.recommender.v1.InsightStateInfo"
|
21
22
|
optional :category, :enum, 7, "google.cloud.recommender.v1.Insight.Category"
|
23
|
+
optional :severity, :enum, 15, "google.cloud.recommender.v1.Insight.Severity"
|
22
24
|
optional :etag, :string, 11
|
23
25
|
repeated :associated_recommendations, :message, 8, "google.cloud.recommender.v1.Insight.RecommendationReference"
|
24
26
|
end
|
@@ -32,6 +34,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
32
34
|
value :PERFORMANCE, 3
|
33
35
|
value :MANAGEABILITY, 4
|
34
36
|
end
|
37
|
+
add_enum "google.cloud.recommender.v1.Insight.Severity" do
|
38
|
+
value :SEVERITY_UNSPECIFIED, 0
|
39
|
+
value :LOW, 1
|
40
|
+
value :MEDIUM, 2
|
41
|
+
value :HIGH, 3
|
42
|
+
value :CRITICAL, 4
|
43
|
+
end
|
35
44
|
add_message "google.cloud.recommender.v1.InsightStateInfo" do
|
36
45
|
optional :state, :enum, 1, "google.cloud.recommender.v1.InsightStateInfo.State"
|
37
46
|
map :state_metadata, :string, :string, 2
|
@@ -52,6 +61,7 @@ module Google
|
|
52
61
|
Insight = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.Insight").msgclass
|
53
62
|
Insight::RecommendationReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.Insight.RecommendationReference").msgclass
|
54
63
|
Insight::Category = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.Insight.Category").enummodule
|
64
|
+
Insight::Severity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.Insight.Severity").enummodule
|
55
65
|
InsightStateInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.InsightStateInfo").msgclass
|
56
66
|
InsightStateInfo::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.InsightStateInfo.State").enummodule
|
57
67
|
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/recommender/v1/insight_type_config.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/protobuf/struct_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("google/cloud/recommender/v1/insight_type_config.proto", :syntax => :proto3) do
|
13
|
+
add_message "google.cloud.recommender.v1.InsightTypeConfig" do
|
14
|
+
optional :name, :string, 1
|
15
|
+
optional :insight_type_generation_config, :message, 2, "google.cloud.recommender.v1.InsightTypeGenerationConfig"
|
16
|
+
optional :etag, :string, 3
|
17
|
+
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
18
|
+
optional :revision_id, :string, 5
|
19
|
+
map :annotations, :string, :string, 6
|
20
|
+
optional :display_name, :string, 7
|
21
|
+
end
|
22
|
+
add_message "google.cloud.recommender.v1.InsightTypeGenerationConfig" do
|
23
|
+
optional :params, :message, 1, "google.protobuf.Struct"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
module Google
|
29
|
+
module Cloud
|
30
|
+
module Recommender
|
31
|
+
module V1
|
32
|
+
InsightTypeConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.InsightTypeConfig").msgclass
|
33
|
+
InsightTypeGenerationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.InsightTypeGenerationConfig").msgclass
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -1,12 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/recommender/v1/recommendation.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/resource_pb'
|
5
7
|
require 'google/protobuf/duration_pb'
|
6
8
|
require 'google/protobuf/struct_pb'
|
7
9
|
require 'google/protobuf/timestamp_pb'
|
8
10
|
require 'google/type/money_pb'
|
9
|
-
require 'google/protobuf'
|
10
11
|
|
11
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
13
|
add_file("google/cloud/recommender/v1/recommendation.proto", :syntax => :proto3) do
|
@@ -17,16 +18,26 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
17
18
|
optional :last_refresh_time, :message, 4, "google.protobuf.Timestamp"
|
18
19
|
optional :primary_impact, :message, 5, "google.cloud.recommender.v1.Impact"
|
19
20
|
repeated :additional_impact, :message, 6, "google.cloud.recommender.v1.Impact"
|
21
|
+
optional :priority, :enum, 17, "google.cloud.recommender.v1.Recommendation.Priority"
|
20
22
|
optional :content, :message, 7, "google.cloud.recommender.v1.RecommendationContent"
|
21
23
|
optional :state_info, :message, 10, "google.cloud.recommender.v1.RecommendationStateInfo"
|
22
24
|
optional :etag, :string, 11
|
23
25
|
repeated :associated_insights, :message, 14, "google.cloud.recommender.v1.Recommendation.InsightReference"
|
26
|
+
optional :xor_group_id, :string, 18
|
24
27
|
end
|
25
28
|
add_message "google.cloud.recommender.v1.Recommendation.InsightReference" do
|
26
29
|
optional :insight, :string, 1
|
27
30
|
end
|
31
|
+
add_enum "google.cloud.recommender.v1.Recommendation.Priority" do
|
32
|
+
value :PRIORITY_UNSPECIFIED, 0
|
33
|
+
value :P4, 1
|
34
|
+
value :P3, 2
|
35
|
+
value :P2, 3
|
36
|
+
value :P1, 4
|
37
|
+
end
|
28
38
|
add_message "google.cloud.recommender.v1.RecommendationContent" do
|
29
39
|
repeated :operation_groups, :message, 2, "google.cloud.recommender.v1.OperationGroup"
|
40
|
+
optional :overview, :message, 3, "google.protobuf.Struct"
|
30
41
|
end
|
31
42
|
add_message "google.cloud.recommender.v1.OperationGroup" do
|
32
43
|
repeated :operations, :message, 1, "google.cloud.recommender.v1.Operation"
|
@@ -54,10 +65,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
54
65
|
optional :cost, :message, 1, "google.type.Money"
|
55
66
|
optional :duration, :message, 2, "google.protobuf.Duration"
|
56
67
|
end
|
68
|
+
add_message "google.cloud.recommender.v1.SecurityProjection" do
|
69
|
+
optional :details, :message, 2, "google.protobuf.Struct"
|
70
|
+
end
|
57
71
|
add_message "google.cloud.recommender.v1.Impact" do
|
58
72
|
optional :category, :enum, 1, "google.cloud.recommender.v1.Impact.Category"
|
59
73
|
oneof :projection do
|
60
74
|
optional :cost_projection, :message, 100, "google.cloud.recommender.v1.CostProjection"
|
75
|
+
optional :security_projection, :message, 101, "google.cloud.recommender.v1.SecurityProjection"
|
61
76
|
end
|
62
77
|
end
|
63
78
|
add_enum "google.cloud.recommender.v1.Impact.Category" do
|
@@ -88,11 +103,13 @@ module Google
|
|
88
103
|
module V1
|
89
104
|
Recommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.Recommendation").msgclass
|
90
105
|
Recommendation::InsightReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.Recommendation.InsightReference").msgclass
|
106
|
+
Recommendation::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.Recommendation.Priority").enummodule
|
91
107
|
RecommendationContent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.RecommendationContent").msgclass
|
92
108
|
OperationGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.OperationGroup").msgclass
|
93
109
|
Operation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.Operation").msgclass
|
94
110
|
ValueMatcher = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.ValueMatcher").msgclass
|
95
111
|
CostProjection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.CostProjection").msgclass
|
112
|
+
SecurityProjection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.SecurityProjection").msgclass
|
96
113
|
Impact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.Impact").msgclass
|
97
114
|
Impact::Category = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.Impact.Category").enummodule
|
98
115
|
RecommendationStateInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommender.v1.RecommendationStateInfo").msgclass
|