google-apis-recommender_v1 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f21f11594182b6761f0d0a3bb162da86f9a7650df5d86c4844be564878503eae
4
- data.tar.gz: 4a6fc2727ae8faa2230f002100db8f4d257ba73c2a180b0bbf49e4535d634241
3
+ metadata.gz: d7734955e85ab3a0ab81b7e4b798554211e4f3faa5be7b29d11cc8218f411611
4
+ data.tar.gz: 12e060222999ebc282a187b6da48d45b569038f80b52565e8afaf5b03d74d2aa
5
5
  SHA512:
6
- metadata.gz: 8fccb29dd2f1ba7594826f81dbe96f1da0637872ac68fafc5524dcf7f8ab886ff00551c16e2f56ea048304c96decd83369063220551e85281fe5b416fb228631
7
- data.tar.gz: 38ef89c082087e5a822ac4254cc27eb3f6ecd8d3ed3e4200cbc264a68454e20baad990f0e15e0166a4952a15718ae36e73f28bf316bb25e6b44f5e2bfa9f7774
6
+ metadata.gz: c6890ccaa552edddffff58096cded2813f535b748031a365d8d9b22cc9c92cb7ca50216b5239492727f353713c463f589e37e3a6f3b3e33c6b2fb0474446935c
7
+ data.tar.gz: afcd640bf46a960deecd650895770dd6e8691162198e1586e0d64c30daa0c2a53d3296be4a05715b9ebf6f2e43c98b5c8dc8f4471d36828b90352609952e65c9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-recommender_v1
2
2
 
3
+ ### v0.6.0 (2021-05-13)
4
+
5
+ * Regenerated from discovery document revision 20210510
6
+
3
7
  ### v0.5.0 (2021-03-24)
4
8
 
5
9
  * Regenerated from discovery document revision 20210319
@@ -61,6 +61,11 @@ module Google
61
61
  # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1CostProjection]
62
62
  attr_accessor :cost_projection
63
63
 
64
+ # Contains various ways of describing the impact on Security.
65
+ # Corresponds to the JSON property `securityProjection`
66
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1SecurityProjection]
67
+ attr_accessor :security_projection
68
+
64
69
  def initialize(**args)
65
70
  update!(**args)
66
71
  end
@@ -69,6 +74,7 @@ module Google
69
74
  def update!(**args)
70
75
  @category = args[:category] if args.key?(:category)
71
76
  @cost_projection = args[:cost_projection] if args.key?(:cost_projection)
77
+ @security_projection = args[:security_projection] if args.key?(:security_projection)
72
78
  end
73
79
  end
74
80
 
@@ -126,6 +132,11 @@ module Google
126
132
  # @return [String]
127
133
  attr_accessor :observation_period
128
134
 
135
+ # Insight's severity.
136
+ # Corresponds to the JSON property `severity`
137
+ # @return [String]
138
+ attr_accessor :severity
139
+
129
140
  # Information related to insight state.
130
141
  # Corresponds to the JSON property `stateInfo`
131
142
  # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightStateInfo]
@@ -151,6 +162,7 @@ module Google
151
162
  @last_refresh_time = args[:last_refresh_time] if args.key?(:last_refresh_time)
152
163
  @name = args[:name] if args.key?(:name)
153
164
  @observation_period = args[:observation_period] if args.key?(:observation_period)
165
+ @severity = args[:severity] if args.key?(:severity)
154
166
  @state_info = args[:state_info] if args.key?(:state_info)
155
167
  @target_resources = args[:target_resources] if args.key?(:target_resources)
156
168
  end
@@ -530,6 +542,11 @@ module Google
530
542
  # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Impact]
531
543
  attr_accessor :primary_impact
532
544
 
545
+ # Recommendation's priority.
546
+ # Corresponds to the JSON property `priority`
547
+ # @return [String]
548
+ attr_accessor :priority
549
+
533
550
  # Contains an identifier for a subtype of recommendations produced for the same
534
551
  # recommender. Subtype is a function of content and impact, meaning a new
535
552
  # subtype might be added when significant changes to `content` or `
@@ -560,6 +577,7 @@ module Google
560
577
  @last_refresh_time = args[:last_refresh_time] if args.key?(:last_refresh_time)
561
578
  @name = args[:name] if args.key?(:name)
562
579
  @primary_impact = args[:primary_impact] if args.key?(:primary_impact)
580
+ @priority = args[:priority] if args.key?(:priority)
563
581
  @recommender_subtype = args[:recommender_subtype] if args.key?(:recommender_subtype)
564
582
  @state_info = args[:state_info] if args.key?(:state_info)
565
583
  end
@@ -631,6 +649,25 @@ module Google
631
649
  end
632
650
  end
633
651
 
