google-apis-recommender_v1beta1 0.28.0 → 0.29.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: e3c99388d6b05f57fbe70599049584c195a7cf66d831563c5c3482c80c60a2a4
4
- data.tar.gz: 9e6bdec5afdb0fa5caa6addb0e0eed1c904420855d76c19499480781be2302d0
3
+ metadata.gz: 8c7f9331cd8822697daca516692aea26c85b8d5d80f00145c93dbd6935f0197d
4
+ data.tar.gz: 8673d00c36e61d24c885a287511afb84780f6da8f646e862a578b450a9f472ca
5
5
  SHA512:
6
- metadata.gz: ab515b1d57b2adf24e1454642d36da38f5d801455743d4dddc5f6b4a3712f5b440694b2ff39ba8532c60159162932b2140c76c5e9dc8d1cb8b6f547e2f5fd0fb
7
- data.tar.gz: c3d6a4b2e87c1d81e0a335603321ba83c1bb888ddb634ccdac69a3ac65e15836282b6466be697a0d4872bb0058387ddcc5bf45420d64c782ca6b2b24395368be
6
+ metadata.gz: 77ce69538f532b38f0af441cca7d5c2ec25fb729d17da614f3fb08d9eb38577af0b8e94b1f74287c158ff7df0c31ddf31e7992bde2b2c79ffb2b0344c65d6eb9
7
+ data.tar.gz: 463ef58f46661bea2bdb980390a773a5660096159acabc5364558edb7b59990e0d9f8f321b92d1cb52bf04485e1dec694de5a86c9c66d811ed412c0a649abac6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-recommender_v1beta1
2
2
 
3
+ ### v0.29.0 (2023-01-15)
4
+
5
+ * Regenerated from discovery document revision 20230108
6
+ * Regenerated using generator version 0.11.1
7
+
3
8
  ### v0.28.0 (2022-10-19)
4
9
 
5
10
  * Regenerated using generator version 0.11.0
@@ -418,6 +418,25 @@ module Google
418
418
  end
419
419
  end
420
420
 
421
+ # Request for the `MarkRecommendationDismissed` Method.
422
+ class GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest
423
+ include Google::Apis::Core::Hashable
424
+
425
+ # Fingerprint of the Recommendation. Provides optimistic locking.
426
+ # Corresponds to the JSON property `etag`
427
+ # @return [String]
428
+ attr_accessor :etag
429
+
430
+ def initialize(**args)
431
+ update!(**args)
432
+ end
433
+
434
+ # Update properties of this object
435
+ def update!(**args)
436
+ @etag = args[:etag] if args.key?(:etag)
437
+ end
438
+ end
439
+
421
440
  # Request for the `MarkRecommendationFailed` Method.
422
441
  class GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest
423
442
  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.28.0"
19
+ GEM_VERSION = "0.29.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220924"
25
+ REVISION = "20230108"
26
26
  end
27
27
  end
28
28
  end
@@ -88,6 +88,12 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
+ class GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
91
97
  class GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest
92
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
99
 
@@ -292,6 +298,13 @@ module Google
292
298
  end
293
299
  end
294
300
 
301
+ class GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest
302
+ # @private
303
+ class Representation < Google::Apis::Core::JsonRepresentation
304
+ property :etag, as: 'etag'
305
+ end
306
+ end
307
+
295
308
  class GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest
296
309
  # @private
297
310
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -461,6 +461,43 @@ module Google
461
461
  execute_or_queue_command(command, &block)
462
462
  end
463
463
 
