google-apis-recommender_v1 0.19.0 → 0.22.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: b4c3cc15c77ac25173c44e7568b2177f7e3f10623f6e34a8e3584d9662f710fd
4
- data.tar.gz: cde74f644a93bba3dc84210384dd6e927b4a0351a05fcaa8fb80628464947831
3
+ metadata.gz: 2622d25a96a26f401651f94a0e6edbcfc569811177933eff968298899def93cf
4
+ data.tar.gz: 45ff92e1586621a1c79f7d950149f617e7be21bb3c9b778184f44977859cdcef
5
5
  SHA512:
6
- metadata.gz: f6a6edfca4035c2f7a7919a686dd3786a7cfed948ebf276b7d8bf64a71a19fc1d560b82efe89bfd218106ec311cb34e476f10cff25593c2cd1c898a28c851176
7
- data.tar.gz: 8116e00aff908c8564bb2d7bcd5987b9e2c19eb14add1efc301ef8fde90f197b4e79ad777813c5f669f92d34edbd0ad540fe9e87b5d3718ac320db0d13a381d3
6
+ metadata.gz: f48d57dbb719a6c197bea3db0020f4bb4c0f0c9774d2f664ed851fa6efce9887da2faba06f97734bf5ec398a1e4ed7370ffa354c06db225152487e90f02bc882
7
+ data.tar.gz: 5e26f182f5c8766845b0166138bde6c3f266601f17cfe776ad4f241184b0230a3ddb2ee2a6e4657c3713629f479ff180127e053a72aa08d1b445f549feaf8159
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Release history for google-apis-recommender_v1
2
2
 
3
+ ### v0.22.0 (2022-09-10)
4
+
5
+ * Regenerated from discovery document revision 20220905
6
+ * Regenerated using generator version 0.9.0
7
+
8
+ ### v0.21.0 (2022-06-30)
9
+
10
+ * Regenerated using generator version 0.8.0
11
+ * Regenerated from discovery document revision 20220626
12
+
13
+ ### v0.20.0 (2022-06-20)
14
+
15
+ * Regenerated using generator version 0.7.0
16
+
3
17
  ### v0.19.0 (2022-06-06)
4
18
 
5
19
  * Regenerated using generator version 0.5.0
@@ -79,7 +79,7 @@ module Google
79
79
  end
80
80
 
81
81
  # An insight along with the information used to derive the insight. The insight
82
- # may have associated recomendations as well.
82
+ # may have associated recommendations as well.
83
83
  class GoogleCloudRecommenderV1Insight
84
84
  include Google::Apis::Core::Hashable
85
85
 
@@ -213,6 +213,93 @@ module Google
213
213
  end
214
214
  end
215
215
 