652
+ # Contains various ways of describing the impact on Security.
653
+ class GoogleCloudRecommenderV1SecurityProjection
654
+ include Google::Apis::Core::Hashable
655
+
656
+ # Additional security impact details that is provided by the recommender.
657
+ # Corresponds to the JSON property `details`
658
+ # @return [Hash<String,Object>]
659
+ attr_accessor :details
660
+
661
+ def initialize(**args)
662
+ update!(**args)
663
+ end
664
+
665
+ # Update properties of this object
666
+ def update!(**args)
667
+ @details = args[:details] if args.key?(:details)
668
+ end
669
+ end
670
+
634
671
  # Contains various matching options for values for a GCP resource field.
635
672
  class GoogleCloudRecommenderV1ValueMatcher
636
673
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RecommenderV1
18
18
  # Version of the google-apis-recommender_v1 gem
19
- GEM_VERSION = "0.5.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210319"
25
+ REVISION = "20210510"
26
26
  end
27
27
  end
28
28
  end
@@ -124,6 +124,12 @@ module Google
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
+ class GoogleCloudRecommenderV1SecurityProjection
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
127
133
  class GoogleCloudRecommenderV1ValueMatcher
128
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
135
 
@@ -151,6 +157,8 @@ module Google
151
157
  property :category, as: 'category'
152
158
  property :cost_projection, as: 'costProjection', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1CostProjection, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1CostProjection::Representation
153
159
 
160
+ property :security_projection, as: 'securityProjection', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1SecurityProjection, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1SecurityProjection::Representation
161
+
154
162
  end
155
163
  end
156
164
 
@@ -167,6 +175,7 @@ module Google
167
175
  property :last_refresh_time, as: 'lastRefreshTime'
168
176
  property :name, as: 'name'
169
177
  property :observation_period, as: 'observationPeriod'
178
+ property :severity, as: 'severity'
170
179
  property :state_info, as: 'stateInfo', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightStateInfo, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightStateInfo::Representation
171
180
 
172
181
  collection :target_resources, as: 'targetResources'
@@ -279,6 +288,7 @@ module Google
279
288
  property :name, as: 'name'
280
289
  property :primary_impact, as: 'primaryImpact', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Impact, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Impact::Representation
281
290
 
291
+ property :priority, as: 'priority'
282
292
  property :recommender_subtype, as: 'recommenderSubtype'
283
293
  property :state_info, as: 'stateInfo', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationStateInfo, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationStateInfo::Representation
284
294
 
@@ -308,6 +318,13 @@ module Google
308
318
  end
309
319
  end
310
320
 
321
+ class GoogleCloudRecommenderV1SecurityProjection
322
+ # @private
323
+ class Representation < Google::Apis::Core::JsonRepresentation
324
+ hash :details, as: 'details'
325
+ end
326
+ end
327
+
311
328
  class GoogleCloudRecommenderV1ValueMatcher
312
329
  # @private
313
330
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -91,10 +91,15 @@ module Google
91
91
  # LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP
92
92
  # Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to
93
93
  # supported insight types: https://cloud.google.com/recommender/docs/insights/
94
- # insight-types.)
94
+ # insight-types.
95
95
  # @param [String] filter
96
96
  # Optional. Filter expression to restrict the insights returned. Supported
97
- # filter fields: state Eg: `state:"DISMISSED" or state:"ACTIVE"
97
+ # filter fields: * `stateInfo.state` * `insightSubtype` * `severity` Examples: *
98
+ # `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype =
99
+ # PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` * `stateInfo.
100
+ # state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` (These
101
+ # expressions are based on the filter language described at https://google.aip.
102
+ # dev/160)
98
103
  # @param [Fixnum] page_size
99
104
  # Optional. The maximum number of results to return from this request. Non-
100
105
  # positive values are ignored. If not specified, the server will determine the
@@ -215,8 +220,12 @@ module Google
215
220
  # recommenders: https://cloud.google.com/recommender/docs/recommenders.
216
221
  # @param [String] filter
217
222
  # Filter expression to restrict the recommendations returned. Supported filter
218
- # fields: state_info.state Eg: `state_info.state:"DISMISSED" or state_info.state:
219
- # "FAILED"
223
+ # fields: * `state_info.state` * `recommenderSubtype` * `priority` Examples: * `
224
+ # stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `recommenderSubtype
225
+ # = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` * `priority = P1 OR
226
+ # priority = P2` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)
227
+ # ` (These expressions are based on the filter language described at https://
228
+ # google.aip.dev/160)
220
229
  # @param [Fixnum] page_size
221
230
  # Optional. The maximum number of results to return from this request. Non-
222
231
  # positive values are ignored. If not specified, the server will determine the
@@ -415,10 +424,15 @@ module Google
415
424
  # LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP
416
425
  # Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to
417
426
  # supported insight types: https://cloud.google.com/recommender/docs/insights/
418
- # insight-types.)
427
+ # insight-types.
419
428
  # @param [String] filter
420
429
  # Optional. Filter expression to restrict the insights returned. Supported
421
- # filter fields: state Eg: `state:"DISMISSED" or state:"ACTIVE"
430
+ # filter fields: * `stateInfo.state` * `insightSubtype` * `severity` Examples: *
431
+ # `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype =
432
+ # PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` * `stateInfo.
433
+ # state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` (These
434
+ # expressions are based on the filter language described at https://google.aip.
435
+ # dev/160)
422
436
  # @param [Fixnum] page_size
