google-apis-recommender_v1beta1 0.29.0 → 0.31.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 +8 -0
- data/lib/google/apis/recommender_v1beta1/classes.rb +94 -0
- data/lib/google/apis/recommender_v1beta1/gem_version.rb +3 -3
- data/lib/google/apis/recommender_v1beta1/representations.rb +56 -0
- data/lib/google/apis/recommender_v1beta1/service.rb +70 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48a78540140dcc8e7c731ca3f1065f6b8587cf7833619782f0e94e775572756e
|
4
|
+
data.tar.gz: ee101a4b93f4463cb45d1aa3463ff15313fb21c5701c18a1e84ab29b6a1e2174
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a33a220fdfa974517310731e40dd49ba2372e20d5e54da62a42e9edfa96fb3d662680faf9dd32dfc86ef820b49a4c6adb9372d7ad54f8a095a738eb9f85aebf
|
7
|
+
data.tar.gz: cf80ea898bee105895b3a0e02d813a631c63c61b2957449cc8a22b21764afb6b2f73decf8c2ca7bcaf4eefdcdc9a098990f6c2d12df90edc1a70e59ed6f78e81
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-recommender_v1beta1
|
2
2
|
|
3
|
+
### v0.31.0 (2023-06-18)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230612
|
6
|
+
|
7
|
+
### v0.30.0 (2023-02-15)
|
8
|
+
|
9
|
+
* Regenerated using generator version 0.12.0
|
10
|
+
|
3
11
|
### v0.29.0 (2023-01-15)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230108
|
@@ -226,6 +226,27 @@ module Google
|
|
226
226
|
end
|
227
227
|
end
|
228
228
|
|
229
|
+
# The type of insight. See google3/googledata/devsite/site-cloud/en/recommender/
|
230
|
+
# docs/insights/insight-types.md for more info.
|
231
|
+
class GoogleCloudRecommenderV1beta1InsightType
|
232
|
+
include Google::Apis::Core::Hashable
|
233
|
+
|
234
|
+
# The insight_type’s name in format insightTypes/`insight_type` eg: insightTypes/
|
235
|
+
# google.iam.policy.Insight
|
236
|
+
# Corresponds to the JSON property `name`
|
237
|
+
# @return [String]
|
238
|
+
attr_accessor :name
|
239
|
+
|
240
|
+
def initialize(**args)
|
241
|
+
update!(**args)
|
242
|
+
end
|
243
|
+
|
244
|
+
# Update properties of this object
|
245
|
+
def update!(**args)
|
246
|
+
@name = args[:name] if args.key?(:name)
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
229
250
|
# Configuration for an InsightType.
|
230
251
|
class GoogleCloudRecommenderV1beta1InsightTypeConfig
|
231
252
|
include Google::Apis::Core::Hashable
|
@@ -313,6 +334,32 @@ module Google
|
|
313
334
|
end
|
314
335
|
end
|
315
336
|
|
337
|
+
# Response for the `ListInsightTypes` method. Next ID: 3
|
338
|
+
class GoogleCloudRecommenderV1beta1ListInsightTypesResponse
|
339
|
+
include Google::Apis::Core::Hashable
|
340
|
+
|
341
|
+
# The set of recommenders available
|
342
|
+
# Corresponds to the JSON property `insightTypes`
|
343
|
+
# @return [Array<Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightType>]
|
344
|
+
attr_accessor :insight_types
|
345
|
+
|
346
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
347
|
+
# field is omitted, there are no subsequent pages.
|
348
|
+
# Corresponds to the JSON property `nextPageToken`
|
349
|
+
# @return [String]
|
350
|
+
attr_accessor :next_page_token
|
351
|
+
|
352
|
+
def initialize(**args)
|
353
|
+
update!(**args)
|
354
|
+
end
|
355
|
+
|
356
|
+
# Update properties of this object
|
357
|
+
def update!(**args)
|
358
|
+
@insight_types = args[:insight_types] if args.key?(:insight_types)
|
359
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
360
|
+
end
|
361
|
+
end
|
362
|
+
|
316
363
|
# Response to the `ListInsights` method.
|
317
364
|
class GoogleCloudRecommenderV1beta1ListInsightsResponse
|
318
365
|
include Google::Apis::Core::Hashable
|
@@ -365,6 +412,32 @@ module Google
|
|
365
412
|
end
|
366
413
|
end
|
367
414
|
|
415
|
+
# Response for the `ListRecommender` method. Next ID: 3
|
416
|
+
class GoogleCloudRecommenderV1beta1ListRecommendersResponse
|
417
|
+
include Google::Apis::Core::Hashable
|
418
|
+
|
419
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
420
|
+
# field is omitted, there are no subsequent pages.
|
421
|
+
# Corresponds to the JSON property `nextPageToken`
|
422
|
+
# @return [String]
|
423
|
+
attr_accessor :next_page_token
|
424
|
+
|
425
|
+
# The set of recommenders available
|
426
|
+
# Corresponds to the JSON property `recommenders`
|
427
|
+
# @return [Array<Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderType>]
|
428
|
+
attr_accessor :recommenders
|
429
|
+
|
430
|
+
def initialize(**args)
|
431
|
+
update!(**args)
|
432
|
+
end
|
433
|
+
|
434
|
+
# Update properties of this object
|
435
|
+
def update!(**args)
|
436
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
437
|
+
@recommenders = args[:recommenders] if args.key?(:recommenders)
|
438
|
+
end
|
439
|
+
end
|
440
|
+
|
368
441
|
# Request for the `MarkInsightAccepted` method.
|
369
442
|
class GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest
|
370
443
|
include Google::Apis::Core::Hashable
|
@@ -870,6 +943,27 @@ module Google
|
|
870
943
|
end
|
871
944
|
end
|
872
945
|
|
946
|
+
# The type of a recommender. See google3/googledata/devsite/site-cloud/en/
|
947
|
+
# recommender/docs/recommenders.md for more info.
|
948
|
+
class GoogleCloudRecommenderV1beta1RecommenderType
|
949
|
+
include Google::Apis::Core::Hashable
|
950
|
+
|
951
|
+
# The recommender's name in format RecommenderTypes/`recommender_type` eg:
|
952
|
+
# recommenderTypes/google.iam.policy.Recommender
|
953
|
+
# Corresponds to the JSON property `name`
|
954
|
+
# @return [String]
|
955
|
+
attr_accessor :name
|
956
|
+
|
957
|
+
def initialize(**args)
|
958
|
+
update!(**args)
|
959
|
+
end
|
960
|
+
|
961
|
+
# Update properties of this object
|
962
|
+
def update!(**args)
|
963
|
+
@name = args[:name] if args.key?(:name)
|
964
|
+
end
|
965
|
+
end
|
966
|
+
|
873
967
|
# Contains information on the impact of a reliability recommendation.
|
874
968
|
class GoogleCloudRecommenderV1beta1ReliabilityProjection
|
875
969
|
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.31.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230612"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -52,6 +52,12 @@ module Google
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
+
class GoogleCloudRecommenderV1beta1InsightType
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
55
61
|
class GoogleCloudRecommenderV1beta1InsightTypeConfig
|
56
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
63
|
|
@@ -64,6 +70,12 @@ module Google
|
|
64
70
|
include Google::Apis::Core::JsonObjectSupport
|
65
71
|
end
|
66
72
|
|
73
|
+
class GoogleCloudRecommenderV1beta1ListInsightTypesResponse
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
67
79
|
class GoogleCloudRecommenderV1beta1ListInsightsResponse
|
68
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
81
|
|
@@ -76,6 +88,12 @@ module Google
|
|
76
88
|
include Google::Apis::Core::JsonObjectSupport
|
77
89
|
end
|
78
90
|
|
91
|
+
class GoogleCloudRecommenderV1beta1ListRecommendersResponse
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
79
97
|
class GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest
|
80
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
99
|
|
@@ -154,6 +172,12 @@ module Google
|
|
154
172
|
include Google::Apis::Core::JsonObjectSupport
|
155
173
|
end
|
156
174
|
|
175
|
+
class GoogleCloudRecommenderV1beta1RecommenderType
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
157
181
|
class GoogleCloudRecommenderV1beta1ReliabilityProjection
|
158
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
183
|
|
@@ -243,6 +267,13 @@ module Google
|
|
243
267
|
end
|
244
268
|
end
|
245
269
|
|
270
|
+
class GoogleCloudRecommenderV1beta1InsightType
|
271
|
+
# @private
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
273
|
+
property :name, as: 'name'
|
274
|
+
end
|
275
|
+
end
|
276
|
+
|
246
277
|
class GoogleCloudRecommenderV1beta1InsightTypeConfig
|
247
278
|
# @private
|
248
279
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -264,6 +295,15 @@ module Google
|
|
264
295
|
end
|
265
296
|
end
|
266
297
|
|
298
|
+
class GoogleCloudRecommenderV1beta1ListInsightTypesResponse
|
299
|
+
# @private
|
300
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
301
|
+
collection :insight_types, as: 'insightTypes', class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightType, decorator: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightType::Representation
|
302
|
+
|
303
|
+
property :next_page_token, as: 'nextPageToken'
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
267
307
|
class GoogleCloudRecommenderV1beta1ListInsightsResponse
|
268
308
|
# @private
|
269
309
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -282,6 +322,15 @@ module Google
|
|
282
322
|
end
|
283
323
|
end
|
284
324
|
|
325
|
+
class GoogleCloudRecommenderV1beta1ListRecommendersResponse
|
326
|
+
# @private
|
327
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
328
|
+
property :next_page_token, as: 'nextPageToken'
|
329
|
+
collection :recommenders, as: 'recommenders', class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderType, decorator: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderType::Representation
|
330
|
+
|
331
|
+
end
|
332
|
+
end
|
333
|
+
|
285
334
|
class GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest
|
286
335
|
# @private
|
287
336
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -415,6 +464,13 @@ module Google
|
|
415
464
|
end
|
416
465
|
end
|
417
466
|
|
467
|
+
class GoogleCloudRecommenderV1beta1RecommenderType
|
468
|
+
# @private
|
469
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
470
|
+
property :name, as: 'name'
|
471
|
+
end
|
472
|
+
end
|
473
|
+
|
418
474
|
class GoogleCloudRecommenderV1beta1ReliabilityProjection
|
419
475
|
# @private
|
420
476
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -948,6 +948,41 @@ module Google
|
|
948
948
|
execute_or_queue_command(command, &block)
|
949
949
|
end
|
950
950
|
|
951
|
+
# Lists available InsightTypes. No IAM permissions are required.
|
952
|
+
# @param [Fixnum] page_size
|
953
|
+
# Optional. The number of InsightTypes to return per page. The service may
|
954
|
+
# return fewer than this value.
|
955
|
+
# @param [String] page_token
|
956
|
+
# Optional. A page token, received from a previous `ListRecommenders` call.
|
957
|
+
# Provide this to retrieve the subsequent page.
|
958
|
+
# @param [String] fields
|
959
|
+
# Selector specifying which fields to include in a partial response.
|
960
|
+
# @param [String] quota_user
|
961
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
962
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
963
|
+
# @param [Google::Apis::RequestOptions] options
|
964
|
+
# Request-specific options
|
965
|
+
#
|
966
|
+
# @yield [result, err] Result & error if block supplied
|
967
|
+
# @yieldparam result [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1ListInsightTypesResponse] parsed result object
|
968
|
+
# @yieldparam err [StandardError] error object if request failed
|
969
|
+
#
|
970
|
+
# @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1ListInsightTypesResponse]
|
971
|
+
#
|
972
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
973
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
974
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
975
|
+
def list_insight_types(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
976
|
+
command = make_simple_command(:get, 'v1beta1/insightTypes', options)
|
977
|
+
command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1ListInsightTypesResponse::Representation
|
978
|
+
command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1ListInsightTypesResponse
|
979
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
980
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
981
|
+
command.query['fields'] = fields unless fields.nil?
|
982
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
983
|
+
execute_or_queue_command(command, &block)
|
984
|
+
end
|
985
|
+
|
951
986
|
# Gets the requested InsightTypeConfig. There is only one instance of the config
|
952
987
|
# for each InsightType.
|
953
988
|
# @param [String] name
|
@@ -2001,6 +2036,41 @@ module Google
|
|
2001
2036
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2002
2037
|
execute_or_queue_command(command, &block)
|
2003
2038
|
end
|
2039
|
+
|
2040
|
+
# Lists all available Recommenders. No IAM permissions are required.
|
2041
|
+
# @param [Fixnum] page_size
|
2042
|
+
# Optional. The number of RecommenderTypes to return per page. The service may
|
2043
|
+
# return fewer than this value.
|
2044
|
+
# @param [String] page_token
|
2045
|
+
# Optional. A page token, received from a previous `ListRecommenders` call.
|
2046
|
+
# Provide this to retrieve the subsequent page.
|
2047
|
+
# @param [String] fields
|
2048
|
+
# Selector specifying which fields to include in a partial response.
|
2049
|
+
# @param [String] quota_user
|
2050
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2051
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2052
|
+
# @param [Google::Apis::RequestOptions] options
|
2053
|
+
# Request-specific options
|
2054
|
+
#
|
2055
|
+
# @yield [result, err] Result & error if block supplied
|
2056
|
+
# @yieldparam result [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1ListRecommendersResponse] parsed result object
|
2057
|
+
# @yieldparam err [StandardError] error object if request failed
|
2058
|
+
#
|
2059
|
+
# @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1ListRecommendersResponse]
|
2060
|
+
#
|
2061
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2062
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2063
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2064
|
+
def list_recommenders(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2065
|
+
command = make_simple_command(:get, 'v1beta1/recommenders', options)
|
2066
|
+
command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1ListRecommendersResponse::Representation
|
2067
|
+
command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1ListRecommendersResponse
|
2068
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2069
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2070
|
+
command.query['fields'] = fields unless fields.nil?
|
2071
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2072
|
+
execute_or_queue_command(command, &block)
|
2073
|
+
end
|
2004
2074
|
|
2005
2075
|
protected
|
2006
2076
|
|
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.31.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-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.11.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.11.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-recommender_v1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1beta1/v0.31.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-recommender_v1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|