216
+ # Configuration for an InsightType.
217
+ class GoogleCloudRecommenderV1InsightTypeConfig
218
+ include Google::Apis::Core::Hashable
219
+
220
+ # Allows clients to store small amounts of arbitrary data. Annotations must
221
+ # follow the Kubernetes syntax. The total size of all keys and values combined
222
+ # is limited to 256k. Key can have 2 segments: prefix (optional) and name (
223
+ # required), separated by a slash (/). Prefix must be a DNS subdomain. Name must
224
+ # be 63 characters or less, begin and end with alphanumerics, with dashes (-),
225
+ # underscores (_), dots (.), and alphanumerics between.
226
+ # Corresponds to the JSON property `annotations`
227
+ # @return [Hash<String,String>]
228
+ attr_accessor :annotations
229
+
230
+ # A user-settable field to provide a human-readable name to be used in user
231
+ # interfaces.
232
+ # Corresponds to the JSON property `displayName`
233
+ # @return [String]
234
+ attr_accessor :display_name
235
+
236
+ # Fingerprint of the InsightTypeConfig. Provides optimistic locking when
237
+ # updating.
238
+ # Corresponds to the JSON property `etag`
239
+ # @return [String]
240
+ attr_accessor :etag
241
+
242
+ # A configuration to customize the generation of insights. Eg, customizing the
243
+ # lookback period considered when generating a insight.
244
+ # Corresponds to the JSON property `insightTypeGenerationConfig`
245
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeGenerationConfig]
246
+ attr_accessor :insight_type_generation_config
247
+
248
+ # Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]
249
+ # /insightTypes/[INSIGHT_TYPE_ID]/config
250
+ # Corresponds to the JSON property `name`
251
+ # @return [String]
252
+ attr_accessor :name
253
+
254
+ # Output only. Immutable. The revision ID of the config. A new revision is
255
+ # committed whenever the config is changed in any way. The format is an 8-
256
+ # character hexadecimal string.
257
+ # Corresponds to the JSON property `revisionId`
258
+ # @return [String]
259
+ attr_accessor :revision_id
260
+
261
+ # Last time when the config was updated.
262
+ # Corresponds to the JSON property `updateTime`
263
+ # @return [String]
264
+ attr_accessor :update_time
265
+
266
+ def initialize(**args)
267
+ update!(**args)
268
+ end
269
+
270
+ # Update properties of this object
271
+ def update!(**args)
272
+ @annotations = args[:annotations] if args.key?(:annotations)
273
+ @display_name = args[:display_name] if args.key?(:display_name)
274
+ @etag = args[:etag] if args.key?(:etag)
275
+ @insight_type_generation_config = args[:insight_type_generation_config] if args.key?(:insight_type_generation_config)
276
+ @name = args[:name] if args.key?(:name)
277
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
278
+ @update_time = args[:update_time] if args.key?(:update_time)
279
+ end
280
+ end
281
+
282
+ # A configuration to customize the generation of insights. Eg, customizing the
283
+ # lookback period considered when generating a insight.
284
+ class GoogleCloudRecommenderV1InsightTypeGenerationConfig
285
+ include Google::Apis::Core::Hashable
286
+
287
+ # Parameters for this InsightTypeGenerationConfig. These configs can be used by
288
+ # or are applied to all subtypes.
289
+ # Corresponds to the JSON property `params`
290
+ # @return [Hash<String,Object>]
291
+ attr_accessor :params
292
+
293
+ def initialize(**args)
294
+ update!(**args)
295
+ end
296
+
297
+ # Update properties of this object
298
+ def update!(**args)
299
+ @params = args[:params] if args.key?(:params)
300
+ end
301
+ end
302
+
216
303
  # Response to the `ListInsights` method.
217
304
  class GoogleCloudRecommenderV1ListInsightsResponse
218
305
  include Google::Apis::Core::Hashable
@@ -664,6 +751,93 @@ module Google
664
751
  end
665
752
  end
666
753
 
