google-apis-recommender_v1beta1 0.15.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 541f03c6953fba37717d049c87ae4f04c52c891d6101b092c4a5c9a33f2c470d
4
- data.tar.gz: 99af9da8c1544543f7f2b439e8ece7035fb4286bf3949233e0c10bd6a7405803
3
+ metadata.gz: 8f092e5292fe553a5862acbb28e532840bf25329106f180c975e769e96b13b0d
4
+ data.tar.gz: 9045609d7ad285a90f77f3f67695188e16f61f8a092e8eb7b0737bdeec28d041
5
5
  SHA512:
6
- metadata.gz: ed0e63dce8b32d3bf89917cbbc76f6e4766166e33608d18cbfdde7943364f591c5cadaac719e9061c7168a1536b84eace9914767ebb5ed0e3a5f21d57d64509e
7
- data.tar.gz: e6c48d6dc005f8b19898c50a7d61a448e6985a4349b457257e2bb17d020b911c6db5236019aaba9e05a41999c15f09b8af921672f36a19db657e253f186735e8
6
+ metadata.gz: cd1e53c249c193d7a959724c3074e2aa0190cf84b19e70e36b20b5f3b262447d0d44ecedce01a4670550bcd24df839755c6ef76752479b39f1b557741a29e86d
7
+ data.tar.gz: a2a27c5fb3ee6c53e189a04e7502271080988d13679668537e46c451db7232732343119835d553831c4f5f88b6c0c3acf833f777d3065d514cdda06b7f1ac300
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-recommender_v1beta1
2
2
 
3
+ ### v0.19.0 (2022-02-10)
4
+
5
+ * Regenerated from discovery document revision 20220207
6
+ * Regenerated using generator version 0.4.1
7
+
8
+ ### v0.18.0 (2021-12-14)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.17.0 (2021-12-09)
13
+
14
+ * Regenerated from discovery document revision 20211205
15
+
16
+ ### v0.16.0 (2021-11-10)
17
+
18
+ * Regenerated from discovery document revision 20211105
19
+
3
20
  ### v0.15.0 (2021-11-03)
4
21
 
5
22
  * Regenerated from discovery document revision 20211031
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/recommender_v1beta1"
51
51
  client = Google::Apis::RecommenderV1beta1::RecommenderService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -66,6 +66,12 @@ module Google
66
66
  # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SecurityProjection]
67
67
  attr_accessor :security_projection
68
68
 
69
+ # Contains metadata about how much sustainability a recommendation can save or
70
+ # incur.
71
+ # Corresponds to the JSON property `sustainabilityProjection`
72
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SustainabilityProjection]
73
+ attr_accessor :sustainability_projection
74
+
69
75
  def initialize(**args)
70
76
  update!(**args)
71
77
  end
@@ -75,6 +81,7 @@ module Google
75
81
  @category = args[:category] if args.key?(:category)
76
82
  @cost_projection = args[:cost_projection] if args.key?(:cost_projection)
77
83
  @security_projection = args[:security_projection] if args.key?(:security_projection)
84
+ @sustainability_projection = args[:sustainability_projection] if args.key?(:sustainability_projection)
78
85
  end
79
86
  end
80
87
 
@@ -213,6 +220,93 @@ module Google
213
220
  end
214
221
  end
215
222
 