423
437
  # Optional. The maximum number of results to return from this request. Non-
424
438
  # positive values are ignored. If not specified, the server will determine the
@@ -539,8 +553,12 @@ module Google
539
553
  # recommenders: https://cloud.google.com/recommender/docs/recommenders.
540
554
  # @param [String] filter
541
555
  # Filter expression to restrict the recommendations returned. Supported filter
542
- # fields: state_info.state Eg: `state_info.state:"DISMISSED" or state_info.state:
543
- # "FAILED"
556
+ # fields: * `state_info.state` * `recommenderSubtype` * `priority` Examples: * `
557
+ # stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `recommenderSubtype
558
+ # = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` * `priority = P1 OR
559
+ # priority = P2` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)
560
+ # ` (These expressions are based on the filter language described at https://
561
+ # google.aip.dev/160)
544
562
  # @param [Fixnum] page_size
545
563
  # Optional. The maximum number of results to return from this request. Non-
546
564
  # positive values are ignored. If not specified, the server will determine the
@@ -739,10 +757,15 @@ module Google
739
757
  # LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP
740
758
  # Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to
741
759
  # supported insight types: https://cloud.google.com/recommender/docs/insights/
742
- # insight-types.)
760
+ # insight-types.
743
761
  # @param [String] filter
744
762
  # Optional. Filter expression to restrict the insights returned. Supported
745
- # filter fields: state Eg: `state:"DISMISSED" or state:"ACTIVE"
763
+ # filter fields: * `stateInfo.state` * `insightSubtype` * `severity` Examples: *
764
+ # `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype =
765
+ # PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` * `stateInfo.
766
+ # state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` (These
767
+ # expressions are based on the filter language described at https://google.aip.
768
+ # dev/160)
746
769
  # @param [Fixnum] page_size
747
770
  # Optional. The maximum number of results to return from this request. Non-
748
771
  # positive values are ignored. If not specified, the server will determine the
@@ -863,8 +886,12 @@ module Google
863
886
  # recommenders: https://cloud.google.com/recommender/docs/recommenders.
864
887
  # @param [String] filter
865
888
  # Filter expression to restrict the recommendations returned. Supported filter
866
- # fields: state_info.state Eg: `state_info.state:"DISMISSED" or state_info.state:
867
- # "FAILED"
889
+ # fields: * `state_info.state` * `recommenderSubtype` * `priority` Examples: * `
890
+ # stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `recommenderSubtype
891
+ # = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` * `priority = P1 OR
892
+ # priority = P2` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)
893
+ # ` (These expressions are based on the filter language described at https://
894
+ # google.aip.dev/160)
868
895
  # @param [Fixnum] page_size
869
896
  # Optional. The maximum number of results to return from this request. Non-
870
897
  # positive values are ignored. If not specified, the server will determine the
@@ -1063,10 +1090,15 @@ module Google
1063
1090
  # LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP
1064
1091
  # Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to
1065
1092
  # supported insight types: https://cloud.google.com/recommender/docs/insights/
1066
- # insight-types.)
1093
+ # insight-types.
1067
1094
  # @param [String] filter
1068
1095
  # Optional. Filter expression to restrict the insights returned. Supported
1069
- # filter fields: state Eg: `state:"DISMISSED" or state:"ACTIVE"
1096
+ # filter fields: * `stateInfo.state` * `insightSubtype` * `severity` Examples: *
1097
+ # `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype =
1098
+ # PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` * `stateInfo.
1099
+ # state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` (These
1100
+ # expressions are based on the filter language described at https://google.aip.
1101
+ # dev/160)
1070
1102
  # @param [Fixnum] page_size
1071
1103
  # Optional. The maximum number of results to return from this request. Non-
1072
1104
  # positive values are ignored. If not specified, the server will determine the
@@ -1187,8 +1219,12 @@ module Google
1187
1219
  # recommenders: https://cloud.google.com/recommender/docs/recommenders.
1188
1220
  # @param [String] filter
1189
1221
  # Filter expression to restrict the recommendations returned. Supported filter
1190
- # fields: state_info.state Eg: `state_info.state:"DISMISSED" or state_info.state:
1191
- # "FAILED"
1222
+ # fields: * `state_info.state` * `recommenderSubtype` * `priority` Examples: * `
1223
+ # stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `recommenderSubtype
1224
+ # = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` * `priority = P1 OR
1225
+ # priority = P2` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)
1226
+ # ` (These expressions are based on the filter language described at https://
1227
+ # google.aip.dev/160)
1192
1228
  # @param [Fixnum] page_size
1193
1229
  # Optional. The maximum number of results to return from this request. Non-
1194
1230
  # positive values are ignored. If not specified, the server will determine the
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-recommender_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.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: 2021-03-29 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-recommender_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1/v0.5.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1/v0.6.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-recommender_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Recommender API V1