754
+ # Configuration for a Recommender.
755
+ class GoogleCloudRecommenderV1RecommenderConfig
756
+ include Google::Apis::Core::Hashable
757
+
758
+ # Allows clients to store small amounts of arbitrary data. Annotations must
759
+ # follow the Kubernetes syntax. The total size of all keys and values combined
760
+ # is limited to 256k. Key can have 2 segments: prefix (optional) and name (
761
+ # required), separated by a slash (/). Prefix must be a DNS subdomain. Name must
762
+ # be 63 characters or less, begin and end with alphanumerics, with dashes (-),
763
+ # underscores (_), dots (.), and alphanumerics between.
764
+ # Corresponds to the JSON property `annotations`
765
+ # @return [Hash<String,String>]
766
+ attr_accessor :annotations
767
+
768
+ # A user-settable field to provide a human-readable name to be used in user
769
+ # interfaces.
770
+ # Corresponds to the JSON property `displayName`
771
+ # @return [String]
772
+ attr_accessor :display_name
773
+
774
+ # Fingerprint of the RecommenderConfig. Provides optimistic locking when
775
+ # updating.
776
+ # Corresponds to the JSON property `etag`
777
+ # @return [String]
778
+ attr_accessor :etag
779
+
780
+ # Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/
781
+ # recommenders/[RECOMMENDER_ID]/config
782
+ # Corresponds to the JSON property `name`
783
+ # @return [String]
784
+ attr_accessor :name
785
+
786
+ # A Configuration to customize the generation of recommendations. Eg,
787
+ # customizing the lookback period considered when generating a recommendation.
788
+ # Corresponds to the JSON property `recommenderGenerationConfig`
789
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderGenerationConfig]
790
+ attr_accessor :recommender_generation_config
791
+
792
+ # Output only. Immutable. The revision ID of the config. A new revision is
793
+ # committed whenever the config is changed in any way. The format is an 8-
794
+ # character hexadecimal string.
795
+ # Corresponds to the JSON property `revisionId`
796
+ # @return [String]
797
+ attr_accessor :revision_id
798
+
799
+ # Last time when the config was updated.
800
+ # Corresponds to the JSON property `updateTime`
801
+ # @return [String]
802
+ attr_accessor :update_time
803
+
804
+ def initialize(**args)
805
+ update!(**args)
806
+ end
807
+
808
+ # Update properties of this object
809
+ def update!(**args)
810
+ @annotations = args[:annotations] if args.key?(:annotations)
811
+ @display_name = args[:display_name] if args.key?(:display_name)
812
+ @etag = args[:etag] if args.key?(:etag)
813
+ @name = args[:name] if args.key?(:name)
814
+ @recommender_generation_config = args[:recommender_generation_config] if args.key?(:recommender_generation_config)
815
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
816
+ @update_time = args[:update_time] if args.key?(:update_time)
817
+ end
818
+ end
819
+
820
+ # A Configuration to customize the generation of recommendations. Eg,
821
+ # customizing the lookback period considered when generating a recommendation.
822
+ class GoogleCloudRecommenderV1RecommenderGenerationConfig
823
+ include Google::Apis::Core::Hashable
824
+
825
+ # Parameters for this RecommenderGenerationConfig. These configs can be used by
826
+ # or are applied to all subtypes.
827
+ # Corresponds to the JSON property `params`
828
+ # @return [Hash<String,Object>]
829
+ attr_accessor :params
830
+
831
+ def initialize(**args)
832
+ update!(**args)
833
+ end
834
+
835
+ # Update properties of this object
836
+ def update!(**args)
837
+ @params = args[:params] if args.key?(:params)
838
+ end
839
+ end
840
+
667
841
  # Contains various ways of describing the impact on Security.
668
842
  class GoogleCloudRecommenderV1SecurityProjection
669
843
  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.19.0"
19
+ GEM_VERSION = "0.22.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.5.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220327"
25
+ REVISION = "20220905"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,18 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class GoogleCloudRecommenderV1InsightTypeConfig
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class GoogleCloudRecommenderV1InsightTypeGenerationConfig
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
55
67
  class GoogleCloudRecommenderV1ListInsightsResponse
56
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
69
 
@@ -124,6 +136,18 @@ module Google
124
136
  include Google::Apis::Core::JsonObjectSupport
125
137
  end
126
138
 
139
+ class GoogleCloudRecommenderV1RecommenderConfig
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class GoogleCloudRecommenderV1RecommenderGenerationConfig
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
127
151
  class GoogleCloudRecommenderV1SecurityProjection
128
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
153
 
@@ -197,6 +221,27 @@ module Google
197
221
  end
198
222
  end
199
223
 