223
+ # Configuration for an InsightType.
224
+ class GoogleCloudRecommenderV1beta1InsightTypeConfig
225
+ include Google::Apis::Core::Hashable
226
+
227
+ # Allows clients to store small amounts of arbitrary data. Annotations must
228
+ # follow the Kubernetes syntax. The total size of all keys and values combined
229
+ # is limited to 256k. Key can have 2 segments: prefix (optional) and name (
230
+ # required), separated by a slash (/). Prefix must be a DNS subdomain. Name must
231
+ # be 63 characters or less, begin and end with alphanumerics, with dashes (-),
232
+ # underscores (_), dots (.), and alphanumerics between.
233
+ # Corresponds to the JSON property `annotations`
234
+ # @return [Hash<String,String>]
235
+ attr_accessor :annotations
236
+
237
+ # A user-settable field to provide a human-readable name to be used in user
238
+ # interfaces.
239
+ # Corresponds to the JSON property `displayName`
240
+ # @return [String]
241
+ attr_accessor :display_name
242
+
243
+ # Fingerprint of the InsightTypeConfig. Provides optimistic locking when
244
+ # updating.
245
+ # Corresponds to the JSON property `etag`
246
+ # @return [String]
247
+ attr_accessor :etag
248
+
249
+ # A configuration to customize the generation of insights. Eg, customizing the
250
+ # lookback period considered when generating a insight.
251
+ # Corresponds to the JSON property `insightTypeGenerationConfig`
252
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig]
253
+ attr_accessor :insight_type_generation_config
254
+
255
+ # Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]
256
+ # /insightTypes/[INSIGHT_TYPE_ID]/config
257
+ # Corresponds to the JSON property `name`
258
+ # @return [String]
259
+ attr_accessor :name
260
+
261
+ # Output only. Immutable. The revision ID of the config. A new revision is
262
+ # committed whenever the config is changed in any way. The format is an 8-
263
+ # character hexadecimal string.
264
+ # Corresponds to the JSON property `revisionId`
265
+ # @return [String]
266
+ attr_accessor :revision_id
267
+
268
+ # Last time when the config was updated.
269
+ # Corresponds to the JSON property `updateTime`
270
+ # @return [String]
271
+ attr_accessor :update_time
272
+
273
+ def initialize(**args)
274
+ update!(**args)
275
+ end
276
+
277
+ # Update properties of this object
278
+ def update!(**args)
279
+ @annotations = args[:annotations] if args.key?(:annotations)
280
+ @display_name = args[:display_name] if args.key?(:display_name)
281
+ @etag = args[:etag] if args.key?(:etag)
282
+ @insight_type_generation_config = args[:insight_type_generation_config] if args.key?(:insight_type_generation_config)
283
+ @name = args[:name] if args.key?(:name)
284
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
285
+ @update_time = args[:update_time] if args.key?(:update_time)
286
+ end
287
+ end
288
+
289
+ # A configuration to customize the generation of insights. Eg, customizing the
290
+ # lookback period considered when generating a insight.
291
+ class GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig
292
+ include Google::Apis::Core::Hashable
293
+
294
+ # Parameters for this InsightTypeGenerationConfig. These configs can be used by
295
+ # or are applied to all subtypes.
296
+ # Corresponds to the JSON property `params`
297
+ # @return [Hash<String,Object>]
298
+ attr_accessor :params
299
+
300
+ def initialize(**args)
301
+ update!(**args)
302
+ end
303
+
304
+ # Update properties of this object
305
+ def update!(**args)
306
+ @params = args[:params] if args.key?(:params)
307
+ end
308
+ end
309
+
216
310
  # Response to the `ListInsights` method.
217
311
  class GoogleCloudRecommenderV1beta1ListInsightsResponse
218
312
  include Google::Apis::Core::Hashable
@@ -664,6 +758,93 @@ module Google
664
758
  end
665
759
  end
666
760
 