464
+ # Mark the Recommendation State as Dismissed. Users can use this method to
465
+ # indicate to the Recommender API that an ACTIVE recommendation has to be marked
466
+ # back as DISMISSED. MarkRecommendationDismissed can be applied to
467
+ # recommendations in ACTIVE state. Requires the recommender.*.update IAM
468
+ # permission for the specified recommender.
469
+ # @param [String] name
470
+ # Name of the recommendation.
471
+ # @param [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest] google_cloud_recommender_v1beta1_mark_recommendation_dismissed_request_object
472
+ # @param [String] fields
473
+ # Selector specifying which fields to include in a partial response.
474
+ # @param [String] quota_user
475
+ # Available to use for quota purposes for server-side applications. Can be any
476
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
477
+ # @param [Google::Apis::RequestOptions] options
478
+ # Request-specific options
479
+ #
480
+ # @yield [result, err] Result & error if block supplied
481
+ # @yieldparam result [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Recommendation] parsed result object
482
+ # @yieldparam err [StandardError] error object if request failed
483
+ #
484
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Recommendation]
485
+ #
486
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
487
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
488
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
489
+ def mark_billing_account_location_recommender_recommendation_dismissed(name, google_cloud_recommender_v1beta1_mark_recommendation_dismissed_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
490
+ command = make_simple_command(:post, 'v1beta1/{+name}:markDismissed', options)
491
+ command.request_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest::Representation
492
+ command.request_object = google_cloud_recommender_v1beta1_mark_recommendation_dismissed_request_object
493
+ command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Recommendation::Representation
494
+ command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Recommendation
495
+ command.params['name'] = name unless name.nil?
496
+ command.query['fields'] = fields unless fields.nil?
497
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
498
+ execute_or_queue_command(command, &block)
499
+ end
500
+
464
501
  # Marks the Recommendation State as Failed. Users can use this method to
465
502
  # indicate to the Recommender API that they have applied the recommendation
466
503
  # themselves, and the operation failed. This stops the recommendation content
@@ -796,6 +833,43 @@ module Google
796
833
  execute_or_queue_command(command, &block)
797
834
  end
798
835
 
836
+ # Mark the Recommendation State as Dismissed. Users can use this method to
837
+ # indicate to the Recommender API that an ACTIVE recommendation has to be marked
838
+ # back as DISMISSED. MarkRecommendationDismissed can be applied to
839
+ # recommendations in ACTIVE state. Requires the recommender.*.update IAM
840
+ # permission for the specified recommender.
841
+ # @param [String] name
842
+ # Name of the recommendation.
843
+ # @param [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest] google_cloud_recommender_v1beta1_mark_recommendation_dismissed_request_object
844
+ # @param [String] fields
845
+ # Selector specifying which fields to include in a partial response.
846
+ # @param [String] quota_user
847
+ # Available to use for quota purposes for server-side applications. Can be any
848
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
849
+ # @param [Google::Apis::RequestOptions] options
850
+ # Request-specific options
851
+ #
852
+ # @yield [result, err] Result & error if block supplied
853
+ # @yieldparam result [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Recommendation] parsed result object
854
+ # @yieldparam err [StandardError] error object if request failed
855
+ #
856
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Recommendation]
857
+ #
858
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
859
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
860
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
861
+ def mark_folder_location_recommender_recommendation_dismissed(name, google_cloud_recommender_v1beta1_mark_recommendation_dismissed_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
862
+ command = make_simple_command(:post, 'v1beta1/{+name}:markDismissed', options)
863
+ command.request_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest::Representation
864
+ command.request_object = google_cloud_recommender_v1beta1_mark_recommendation_dismissed_request_object
865
+ command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Recommendation::Representation
866
+ command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Recommendation
867
+ command.params['name'] = name unless name.nil?
868
+ command.query['fields'] = fields unless fields.nil?
869
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
870
+ execute_or_queue_command(command, &block)
871
+ end
872
+
799
873
  # Marks the Recommendation State as Failed. Users can use this method to
800
874
  # indicate to the Recommender API that they have applied the recommendation
801
875
  # themselves, and the operation failed. This stops the recommendation content
@@ -1286,6 +1360,43 @@ module Google
1286
1360
  execute_or_queue_command(command, &block)
1287
1361
  end
1288
1362
 
1363
+ # Mark the Recommendation State as Dismissed. Users can use this method to
1364
+ # indicate to the Recommender API that an ACTIVE recommendation has to be marked
1365
+ # back as DISMISSED. MarkRecommendationDismissed can be applied to
1366
+ # recommendations in ACTIVE state. Requires the recommender.*.update IAM
1367
+ # permission for the specified recommender.
1368
+ # @param [String] name
1369
+ # Name of the recommendation.
1370
+ # @param [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest] google_cloud_recommender_v1beta1_mark_recommendation_dismissed_request_object
1371
+ # @param [String] fields
1372
+ # Selector specifying which fields to include in a partial response.
1373
+ # @param [String] quota_user
1374
+ # Available to use for quota purposes for server-side applications. Can be any
1375
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1376
+ # @param [Google::Apis::RequestOptions] options
1377
+ # Request-specific options
1378
+ #
1379
+ # @yield [result, err] Result & error if block supplied
1380
+ # @yieldparam result [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Recommendation] parsed result object
1381
+ # @yieldparam err [StandardError] error object if request failed
1382
+ #
1383
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Recommendation]
1384
+ #
1385
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1386
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1387
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1388
+ def mark_organization_location_recommender_recommendation_dismissed(name, google_cloud_recommender_v1beta1_mark_recommendation_dismissed_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1389
+ command = make_simple_command(:post, 'v1beta1/{+name}:markDismissed', options)
1390
+ command.request_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest::Representation
1391
+ command.request_object = google_cloud_recommender_v1beta1_mark_recommendation_dismissed_request_object
1392
+ command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Recommendation::Representation
1393
+ command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Recommendation
1394
+ command.params['name'] = name unless name.nil?
1395
+ command.query['fields'] = fields unless fields.nil?
1396
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1397
+ execute_or_queue_command(command, &block)
1398
+ end
1399
+
1289
1400
  # Marks the Recommendation State as Failed. Users can use this method to
1290
1401
  # indicate to the Recommender API that they have applied the recommendation
1291
1402
  # themselves, and the operation failed. This stops the recommendation content
@@ -1776,6 +1887,43 @@ module Google
1776
1887
  execute_or_queue_command(command, &block)
1777
1888
  end
1778
1889
 
1890
+ # Mark the Recommendation State as Dismissed. Users can use this method to
1891
+ # indicate to the Recommender API that an ACTIVE recommendation has to be marked
1892
+ # back as DISMISSED. MarkRecommendationDismissed can be applied to
1893
+ # recommendations in ACTIVE state. Requires the recommender.*.update IAM
1894
+ # permission for the specified recommender.
1895
+ # @param [String] name
1896
+ # Name of the recommendation.
1897
+ # @param [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest] google_cloud_recommender_v1beta1_mark_recommendation_dismissed_request_object
1898
+ # @param [String] fields
1899
+ # Selector specifying which fields to include in a partial response.
1900
+ # @param [String] quota_user
1901
+ # Available to use for quota purposes for server-side applications. Can be any
1902
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1903
+ # @param [Google::Apis::RequestOptions] options
1904
+ # Request-specific options
1905
+ #
1906
+ # @yield [result, err] Result & error if block supplied
1907
+ # @yieldparam result [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Recommendation] parsed result object
1908
+ # @yieldparam err [StandardError] error object if request failed
1909
+ #
1910
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Recommendation]
1911
+ #
1912
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1913
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1914
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1915
+ def mark_project_location_recommender_recommendation_dismissed(name, google_cloud_recommender_v1beta1_mark_recommendation_dismissed_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1916
+ command = make_simple_command(:post, 'v1beta1/{+name}:markDismissed', options)
1917
+ command.request_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest::Representation
1918
+ command.request_object = google_cloud_recommender_v1beta1_mark_recommendation_dismissed_request_object
1919
+ command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Recommendation::Representation
1920
+ command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Recommendation
1921
+ command.params['name'] = name unless name.nil?
1922
+ command.query['fields'] = fields unless fields.nil?
1923
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1924
+ execute_or_queue_command(command, &block)
1925
+ end
1926
+
1779
1927
  # Marks the Recommendation State as Failed. Users can use this method to
1780
1928
  # indicate to the Recommender API that they have applied the recommendation
1781
1929
  # themselves, and the operation failed. This stops the recommendation content
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.28.0
4
+ version: 0.29.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: 2022-10-21 00:00:00.000000000 Z
11
+ date: 2023-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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.28.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1beta1/v0.29.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Recommender API V1beta1