224
+ class GoogleCloudRecommenderV1InsightTypeConfig
225
+ # @private
226
+ class Representation < Google::Apis::Core::JsonRepresentation
227
+ hash :annotations, as: 'annotations'
228
+ property :display_name, as: 'displayName'
229
+ property :etag, as: 'etag'
230
+ property :insight_type_generation_config, as: 'insightTypeGenerationConfig', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeGenerationConfig, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeGenerationConfig::Representation
231
+
232
+ property :name, as: 'name'
233
+ property :revision_id, as: 'revisionId'
234
+ property :update_time, as: 'updateTime'
235
+ end
236
+ end
237
+
238
+ class GoogleCloudRecommenderV1InsightTypeGenerationConfig
239
+ # @private
240
+ class Representation < Google::Apis::Core::JsonRepresentation
241
+ hash :params, as: 'params'
242
+ end
243
+ end
244
+
200
245
  class GoogleCloudRecommenderV1ListInsightsResponse
201
246
  # @private
202
247
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -320,6 +365,27 @@ module Google
320
365
  end
321
366
  end
322
367
 
368
+ class GoogleCloudRecommenderV1RecommenderConfig
369
+ # @private
370
+ class Representation < Google::Apis::Core::JsonRepresentation
371
+ hash :annotations, as: 'annotations'
372
+ property :display_name, as: 'displayName'
373
+ property :etag, as: 'etag'
374
+ property :name, as: 'name'
375
+ property :recommender_generation_config, as: 'recommenderGenerationConfig', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderGenerationConfig, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderGenerationConfig::Representation
376
+
377
+ property :revision_id, as: 'revisionId'
378
+ property :update_time, as: 'updateTime'
379
+ end
380
+ end
381
+
382
+ class GoogleCloudRecommenderV1RecommenderGenerationConfig
383
+ # @private
384
+ class Representation < Google::Apis::Core::JsonRepresentation
385
+ hash :params, as: 'params'
386
+ end
387
+ end
388
+
323
389
  class GoogleCloudRecommenderV1SecurityProjection
324
390
  # @private
325
391
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -719,6 +719,83 @@ module Google
719
719
  execute_or_queue_command(command, &block)
720
720
  end
721
721
 