761
+ # Configuration for a Recommender.
762
+ class GoogleCloudRecommenderV1beta1RecommenderConfig
763
+ include Google::Apis::Core::Hashable
764
+
765
+ # Allows clients to store small amounts of arbitrary data. Annotations must
766
+ # follow the Kubernetes syntax. The total size of all keys and values combined
767
+ # is limited to 256k. Key can have 2 segments: prefix (optional) and name (
768
+ # required), separated by a slash (/). Prefix must be a DNS subdomain. Name must
769
+ # be 63 characters or less, begin and end with alphanumerics, with dashes (-),
770
+ # underscores (_), dots (.), and alphanumerics between.
771
+ # Corresponds to the JSON property `annotations`
772
+ # @return [Hash<String,String>]
773
+ attr_accessor :annotations
774
+
775
+ # A user-settable field to provide a human-readable name to be used in user
776
+ # interfaces.
777
+ # Corresponds to the JSON property `displayName`
778
+ # @return [String]
779
+ attr_accessor :display_name
780
+
781
+ # Fingerprint of the RecommenderConfig. Provides optimistic locking when
782
+ # updating.
783
+ # Corresponds to the JSON property `etag`
784
+ # @return [String]
785
+ attr_accessor :etag
786
+
787
+ # Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/
788
+ # recommenders/[RECOMMENDER_ID]/config
789
+ # Corresponds to the JSON property `name`
790
+ # @return [String]
791
+ attr_accessor :name
792
+
793
+ # A Configuration to customize the generation of recommendations. Eg,
794
+ # customizing the lookback period considered when generating a recommendation.
795
+ # Corresponds to the JSON property `recommenderGenerationConfig`
796
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderGenerationConfig]
797
+ attr_accessor :recommender_generation_config
798
+
799
+ # Output only. Immutable. The revision ID of the config. A new revision is
800
+ # committed whenever the config is changed in any way. The format is an 8-
801
+ # character hexadecimal string.
802
+ # Corresponds to the JSON property `revisionId`
803
+ # @return [String]
804
+ attr_accessor :revision_id
805
+
806
+ # Last time when the config was updated.
807
+ # Corresponds to the JSON property `updateTime`
808
+ # @return [String]
809
+ attr_accessor :update_time
810
+
811
+ def initialize(**args)
812
+ update!(**args)
813
+ end
814
+
815
+ # Update properties of this object
816
+ def update!(**args)
817
+ @annotations = args[:annotations] if args.key?(:annotations)
818
+ @display_name = args[:display_name] if args.key?(:display_name)
819
+ @etag = args[:etag] if args.key?(:etag)
820
+ @name = args[:name] if args.key?(:name)
821
+ @recommender_generation_config = args[:recommender_generation_config] if args.key?(:recommender_generation_config)
822
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
823
+ @update_time = args[:update_time] if args.key?(:update_time)
824
+ end
825
+ end
826
+
827
+ # A Configuration to customize the generation of recommendations. Eg,
828
+ # customizing the lookback period considered when generating a recommendation.
829
+ class GoogleCloudRecommenderV1beta1RecommenderGenerationConfig
830
+ include Google::Apis::Core::Hashable
831
+
832
+ # Parameters for this RecommenderGenerationConfig. These configs can be used by
833
+ # or are applied to all subtypes.
834
+ # Corresponds to the JSON property `params`
835
+ # @return [Hash<String,Object>]
836
+ attr_accessor :params
837
+
838
+ def initialize(**args)
839
+ update!(**args)
840
+ end
841
+
842
+ # Update properties of this object
843
+ def update!(**args)
844
+ @params = args[:params] if args.key?(:params)
845
+ end
846
+ end
847
+
667
848
  # Contains various ways of describing the impact on Security.
668
849
  class GoogleCloudRecommenderV1beta1SecurityProjection
669
850
  include Google::Apis::Core::Hashable
@@ -684,6 +865,33 @@ module Google
684
865
  end
685
866
  end
686
867
 
868
+ # Contains metadata about how much sustainability a recommendation can save or
869
+ # incur.
870
+ class GoogleCloudRecommenderV1beta1SustainabilityProjection
871
+ include Google::Apis::Core::Hashable
872
+
873
+ # Duration for which this sustanability applies.
874
+ # Corresponds to the JSON property `duration`
875
+ # @return [String]
876
+ attr_accessor :duration
877
+
878
+ # Carbon Footprint generated in kg of CO2 equivalent. Chose kg_c_o2e so that the
879
+ # name renders correctly in camelCase (kgCO2e).
880
+ # Corresponds to the JSON property `kgCO2e`
881
+ # @return [Float]
882
+ attr_accessor :kg_co2e
883
+
884
+ def initialize(**args)
885
+ update!(**args)
886
+ end
887
+
888
+ # Update properties of this object
889
+ def update!(**args)
890
+ @duration = args[:duration] if args.key?(:duration)
891
+ @kg_co2e = args[:kg_co2e] if args.key?(:kg_co2e)
892
+ end
893
+ end
894
+
687
895
  # Contains various matching options for values for a GCP resource field.
