google-apis-recommender_v1beta1 0.3.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/google/apis/recommender_v1beta1.rb +1 -1
- data/lib/google/apis/recommender_v1beta1/classes.rb +39 -1
- data/lib/google/apis/recommender_v1beta1/gem_version.rb +3 -3
- data/lib/google/apis/recommender_v1beta1/representations.rb +17 -0
- data/lib/google/apis/recommender_v1beta1/service.rb +124 -60
- 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: 953af154463098f04b97ecff058d1af012550959ce2be08f96055693ba49ec09
|
4
|
+
data.tar.gz: 68195ed60c92ee245e93befc6cdbc85622fb9f949a5a910a1baec39c5958ef54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29ed4d3c62909f67b566c79acb2e77d23a5e1e0309b978fc59588422cfc80f9d31b23e37d84c268f816780ac849f67ad016679d5ee1d3d40d487aa4deaaefa78
|
7
|
+
data.tar.gz: 3c483bab2b9b1da3f02a5239f8ab0e45e3eb394d7ac3ed8d30a7f3789b82cc4a6fffea9ddd5bd3cea4c1a9120843f7df9e0529c20b0f3b1b52132f213e07b4b3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Release history for google-apis-recommender_v1beta1
|
2
2
|
|
3
|
+
### v0.8.0 (2021-05-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210522
|
6
|
+
|
7
|
+
### v0.7.0 (2021-05-19)
|
8
|
+
|
9
|
+
* Unspecified changes
|
10
|
+
|
11
|
+
### v0.6.0 (2021-05-13)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210510
|
14
|
+
|
15
|
+
### v0.5.0 (2021-03-31)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210319
|
18
|
+
|
19
|
+
### v0.4.0 (2021-03-10)
|
20
|
+
|
21
|
+
* Regenerated from discovery document revision 20210307
|
22
|
+
* Regenerated using generator version 0.2.0
|
23
|
+
|
3
24
|
### v0.3.0 (2021-03-04)
|
4
25
|
|
5
26
|
* Regenerated from discovery document revision 20210227
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V1beta1'
|
31
31
|
|
32
|
-
#
|
32
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
34
|
end
|
35
35
|
end
|
@@ -61,6 +61,11 @@ module Google
|
|
61
61
|
# @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1CostProjection]
|
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::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SecurityProjection]
|
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::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightStateInfo]
|
@@ -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
|
@@ -369,7 +381,7 @@ module Google
|
|
369
381
|
class GoogleCloudRecommenderV1beta1Operation
|
370
382
|
include Google::Apis::Core::Hashable
|
371
383
|
|
372
|
-
# Type of this operation. Contains one of '
|
384
|
+
# Type of this operation. Contains one of 'add', 'remove', 'replace', 'move', '
|
373
385
|
# copy', 'test' and 'custom' operations. This field is case-insensitive and
|
374
386
|
# always populated.
|
375
387
|
# Corresponds to the JSON property `action`
|
@@ -530,6 +542,11 @@ module Google
|
|
530
542
|
# @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Impact]
|
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,26 @@ module Google
|
|
631
649
|
end
|
632
650
|
end
|
633
651
|
|
652
|
+
# Contains various ways of describing the impact on Security.
|
653
|
+
class GoogleCloudRecommenderV1beta1SecurityProjection
|
654
|
+
include Google::Apis::Core::Hashable
|
655
|
+
|
656
|
+
# This field can be used by the recommender to define details specific to
|
657
|
+
# security impact.
|
658
|
+
# Corresponds to the JSON property `details`
|
659
|
+
# @return [Hash<String,Object>]
|
660
|
+
attr_accessor :details
|
661
|
+
|
662
|
+
def initialize(**args)
|
663
|
+
update!(**args)
|
664
|
+
end
|
665
|
+
|
666
|
+
# Update properties of this object
|
667
|
+
def update!(**args)
|
668
|
+
@details = args[:details] if args.key?(:details)
|
669
|
+
end
|
670
|
+
end
|
671
|
+
|
634
672
|
# Contains various matching options for values for a GCP resource field.
|
635
673
|
class GoogleCloudRecommenderV1beta1ValueMatcher
|
636
674
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RecommenderV1beta1
|
18
18
|
# Version of the google-apis-recommender_v1beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.8.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210522"
|
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 GoogleCloudRecommenderV1beta1SecurityProjection
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
127
133
|
class GoogleCloudRecommenderV1beta1ValueMatcher
|
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::RecommenderV1beta1::GoogleCloudRecommenderV1beta1CostProjection, decorator: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1CostProjection::Representation
|
153
159
|
|
160
|
+
property :security_projection, as: 'securityProjection', class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SecurityProjection, decorator: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SecurityProjection::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::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightStateInfo, decorator: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightStateInfo::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::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Impact, decorator: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Impact::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::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommendationStateInfo, decorator: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommendationStateInfo::Representation
|
284
294
|
|
@@ -308,6 +318,13 @@ module Google
|
|
308
318
|
end
|
309
319
|
end
|
310
320
|
|
321
|
+
class GoogleCloudRecommenderV1beta1SecurityProjection
|
322
|
+
# @private
|
323
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
324
|
+
hash :details, as: 'details'
|
325
|
+
end
|
326
|
+
end
|
327
|
+
|
311
328
|
class GoogleCloudRecommenderV1beta1ValueMatcher
|
312
329
|
# @private
|
313
330
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -80,17 +80,26 @@ module Google
|
|
80
80
|
execute_or_queue_command(command, &block)
|
81
81
|
end
|
82
82
|
|
83
|
-
# Lists insights for
|
84
|
-
# permission for the specified insight type.
|
83
|
+
# Lists insights for the specified Cloud Resource. Requires the recommender.*.
|
84
|
+
# list IAM permission for the specified insight type.
|
85
85
|
# @param [String] parent
|
86
86
|
# Required. The container resource on which to execute the request. Acceptable
|
87
|
-
# formats: 1.
|
88
|
-
# INSIGHT_TYPE_ID]
|
89
|
-
#
|
90
|
-
# /
|
87
|
+
# formats: 1. `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[
|
88
|
+
# INSIGHT_TYPE_ID]` 2. `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]
|
89
|
+
# /insightTypes/[INSIGHT_TYPE_ID]` 3. `folders/[FOLDER_ID]/locations/[LOCATION]/
|
90
|
+
# insightTypes/[INSIGHT_TYPE_ID]` 4. `organizations/[ORGANIZATION_ID]/locations/[
|
91
|
+
# LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP
|
92
|
+
# Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to
|
93
|
+
# supported insight types: https://cloud.google.com/recommender/docs/insights/
|
94
|
+
# insight-types.
|
91
95
|
# @param [String] filter
|
92
96
|
# Optional. Filter expression to restrict the insights returned. Supported
|
93
|
-
# filter fields: state
|
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)
|
94
103
|
# @param [Fixnum] page_size
|
95
104
|
# Optional. The maximum number of results to return from this request. Non-
|
96
105
|
# positive values are ignored. If not specified, the server will determine the
|
@@ -198,18 +207,25 @@ module Google
|
|
198
207
|
execute_or_queue_command(command, &block)
|
199
208
|
end
|
200
209
|
|
201
|
-
# Lists recommendations for
|
202
|
-
# permission for the specified recommender.
|
210
|
+
# Lists recommendations for the specified Cloud Resource. Requires the
|
211
|
+
# recommender.*.list IAM permission for the specified recommender.
|
203
212
|
# @param [String] parent
|
204
213
|
# Required. The container resource on which to execute the request. Acceptable
|
205
|
-
# formats: 1.
|
206
|
-
# RECOMMENDER_ID]
|
207
|
-
#
|
208
|
-
#
|
214
|
+
# formats: 1. `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[
|
215
|
+
# RECOMMENDER_ID]` 2. `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/
|
216
|
+
# recommenders/[RECOMMENDER_ID]` 3. `folders/[FOLDER_ID]/locations/[LOCATION]/
|
217
|
+
# recommenders/[RECOMMENDER_ID]` 4. `organizations/[ORGANIZATION_ID]/locations/[
|
218
|
+
# LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations:
|
219
|
+
# https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported
|
220
|
+
# recommenders: https://cloud.google.com/recommender/docs/recommenders.
|
209
221
|
# @param [String] filter
|
210
222
|
# Filter expression to restrict the recommendations returned. Supported filter
|
211
|
-
# fields: state_info.state
|
212
|
-
#
|
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)
|
213
229
|
# @param [Fixnum] page_size
|
214
230
|
# Optional. The maximum number of results to return from this request. Non-
|
215
231
|
# positive values are ignored. If not specified, the server will determine the
|
@@ -397,17 +413,26 @@ module Google
|
|
397
413
|
execute_or_queue_command(command, &block)
|
398
414
|
end
|
399
415
|
|
400
|
-
# Lists insights for
|
401
|
-
# permission for the specified insight type.
|
416
|
+
# Lists insights for the specified Cloud Resource. Requires the recommender.*.
|
417
|
+
# list IAM permission for the specified insight type.
|
402
418
|
# @param [String] parent
|
403
419
|
# Required. The container resource on which to execute the request. Acceptable
|
404
|
-
# formats: 1.
|
405
|
-
# INSIGHT_TYPE_ID]
|
406
|
-
#
|
407
|
-
# /
|
420
|
+
# formats: 1. `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[
|
421
|
+
# INSIGHT_TYPE_ID]` 2. `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]
|
422
|
+
# /insightTypes/[INSIGHT_TYPE_ID]` 3. `folders/[FOLDER_ID]/locations/[LOCATION]/
|
423
|
+
# insightTypes/[INSIGHT_TYPE_ID]` 4. `organizations/[ORGANIZATION_ID]/locations/[
|
424
|
+
# LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP
|
425
|
+
# Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to
|
426
|
+
# supported insight types: https://cloud.google.com/recommender/docs/insights/
|
427
|
+
# insight-types.
|
408
428
|
# @param [String] filter
|
409
429
|
# Optional. Filter expression to restrict the insights returned. Supported
|
410
|
-
# filter fields: state
|
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)
|
411
436
|
# @param [Fixnum] page_size
|
412
437
|
# Optional. The maximum number of results to return from this request. Non-
|
413
438
|
# positive values are ignored. If not specified, the server will determine the
|
@@ -515,18 +540,25 @@ module Google
|
|
515
540
|
execute_or_queue_command(command, &block)
|
516
541
|
end
|
517
542
|
|
518
|
-
# Lists recommendations for
|
519
|
-
# permission for the specified recommender.
|
543
|
+
# Lists recommendations for the specified Cloud Resource. Requires the
|
544
|
+
# recommender.*.list IAM permission for the specified recommender.
|
520
545
|
# @param [String] parent
|
521
546
|
# Required. The container resource on which to execute the request. Acceptable
|
522
|
-
# formats: 1.
|
523
|
-
# RECOMMENDER_ID]
|
524
|
-
#
|
525
|
-
#
|
547
|
+
# formats: 1. `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[
|
548
|
+
# RECOMMENDER_ID]` 2. `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/
|
549
|
+
# recommenders/[RECOMMENDER_ID]` 3. `folders/[FOLDER_ID]/locations/[LOCATION]/
|
550
|
+
# recommenders/[RECOMMENDER_ID]` 4. `organizations/[ORGANIZATION_ID]/locations/[
|
551
|
+
# LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations:
|
552
|
+
# https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported
|
553
|
+
# recommenders: https://cloud.google.com/recommender/docs/recommenders.
|
526
554
|
# @param [String] filter
|
527
555
|
# Filter expression to restrict the recommendations returned. Supported filter
|
528
|
-
# fields: state_info.state
|
529
|
-
#
|
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)
|
530
562
|
# @param [Fixnum] page_size
|
531
563
|
# Optional. The maximum number of results to return from this request. Non-
|
532
564
|
# positive values are ignored. If not specified, the server will determine the
|
@@ -714,17 +746,26 @@ module Google
|
|
714
746
|
execute_or_queue_command(command, &block)
|
715
747
|
end
|
716
748
|
|
717
|
-
# Lists insights for
|
718
|
-
# permission for the specified insight type.
|
749
|
+
# Lists insights for the specified Cloud Resource. Requires the recommender.*.
|
750
|
+
# list IAM permission for the specified insight type.
|
719
751
|
# @param [String] parent
|
720
752
|
# Required. The container resource on which to execute the request. Acceptable
|
721
|
-
# formats: 1.
|
722
|
-
# INSIGHT_TYPE_ID]
|
723
|
-
#
|
724
|
-
# /
|
753
|
+
# formats: 1. `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[
|
754
|
+
# INSIGHT_TYPE_ID]` 2. `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]
|
755
|
+
# /insightTypes/[INSIGHT_TYPE_ID]` 3. `folders/[FOLDER_ID]/locations/[LOCATION]/
|
756
|
+
# insightTypes/[INSIGHT_TYPE_ID]` 4. `organizations/[ORGANIZATION_ID]/locations/[
|
757
|
+
# LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP
|
758
|
+
# Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to
|
759
|
+
# supported insight types: https://cloud.google.com/recommender/docs/insights/
|
760
|
+
# insight-types.
|
725
761
|
# @param [String] filter
|
726
762
|
# Optional. Filter expression to restrict the insights returned. Supported
|
727
|
-
# filter fields: state
|
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)
|
728
769
|
# @param [Fixnum] page_size
|
729
770
|
# Optional. The maximum number of results to return from this request. Non-
|
730
771
|
# positive values are ignored. If not specified, the server will determine the
|
@@ -832,18 +873,25 @@ module Google
|
|
832
873
|
execute_or_queue_command(command, &block)
|
833
874
|
end
|
834
875
|
|
835
|
-
# Lists recommendations for
|
836
|
-
# permission for the specified recommender.
|
876
|
+
# Lists recommendations for the specified Cloud Resource. Requires the
|
877
|
+
# recommender.*.list IAM permission for the specified recommender.
|
837
878
|
# @param [String] parent
|
838
879
|
# Required. The container resource on which to execute the request. Acceptable
|
839
|
-
# formats: 1.
|
840
|
-
# RECOMMENDER_ID]
|
841
|
-
#
|
842
|
-
#
|
880
|
+
# formats: 1. `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[
|
881
|
+
# RECOMMENDER_ID]` 2. `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/
|
882
|
+
# recommenders/[RECOMMENDER_ID]` 3. `folders/[FOLDER_ID]/locations/[LOCATION]/
|
883
|
+
# recommenders/[RECOMMENDER_ID]` 4. `organizations/[ORGANIZATION_ID]/locations/[
|
884
|
+
# LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations:
|
885
|
+
# https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported
|
886
|
+
# recommenders: https://cloud.google.com/recommender/docs/recommenders.
|
843
887
|
# @param [String] filter
|
844
888
|
# Filter expression to restrict the recommendations returned. Supported filter
|
845
|
-
# fields: state_info.state
|
846
|
-
#
|
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)
|
847
895
|
# @param [Fixnum] page_size
|
848
896
|
# Optional. The maximum number of results to return from this request. Non-
|
849
897
|
# positive values are ignored. If not specified, the server will determine the
|
@@ -1031,17 +1079,26 @@ module Google
|
|
1031
1079
|
execute_or_queue_command(command, &block)
|
1032
1080
|
end
|
1033
1081
|
|
1034
|
-
# Lists insights for
|
1035
|
-
# permission for the specified insight type.
|
1082
|
+
# Lists insights for the specified Cloud Resource. Requires the recommender.*.
|
1083
|
+
# list IAM permission for the specified insight type.
|
1036
1084
|
# @param [String] parent
|
1037
1085
|
# Required. The container resource on which to execute the request. Acceptable
|
1038
|
-
# formats: 1.
|
1039
|
-
# INSIGHT_TYPE_ID]
|
1040
|
-
#
|
1041
|
-
# /
|
1086
|
+
# formats: 1. `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[
|
1087
|
+
# INSIGHT_TYPE_ID]` 2. `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]
|
1088
|
+
# /insightTypes/[INSIGHT_TYPE_ID]` 3. `folders/[FOLDER_ID]/locations/[LOCATION]/
|
1089
|
+
# insightTypes/[INSIGHT_TYPE_ID]` 4. `organizations/[ORGANIZATION_ID]/locations/[
|
1090
|
+
# LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP
|
1091
|
+
# Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to
|
1092
|
+
# supported insight types: https://cloud.google.com/recommender/docs/insights/
|
1093
|
+
# insight-types.
|
1042
1094
|
# @param [String] filter
|
1043
1095
|
# Optional. Filter expression to restrict the insights returned. Supported
|
1044
|
-
# filter fields: state
|
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)
|
1045
1102
|
# @param [Fixnum] page_size
|
1046
1103
|
# Optional. The maximum number of results to return from this request. Non-
|
1047
1104
|
# positive values are ignored. If not specified, the server will determine the
|
@@ -1149,18 +1206,25 @@ module Google
|
|
1149
1206
|
execute_or_queue_command(command, &block)
|
1150
1207
|
end
|
1151
1208
|
|
1152
|
-
# Lists recommendations for
|
1153
|
-
# permission for the specified recommender.
|
1209
|
+
# Lists recommendations for the specified Cloud Resource. Requires the
|
1210
|
+
# recommender.*.list IAM permission for the specified recommender.
|
1154
1211
|
# @param [String] parent
|
1155
1212
|
# Required. The container resource on which to execute the request. Acceptable
|
1156
|
-
# formats: 1.
|
1157
|
-
# RECOMMENDER_ID]
|
1158
|
-
#
|
1159
|
-
#
|
1213
|
+
# formats: 1. `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[
|
1214
|
+
# RECOMMENDER_ID]` 2. `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/
|
1215
|
+
# recommenders/[RECOMMENDER_ID]` 3. `folders/[FOLDER_ID]/locations/[LOCATION]/
|
1216
|
+
# recommenders/[RECOMMENDER_ID]` 4. `organizations/[ORGANIZATION_ID]/locations/[
|
1217
|
+
# LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations:
|
1218
|
+
# https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported
|
1219
|
+
# recommenders: https://cloud.google.com/recommender/docs/recommenders.
|
1160
1220
|
# @param [String] filter
|
1161
1221
|
# Filter expression to restrict the recommendations returned. Supported filter
|
1162
|
-
# fields: state_info.state
|
1163
|
-
#
|
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)
|
1164
1228
|
# @param [Fixnum] page_size
|
1165
1229
|
# Optional. The maximum number of results to return from this request. Non-
|
1166
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_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.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-
|
11
|
+
date: 2021-05-31 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_v1beta1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1beta1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1beta1/v0.8.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-recommender_v1beta1
|
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.
|
72
|
+
rubygems_version: 3.2.17
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Recommender API V1beta1
|