722
+ # Gets the requested InsightTypeConfig. There is only one instance of the config
723
+ # for each InsightType.
724
+ # @param [String] name
725
+ # Required. Name of the InsightTypeConfig to get. Acceptable formats: * `
726
+ # projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/
727
+ # config` * `projects/[PROJECT_ID]/locations/global/recommenders/[
728
+ # INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/global/
729
+ # recommenders/[INSIGHT_TYPE_ID]/config`
730
+ # @param [String] fields
731
+ # Selector specifying which fields to include in a partial response.
732
+ # @param [String] quota_user
733
+ # Available to use for quota purposes for server-side applications. Can be any
734
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
735
+ # @param [Google::Apis::RequestOptions] options
736
+ # Request-specific options
737
+ #
738
+ # @yield [result, err] Result & error if block supplied
739
+ # @yieldparam result [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig] parsed result object
740
+ # @yieldparam err [StandardError] error object if request failed
741
+ #
742
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig]
743
+ #
744
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
745
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
746
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
747
+ def get_organization_location_insight_type_config(name, fields: nil, quota_user: nil, options: nil, &block)
748
+ command = make_simple_command(:get, 'v1/{+name}', options)
749
+ command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig::Representation
750
+ command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig
751
+ command.params['name'] = name unless name.nil?
752
+ command.query['fields'] = fields unless fields.nil?
753
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
754
+ execute_or_queue_command(command, &block)
755
+ end
756
+
757
+ # Updates an InsightTypeConfig change. This will create a new revision of the
758
+ # config.
759
+ # @param [String] name
760
+ # Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]
761
+ # /insightTypes/[INSIGHT_TYPE_ID]/config
762
+ # @param [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig] google_cloud_recommender_v1_insight_type_config_object
763
+ # @param [String] update_mask
764
+ # The list of fields to be updated.
765
+ # @param [Boolean] validate_only
766
+ # If true, validate the request and preview the change, but do not actually
767
+ # update it.
768
+ # @param [String] fields
769
+ # Selector specifying which fields to include in a partial response.
770
+ # @param [String] quota_user
771
+ # Available to use for quota purposes for server-side applications. Can be any
772
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
773
+ # @param [Google::Apis::RequestOptions] options
774
+ # Request-specific options
775
+ #
776
+ # @yield [result, err] Result & error if block supplied
777
+ # @yieldparam result [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig] parsed result object
778
+ # @yieldparam err [StandardError] error object if request failed
779
+ #
780
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig]
781
+ #
782
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
783
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
784
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
785
+ def update_organization_location_insight_type_config(name, google_cloud_recommender_v1_insight_type_config_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
786
+ command = make_simple_command(:patch, 'v1/{+name}', options)
787
+ command.request_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig::Representation
788
+ command.request_object = google_cloud_recommender_v1_insight_type_config_object
789
+ command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig::Representation
790
+ command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig
791
+ command.params['name'] = name unless name.nil?
792
+ command.query['updateMask'] = update_mask unless update_mask.nil?
793
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
794
+ command.query['fields'] = fields unless fields.nil?
795
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
796
+ execute_or_queue_command(command, &block)
797
+ end
798
+
722
799
  # Gets the requested insight. Requires the recommender.*.get IAM permission for
723
800
  # the specified insight type.
724
801
  # @param [String] name
@@ -847,6 +924,82 @@ module Google
847
924
  execute_or_queue_command(command, &block)
848
925
  end
849
926
 
927
+ # Gets the requested Recommender Config. There is only one instance of the
928
+ # config for each Recommender.
929
+ # @param [String] name
930
+ # Required. Name of the Recommendation Config to get. Acceptable formats: * `
931
+ # projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/
932
+ # config` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[
933
+ # RECOMMENDER_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]
934
+ # /recommenders/[RECOMMENDER_ID]/config`
935
+ # @param [String] fields
936
+ # Selector specifying which fields to include in a partial response.
937
+ # @param [String] quota_user
938
+ # Available to use for quota purposes for server-side applications. Can be any
939
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
940
+ # @param [Google::Apis::RequestOptions] options
941
+ # Request-specific options
942
+ #
943
+ # @yield [result, err] Result & error if block supplied
944
+ # @yieldparam result [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig] parsed result object
945
+ # @yieldparam err [StandardError] error object if request failed
946
+ #
947
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig]
948
+ #
949
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
950
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
951
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
952
+ def get_organization_location_recommender_config(name, fields: nil, quota_user: nil, options: nil, &block)
953
+ command = make_simple_command(:get, 'v1/{+name}', options)
954
+ command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig::Representation
955
+ command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig
956
+ command.params['name'] = name unless name.nil?
957
+ command.query['fields'] = fields unless fields.nil?
958
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
959
+ execute_or_queue_command(command, &block)
960
+ end
961
+
962
+ # Updates a Recommender Config. This will create a new revision of the config.
963
+ # @param [String] name
964
+ # Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/
965
+ # recommenders/[RECOMMENDER_ID]/config
966
+ # @param [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig] google_cloud_recommender_v1_recommender_config_object
967
+ # @param [String] update_mask
968
+ # The list of fields to be updated.
969
+ # @param [Boolean] validate_only
970
+ # If true, validate the request and preview the change, but do not actually
971
+ # update it.
972
+ # @param [String] fields
973
+ # Selector specifying which fields to include in a partial response.
974
+ # @param [String] quota_user
975
+ # Available to use for quota purposes for server-side applications. Can be any
976
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
977
+ # @param [Google::Apis::RequestOptions] options
978
+ # Request-specific options
979
+ #
980
+ # @yield [result, err] Result & error if block supplied
981
+ # @yieldparam result [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig] parsed result object
982
+ # @yieldparam err [StandardError] error object if request failed
983
+ #
984
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig]
985
+ #
986
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
987
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
988
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
989
+ def update_organization_location_recommender_config(name, google_cloud_recommender_v1_recommender_config_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
990
+ command = make_simple_command(:patch, 'v1/{+name}', options)
991
+ command.request_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig::Representation
992
+ command.request_object = google_cloud_recommender_v1_recommender_config_object
993
+ command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig::Representation
994
+ command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig
995
+ command.params['name'] = name unless name.nil?
996
+ command.query['updateMask'] = update_mask unless update_mask.nil?
997
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
998
+ command.query['fields'] = fields unless fields.nil?
999
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1000
+ execute_or_queue_command(command, &block)
1001
+ end
1002
+
850
1003
  # Gets the requested recommendation. Requires the recommender.*.get IAM
851
1004
  # permission for the specified recommender.
852
1005
  # @param [String] name
@@ -1054,6 +1207,83 @@ module Google
1054
1207
  execute_or_queue_command(command, &block)
1055
1208
  end
1056
1209
 
1210
+ # Gets the requested InsightTypeConfig. There is only one instance of the config
1211
+ # for each InsightType.
1212
+ # @param [String] name
1213
+ # Required. Name of the InsightTypeConfig to get. Acceptable formats: * `
1214
+ # projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/
1215
+ # config` * `projects/[PROJECT_ID]/locations/global/recommenders/[
1216
+ # INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/global/
1217
+ # recommenders/[INSIGHT_TYPE_ID]/config`
1218
+ # @param [String] fields
1219
+ # Selector specifying which fields to include in a partial response.
1220
+ # @param [String] quota_user
1221
+ # Available to use for quota purposes for server-side applications. Can be any
1222
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1223
+ # @param [Google::Apis::RequestOptions] options
1224
+ # Request-specific options
1225
+ #
1226
+ # @yield [result, err] Result & error if block supplied
1227
+ # @yieldparam result [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig] parsed result object
1228
+ # @yieldparam err [StandardError] error object if request failed
1229
+ #
1230
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig]
1231
+ #
1232
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1233
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1234
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1235
+ def get_project_location_insight_type_config(name, fields: nil, quota_user: nil, options: nil, &block)
1236
+ command = make_simple_command(:get, 'v1/{+name}', options)
1237
+ command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig::Representation
1238
+ command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig
1239
+ command.params['name'] = name unless name.nil?
1240
+ command.query['fields'] = fields unless fields.nil?
1241
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1242
+ execute_or_queue_command(command, &block)
1243
+ end
1244
+
1245
+ # Updates an InsightTypeConfig change. This will create a new revision of the
1246
+ # config.
1247
+ # @param [String] name
1248
+ # Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]
1249
+ # /insightTypes/[INSIGHT_TYPE_ID]/config
1250
+ # @param [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig] google_cloud_recommender_v1_insight_type_config_object
1251
+ # @param [String] update_mask
1252
+ # The list of fields to be updated.
1253
+ # @param [Boolean] validate_only
1254
+ # If true, validate the request and preview the change, but do not actually
1255
+ # update it.
1256
+ # @param [String] fields
1257
+ # Selector specifying which fields to include in a partial response.
1258
+ # @param [String] quota_user
1259
+ # Available to use for quota purposes for server-side applications. Can be any
1260
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1261
+ # @param [Google::Apis::RequestOptions] options
1262
+ # Request-specific options
1263
+ #
1264
+ # @yield [result, err] Result & error if block supplied
1265
+ # @yieldparam result [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig] parsed result object
1266
+ # @yieldparam err [StandardError] error object if request failed
1267
+ #
1268
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig]
1269
+ #
1270
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1271
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1272
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1273
+ def update_project_location_insight_type_config(name, google_cloud_recommender_v1_insight_type_config_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1274
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1275
+ command.request_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig::Representation
1276
+ command.request_object = google_cloud_recommender_v1_insight_type_config_object
1277
+ command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig::Representation
1278
+ command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightTypeConfig
1279
+ command.params['name'] = name unless name.nil?
1280
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1281
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
1282
+ command.query['fields'] = fields unless fields.nil?
1283
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1284
+ execute_or_queue_command(command, &block)
1285
+ end
1286
+
1057
1287
  # Gets the requested insight. Requires the recommender.*.get IAM permission for
1058
1288
  # the specified insight type.
1059
1289
  # @param [String] name
@@ -1182,6 +1412,82 @@ module Google
1182
1412
  execute_or_queue_command(command, &block)
1183
1413
  end
1184
1414
 
1415
+ # Gets the requested Recommender Config. There is only one instance of the
1416
+ # config for each Recommender.
1417
+ # @param [String] name
1418
+ # Required. Name of the Recommendation Config to get. Acceptable formats: * `
1419
+ # projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/
1420
+ # config` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[
1421
+ # RECOMMENDER_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]
1422
+ # /recommenders/[RECOMMENDER_ID]/config`
1423
+ # @param [String] fields
1424
+ # Selector specifying which fields to include in a partial response.
1425
+ # @param [String] quota_user
1426
+ # Available to use for quota purposes for server-side applications. Can be any
1427
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1428
+ # @param [Google::Apis::RequestOptions] options
1429
+ # Request-specific options
1430
+ #
1431
+ # @yield [result, err] Result & error if block supplied
1432
+ # @yieldparam result [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig] parsed result object
1433
+ # @yieldparam err [StandardError] error object if request failed
1434
+ #
1435
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig]
1436
+ #
1437
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1438
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1439
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1440
+ def get_project_location_recommender_config(name, fields: nil, quota_user: nil, options: nil, &block)
1441
+ command = make_simple_command(:get, 'v1/{+name}', options)
1442
+ command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig::Representation
1443
+ command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig
1444
+ command.params['name'] = name unless name.nil?
1445
+ command.query['fields'] = fields unless fields.nil?
1446
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1447
+ execute_or_queue_command(command, &block)
1448
+ end
1449
+
1450
+ # Updates a Recommender Config. This will create a new revision of the config.
1451
+ # @param [String] name
1452
+ # Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/
1453
+ # recommenders/[RECOMMENDER_ID]/config
1454
+ # @param [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig] google_cloud_recommender_v1_recommender_config_object
1455
+ # @param [String] update_mask
1456
+ # The list of fields to be updated.
1457
+ # @param [Boolean] validate_only
1458
+ # If true, validate the request and preview the change, but do not actually
1459
+ # update it.
1460
+ # @param [String] fields
1461
+ # Selector specifying which fields to include in a partial response.
1462
+ # @param [String] quota_user
1463
+ # Available to use for quota purposes for server-side applications. Can be any
1464
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1465
+ # @param [Google::Apis::RequestOptions] options
1466
+ # Request-specific options
1467
+ #
1468
+ # @yield [result, err] Result & error if block supplied
1469
+ # @yieldparam result [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig] parsed result object
1470
+ # @yieldparam err [StandardError] error object if request failed
1471
+ #
1472
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig]
1473
+ #
1474
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1475
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1476
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1477
+ def update_project_location_recommender_config(name, google_cloud_recommender_v1_recommender_config_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1478
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1479
+ command.request_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig::Representation
1480
+ command.request_object = google_cloud_recommender_v1_recommender_config_object
1481
+ command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig::Representation
1482
+ command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommenderConfig
1483
+ command.params['name'] = name unless name.nil?
1484
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1485
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
1486
+ command.query['fields'] = fields unless fields.nil?
1487
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1488
+ execute_or_queue_command(command, &block)
1489
+ end
1490
+
1185
1491
  # Gets the requested recommendation. Requires the recommender.*.get IAM
1186
1492
  # permission for the specified recommender.
1187
1493
  # @param [String] name
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.19.0
4
+ version: 0.22.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-06-13 00:00:00.000000000 Z
11
+ date: 2022-09-12 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.5'
19
+ version: '0.7'
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.5'
29
+ version: '0.7'
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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1/v0.19.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1/v0.22.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: []