688
896
  class GoogleCloudRecommenderV1beta1ValueMatcher
689
897
  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.15.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211031"
25
+ REVISION = "20220207"
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 GoogleCloudRecommenderV1beta1InsightTypeConfig
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
55
67
  class GoogleCloudRecommenderV1beta1ListInsightsResponse
56
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
69
 
@@ -124,12 +136,30 @@ module Google
124
136
  include Google::Apis::Core::JsonObjectSupport
125
137
  end
126
138
 
139
+ class GoogleCloudRecommenderV1beta1RecommenderConfig
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class GoogleCloudRecommenderV1beta1RecommenderGenerationConfig
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
127
151
  class GoogleCloudRecommenderV1beta1SecurityProjection
128
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
153
 
130
154
  include Google::Apis::Core::JsonObjectSupport
131
155
  end
132
156
 
157
+ class GoogleCloudRecommenderV1beta1SustainabilityProjection
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
133
163
  class GoogleCloudRecommenderV1beta1ValueMatcher
134
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
165
 
@@ -159,6 +189,8 @@ module Google
159
189
 
160
190
  property :security_projection, as: 'securityProjection', class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SecurityProjection, decorator: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SecurityProjection::Representation
161
191
 
192
+ property :sustainability_projection, as: 'sustainabilityProjection', class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SustainabilityProjection, decorator: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SustainabilityProjection::Representation
193
+
162
194
  end
163
195
  end
164
196
 
@@ -197,6 +229,27 @@ module Google
197
229
  end
198
230
  end
199
231
 
232
+ class GoogleCloudRecommenderV1beta1InsightTypeConfig
233
+ # @private
234
+ class Representation < Google::Apis::Core::JsonRepresentation
235
+ hash :annotations, as: 'annotations'
236
+ property :display_name, as: 'displayName'
237
+ property :etag, as: 'etag'
238
+ property :insight_type_generation_config, as: 'insightTypeGenerationConfig', class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig, decorator: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig::Representation
239
+
240
+ property :name, as: 'name'
241
+ property :revision_id, as: 'revisionId'
242
+ property :update_time, as: 'updateTime'
243
+ end
244
+ end
245
+
246
+ class GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig
247
+ # @private
248
+ class Representation < Google::Apis::Core::JsonRepresentation
249
+ hash :params, as: 'params'
250
+ end
251
+ end
252
+
200
253
  class GoogleCloudRecommenderV1beta1ListInsightsResponse
201
254
  # @private
202
255
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -320,6 +373,27 @@ module Google
320
373
  end
321
374
  end
322
375
 
376
+ class GoogleCloudRecommenderV1beta1RecommenderConfig
377
+ # @private
378
+ class Representation < Google::Apis::Core::JsonRepresentation
379
+ hash :annotations, as: 'annotations'
380
+ property :display_name, as: 'displayName'
381
+ property :etag, as: 'etag'
382
+ property :name, as: 'name'
383
+ property :recommender_generation_config, as: 'recommenderGenerationConfig', class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderGenerationConfig, decorator: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderGenerationConfig::Representation
384
+
385
+ property :revision_id, as: 'revisionId'
386
+ property :update_time, as: 'updateTime'
387
+ end
388
+ end
389
+
390
+ class GoogleCloudRecommenderV1beta1RecommenderGenerationConfig
391
+ # @private
392
+ class Representation < Google::Apis::Core::JsonRepresentation
393
+ hash :params, as: 'params'
394
+ end
395
+ end
396
+
323
397
  class GoogleCloudRecommenderV1beta1SecurityProjection
324
398
  # @private
