google-apis-recommender_v1 0.17.0 → 0.20.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: 5a821fcb96646698df3433c03294d26ed8f71a4ea055e3a22788b6ad38783a7b
4
- data.tar.gz: bffdc653e5f5b8189acb99ae41bba9d98dac5b3006e7595f0202355970cc07b2
3
+ metadata.gz: a69a19ab94df60fa93cd5506e855a48e8e8c067dfc5f70e18c9522ce4701a0a7
4
+ data.tar.gz: 57e26b0884755e85111c1f2a6f94e67533ad08e863d1060090f134871b5b2333
5
5
  SHA512:
6
- metadata.gz: 3cfed457b24b4aeb082019aec69f376fef850a7e101c5f4900cb6411c0f865787ce18a923f16bfe0610d817bfdc137141e44605c3ee74a7452f5352498b4dc41
7
- data.tar.gz: 8207b2505a4811c34d3822906c71c1b3f6952cd20e47cdbb8512f093fb5798e4d35c6bdb781a0e3f79c613e8b37863a306b6da080fdf043240438c6a3db082e5
6
+ metadata.gz: 68f74928c2a67e091d103294a1354e7ae3ef590e2b85742ef1038490166e15db6aab34793b74b3919eacd6ed794c1064f294826c093eff205843a8f03de80a20
7
+ data.tar.gz: 7e57cd7224a7208d3711e56b6494f4bd70f8ddfca7ebcb56e568a465311217fd808591264b47ef46503c504b357263fcf8ec3a7536bd0b22966abede01800b84
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-recommender_v1
2
2
 
3
+ ### v0.20.0 (2022-06-20)
4
+
5
+ * Regenerated using generator version 0.7.0
6
+
7
+ ### v0.19.0 (2022-06-06)
8
+
9
+ * Regenerated using generator version 0.5.0
10
+
11
+ ### v0.18.0 (2022-03-30)
12
+
13
+ * Regenerated from discovery document revision 20220327
14
+
3
15
  ### v0.17.0 (2022-03-23)
4
16
 
5
17
  * Regenerated from discovery document revision 20220321
@@ -213,93 +213,6 @@ 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
-
303
216
  # Response to the `ListInsights` method.
304
217
  class GoogleCloudRecommenderV1ListInsightsResponse
305
218
  include Google::Apis::Core::Hashable
@@ -751,93 +664,6 @@ module Google
751
664
  end
752
665
  end
753
666
 
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
-
841
667
  # Contains various ways of describing the impact on Security.
842
668
  class GoogleCloudRecommenderV1SecurityProjection
843
669
  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.17.0"
19
+ GEM_VERSION = "0.20.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.7.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220321"
25
+ REVISION = "20220327"
26
26
  end
27
27
  end
28
28
  end
@@ -52,18 +52,6 @@ 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
-
67
55
  class GoogleCloudRecommenderV1ListInsightsResponse
68
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
57
 
@@ -136,18 +124,6 @@ module Google
136
124
  include Google::Apis::Core::JsonObjectSupport
137
125
  end
138
126
 
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
-
151
127
  class GoogleCloudRecommenderV1SecurityProjection
152
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
129
 
@@ -221,27 +197,6 @@ module Google
221
197
  end
222
198
  end
223
199
 
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
-
245
200
  class GoogleCloudRecommenderV1ListInsightsResponse
246
201
  # @private
247
202
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -365,27 +320,6 @@ module Google
365
320
  end
366
321
  end
367
322
 
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
-
389
323
  class GoogleCloudRecommenderV1SecurityProjection
390
324
  # @private
391
325
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -719,83 +719,6 @@ 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
-
799
722
  # Gets the requested insight. Requires the recommender.*.get IAM permission for
800
723
  # the specified insight type.
801
724
  # @param [String] name
@@ -924,82 +847,6 @@ module Google
924
847
  execute_or_queue_command(command, &block)
925
848
  end
926
849
 
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
-
1003
850
  # Gets the requested recommendation. Requires the recommender.*.get IAM
1004
851
  # permission for the specified recommender.
1005
852
  # @param [String] name
@@ -1207,83 +1054,6 @@ module Google
1207
1054
  execute_or_queue_command(command, &block)
1208
1055
  end
1209
1056
 
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
-
1287
1057
  # Gets the requested insight. Requires the recommender.*.get IAM permission for
1288
1058
  # the specified insight type.
1289
1059
  # @param [String] name
@@ -1412,82 +1182,6 @@ module Google
1412
1182
  execute_or_queue_command(command, &block)
1413
1183
  end
1414
1184
 
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
-
1491
1185
  # Gets the requested recommendation. Requires the recommender.*.get IAM
1492
1186
  # permission for the specified recommender.
1493
1187
  # @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.17.0
4
+ version: 0.20.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-03-28 00:00:00.000000000 Z
11
+ date: 2022-06-27 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.4'
19
+ version: '0.6'
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.4'
29
+ version: '0.6'
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.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1/v0.20.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.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Recommender API V1