google-apis-recommender_v1 0.26.0 → 0.27.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: c6eac7015be632bfa7d65880f6418e0e2711985f913f2f861acd9aa75333c37f
4
- data.tar.gz: 5ab005403e2fbfd13c0c75bbb6e095dd154c858e5aa3ae30bcb8badf0eb0148e
3
+ metadata.gz: ac1dd01be53e7004d5c31cfca729bf92163b7eca38e997ab04cf0769c80bb96e
4
+ data.tar.gz: 52421e10e5934c80f521ab04cac8ec6bf3f506a406c72d3d2643fd68cf275d5e
5
5
  SHA512:
6
- metadata.gz: '02568fd700f94035c0e5aca818fc93090c8f03cce1fd75737ddf1f6c5d7edcda1d3f62342b2d9231a4aa1a7c7c4a1f85f18df5946fba08b61ac880359d7316b7'
7
- data.tar.gz: 197e0c76f59a5b2ffe3b45b256e6057c22907951bd35edbf67289e916130409bc4f40e322f2ac4c75e6a7ee7d6359f52456cdd94ff0541055d7e0ebc2f0ac7f1
6
+ metadata.gz: cdfa560fcb5ee8c5fa9ce9868c8706cceb331be3202309ebcc177d2cdd7717f7609f1c9cb31826b4284166de58817e1e78c2c4833fc0f48659dc1da0ad657d14
7
+ data.tar.gz: 5fae928a30dce21622f86bc7e6e6d5ada5f9f009f5b282982d472a78d455ad7fc5ea392a0764cfaf991ffc8c72c5e0c5f68b3f338802eca7500fed98bb7efe78
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-recommender_v1
2
2
 
3
+ ### v0.27.0 (2023-01-15)
4
+
5
+ * Regenerated from discovery document revision 20230108
6
+ * Regenerated using generator version 0.11.1
7
+
3
8
  ### v0.26.0 (2022-10-20)
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 GoogleCloudRecommenderV1MarkRecommendationDismissedRequest
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 GoogleCloudRecommenderV1MarkRecommendationFailedRequest
423
442
  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.26.0"
19
+ GEM_VERSION = "0.27.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 GoogleCloudRecommenderV1MarkRecommendationDismissedRequest
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
91
97
  class GoogleCloudRecommenderV1MarkRecommendationFailedRequest
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 GoogleCloudRecommenderV1MarkRecommendationDismissedRequest
302
+ # @private
303
+ class Representation < Google::Apis::Core::JsonRepresentation
304
+ property :etag, as: 'etag'
305
+ end
306
+ end
307
+
295
308
  class GoogleCloudRecommenderV1MarkRecommendationFailedRequest
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::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationDismissedRequest] google_cloud_recommender_v1_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::RecommenderV1::GoogleCloudRecommenderV1Recommendation] parsed result object
482
+ # @yieldparam err [StandardError] error object if request failed
483
+ #
484
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation]
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_v1_mark_recommendation_dismissed_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
490
+ command = make_simple_command(:post, 'v1/{+name}:markDismissed', options)
491
+ command.request_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationDismissedRequest::Representation
492
+ command.request_object = google_cloud_recommender_v1_mark_recommendation_dismissed_request_object
493
+ command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation::Representation
494
+ command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation
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::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationDismissedRequest] google_cloud_recommender_v1_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::RecommenderV1::GoogleCloudRecommenderV1Recommendation] parsed result object
854
+ # @yieldparam err [StandardError] error object if request failed
855
+ #
856
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation]
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_v1_mark_recommendation_dismissed_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
862
+ command = make_simple_command(:post, 'v1/{+name}:markDismissed', options)
863
+ command.request_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationDismissedRequest::Representation
864
+ command.request_object = google_cloud_recommender_v1_mark_recommendation_dismissed_request_object
865
+ command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation::Representation
866
+ command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation
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::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationDismissedRequest] google_cloud_recommender_v1_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::RecommenderV1::GoogleCloudRecommenderV1Recommendation] parsed result object
1381
+ # @yieldparam err [StandardError] error object if request failed
1382
+ #
1383
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation]
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_v1_mark_recommendation_dismissed_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1389
+ command = make_simple_command(:post, 'v1/{+name}:markDismissed', options)
1390
+ command.request_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationDismissedRequest::Representation
1391
+ command.request_object = google_cloud_recommender_v1_mark_recommendation_dismissed_request_object
1392
+ command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation::Representation
1393
+ command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation
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::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationDismissedRequest] google_cloud_recommender_v1_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::RecommenderV1::GoogleCloudRecommenderV1Recommendation] parsed result object
1908
+ # @yieldparam err [StandardError] error object if request failed
1909
+ #
1910
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation]
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_v1_mark_recommendation_dismissed_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1916
+ command = make_simple_command(:post, 'v1/{+name}:markDismissed', options)
1917
+ command.request_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationDismissedRequest::Representation
1918
+ command.request_object = google_cloud_recommender_v1_mark_recommendation_dismissed_request_object
1919
+ command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation::Representation
1920
+ command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation
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_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0
4
+ version: 0.27.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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1/v0.26.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1/v0.27.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-recommender_v1
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 V1