325
399
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -327,6 +401,14 @@ module Google
327
401
  end
328
402
  end
329
403
 
404
+ class GoogleCloudRecommenderV1beta1SustainabilityProjection
405
+ # @private
406
+ class Representation < Google::Apis::Core::JsonRepresentation
407
+ property :duration, as: 'duration'
408
+ property :kg_co2e, as: 'kgCO2e'
409
+ end
410
+ end
411
+
330
412
  class GoogleCloudRecommenderV1beta1ValueMatcher
331
413
  # @private
332
414
  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
+ # Updates an InsightTypeConfig change. This will create a new revision of the
723
+ # config.
724
+ # @param [String] name
725
+ # Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]
726
+ # /insightTypes/[INSIGHT_TYPE_ID]/config
727
+ # @param [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig] google_cloud_recommender_v1beta1_insight_type_config_object
728
+ # @param [String] update_mask
729
+ # The list of fields to be updated.
730
+ # @param [Boolean] validate_only
731
+ # If true, validate the request and preview the change, but do not actually
732
+ # update it.
733
+ # @param [String] fields
734
+ # Selector specifying which fields to include in a partial response.
735
+ # @param [String] quota_user
736
+ # Available to use for quota purposes for server-side applications. Can be any
737
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
738
+ # @param [Google::Apis::RequestOptions] options
739
+ # Request-specific options
740
+ #
741
+ # @yield [result, err] Result & error if block supplied
742
+ # @yieldparam result [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig] parsed result object
743
+ # @yieldparam err [StandardError] error object if request failed
744
+ #
745
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig]
746
+ #
747
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
748
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
749
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
750
+ def config_organization_location_insight_type(name, google_cloud_recommender_v1beta1_insight_type_config_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
751
+ command = make_simple_command(:post, 'v1beta1/{+name}', options)
752
+ command.request_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig::Representation
753
+ command.request_object = google_cloud_recommender_v1beta1_insight_type_config_object
754
+ command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig::Representation
755
+ command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig
756
+ command.params['name'] = name unless name.nil?
757
+ command.query['updateMask'] = update_mask unless update_mask.nil?
758
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
759
+ command.query['fields'] = fields unless fields.nil?
760
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
761
+ execute_or_queue_command(command, &block)
762
+ end
763
+
764
+ # Gets the requested InsightTypeConfig. There is only one instance of the config
765
+ # for each InsightType.
766
+ # @param [String] name
767
+ # Required. Name of the InsightTypeConfig to get. Acceptable formats: * `
768
+ # projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/
769
+ # config` * `projects/[PROJECT_ID]/locations/global/recommenders/[
770
+ # INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/global/
771
+ # recommenders/[INSIGHT_TYPE_ID]/config`
772
+ # @param [String] fields
773
+ # Selector specifying which fields to include in a partial response.
774
+ # @param [String] quota_user
775
+ # Available to use for quota purposes for server-side applications. Can be any
776
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
777
+ # @param [Google::Apis::RequestOptions] options
778
+ # Request-specific options
779
+ #
780
+ # @yield [result, err] Result & error if block supplied
781
+ # @yieldparam result [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig] parsed result object
782
+ # @yieldparam err [StandardError] error object if request failed
783
+ #
784
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig]
785
+ #
786
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
787
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
788
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
789
+ def get_organization_location_insight_type_config(name, fields: nil, quota_user: nil, options: nil, &block)
790
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
791
+ command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig::Representation
792
+ command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig
793
+ command.params['name'] = name unless name.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
+ # Updates a Recommender Config. This will create a new revision of the config.
928
+ # @param [String] name
929
+ # Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/
930
+ # recommenders/[RECOMMENDER_ID]/config
931
+ # @param [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig] google_cloud_recommender_v1beta1_recommender_config_object
932
+ # @param [String] update_mask
933
+ # The list of fields to be updated.
934
+ # @param [Boolean] validate_only
935
+ # If true, validate the request and preview the change, but do not actually
936
+ # update it.
937
+ # @param [String] fields
938
+ # Selector specifying which fields to include in a partial response.
939
+ # @param [String] quota_user
940
+ # Available to use for quota purposes for server-side applications. Can be any
941
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
942
+ # @param [Google::Apis::RequestOptions] options
943
+ # Request-specific options
944
+ #
945
+ # @yield [result, err] Result & error if block supplied
946
+ # @yieldparam result [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig] parsed result object
947
+ # @yieldparam err [StandardError] error object if request failed
948
+ #
949
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig]
950
+ #
951
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
952
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
953
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
954
+ def config_organization_location_recommender(name, google_cloud_recommender_v1beta1_recommender_config_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
955
+ command = make_simple_command(:post, 'v1beta1/{+name}', options)
956
+ command.request_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig::Representation
957
+ command.request_object = google_cloud_recommender_v1beta1_recommender_config_object
958
+ command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig::Representation
959
+ command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig
960
+ command.params['name'] = name unless name.nil?
961
+ command.query['updateMask'] = update_mask unless update_mask.nil?
962
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
963
+ command.query['fields'] = fields unless fields.nil?
964
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
965
+ execute_or_queue_command(command, &block)
966
+ end
967
+
968
+ # Gets the requested Recommender Config. There is only one instance of the
969
+ # config for each Recommender.
970
+ # @param [String] name
971
+ # Required. Name of the Recommendation Config to get. Acceptable formats: * `
972
+ # projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/
973
+ # config` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[
974
+ # RECOMMENDER_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]
975
+ # /recommenders/[RECOMMENDER_ID]/config`
976
+ # @param [String] fields
977
+ # Selector specifying which fields to include in a partial response.
978
+ # @param [String] quota_user
979
+ # Available to use for quota purposes for server-side applications. Can be any
980
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
981
+ # @param [Google::Apis::RequestOptions] options
982
+ # Request-specific options
983
+ #
984
+ # @yield [result, err] Result & error if block supplied
985
+ # @yieldparam result [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig] parsed result object
986
+ # @yieldparam err [StandardError] error object if request failed
987
+ #
988
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig]
989
+ #
990
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
991
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
992
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
993
+ def get_organization_location_recommender_config(name, fields: nil, quota_user: nil, options: nil, &block)
994
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
995
+ command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig::Representation
996
+ command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig
997
+ command.params['name'] = name unless name.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::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig] parsed result object
1228
+ # @yieldparam err [StandardError] error object if request failed
1229
+ #
1230
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig]
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, 'v1beta1/{+name}', options)
1237
+ command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig::Representation
1238
+ command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig
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::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig] google_cloud_recommender_v1beta1_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::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig] parsed result object
1266
+ # @yieldparam err [StandardError] error object if request failed
1267
+ #
1268
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig]
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_v1beta1_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, 'v1beta1/{+name}', options)
1275
+ command.request_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig::Representation
1276
+ command.request_object = google_cloud_recommender_v1beta1_insight_type_config_object
1277
+ command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig::Representation
1278
+ command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig
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::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig] parsed result object
1433
+ # @yieldparam err [StandardError] error object if request failed
1434
+ #
1435
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig]
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, 'v1beta1/{+name}', options)
1442
+ command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig::Representation
1443
+ command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig
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::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig] google_cloud_recommender_v1beta1_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::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig] parsed result object
1470
+ # @yieldparam err [StandardError] error object if request failed
1471
+ #
1472
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig]
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_v1beta1_recommender_config_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1478
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
1479
+ command.request_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig::Representation
1480
+ command.request_object = google_cloud_recommender_v1beta1_recommender_config_object
1481
+ command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig::Representation
1482
+ command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig
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_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.19.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: 2021-11-08 00:00:00.000000000 Z
11
+ date: 2022-02-14 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.15.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1beta1/v0.19.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.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Recommender API V1beta1