google-apis-recommender_v1beta1 0.13.0 → 0.17.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: 21064d736cd1925e194ab0867523f5295f638995cc64978f4d8687fb1e6a6f91
4
- data.tar.gz: b85a46d89264e8aa99fd0badc0ee18caf772858b38d5a05315ac02af56b08744
3
+ metadata.gz: 333f0696d0cff3898e7169f34a93512819064fe05dfe4311c5d5bcff789fca9f
4
+ data.tar.gz: 1d680d5ac34e931a96a6b6a3b2e846bd6d53be28f17ee6b170f28e02e156f414
5
5
  SHA512:
6
- metadata.gz: 2b8426debb36d2ad933f642b042acb52018b1a89f72b583af1262f8fad4eb79c4a8e917ff38195dfc4179dc6d77e94e23c34d2e8b78b160599f16cdac0add1e5
7
- data.tar.gz: 074736ddae63c4bf4f0ca667e167c5cb3a37525a7f56c56664b448a02b86a7c42787f1848fefddfa8781f44758fa35853f18d584661f05407701f14b38fbb8c9
6
+ metadata.gz: 2d5e618c087eabe32e2f1f31f4452589865d7f4b54ea2968d9970322dd08df28839bed90db78223b3696ee2211056a726a1aa31ddf59ce8891d9bba4821af97d
7
+ data.tar.gz: 30547665c6fc46c34e6fddfba507a7e615714fd11c1f5ae4c0dad658c7a1246e7722b0f57273ce12a98d3c52b9ac26ac4219bf2eccd9ec77c88adb458c69e561
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-recommender_v1beta1
2
2
 
3
+ ### v0.17.0 (2021-12-09)
4
+
5
+ * Regenerated from discovery document revision 20211205
6
+
7
+ ### v0.16.0 (2021-11-10)
8
+
9
+ * Regenerated from discovery document revision 20211105
10
+
11
+ ### v0.15.0 (2021-11-03)
12
+
13
+ * Regenerated from discovery document revision 20211031
14
+
15
+ ### v0.14.0 (2021-10-20)
16
+
17
+ * Unspecified changes
18
+
3
19
  ### v0.13.0 (2021-09-01)
4
20
 
5
21
  * Regenerated from discovery document revision 20210806
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Recommender service in particular.)
67
67
 
@@ -213,6 +213,93 @@ module Google
213
213
  end
214
214
  end
215
215
 
216
+ # Configuration for an InsightType.
217
+ class GoogleCloudRecommenderV1beta1InsightTypeConfig
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::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig]
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 GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig
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 GoogleCloudRecommenderV1beta1ListInsightsResponse
218
305
  include Google::Apis::Core::Hashable
@@ -301,8 +388,8 @@ module Google
301
388
  attr_accessor :etag
302
389
 
303
390
  # State properties to include with this state. Overwrites any existing `
304
- # state_metadata`. Keys must match the regex /^a-z0-9`0,62`$/. Values must match
305
- # the regex /^[a-zA-Z0-9_./-]`0,255`$/.
391
+ # state_metadata`. Keys must match the regex `/^a-z0-9`0,62`$/`. Values must
392
+ # match the regex `/^[a-zA-Z0-9_./-]`0,255`$/`.
306
393
  # Corresponds to the JSON property `stateMetadata`
307
394
  # @return [Hash<String,String>]
308
395
  attr_accessor :state_metadata
@@ -328,8 +415,8 @@ module Google
328
415
  attr_accessor :etag
329
416
 
330
417
  # State properties to include with this state. Overwrites any existing `
331
- # state_metadata`. Keys must match the regex /^a-z0-9`0,62`$/. Values must match
332
- # the regex /^[a-zA-Z0-9_./-]`0,255`$/.
418
+ # state_metadata`. Keys must match the regex `/^a-z0-9`0,62`$/`. Values must
419
+ # match the regex `/^[a-zA-Z0-9_./-]`0,255`$/`.
333
420
  # Corresponds to the JSON property `stateMetadata`
334
421
  # @return [Hash<String,String>]
335
422
  attr_accessor :state_metadata
@@ -355,8 +442,8 @@ module Google
355
442
  attr_accessor :etag
356
443
 
357
444
  # State properties to include with this state. Overwrites any existing `
358
- # state_metadata`. Keys must match the regex /^a-z0-9`0,62`$/. Values must match
359
- # the regex /^[a-zA-Z0-9_./-]`0,255`$/.
445
+ # state_metadata`. Keys must match the regex `/^a-z0-9`0,62`$/`. Values must
446
+ # match the regex `/^[a-zA-Z0-9_./-]`0,255`$/`.
360
447
  # Corresponds to the JSON property `stateMetadata`
361
448
  # @return [Hash<String,String>]
362
449
  attr_accessor :state_metadata
@@ -397,12 +484,12 @@ module Google
397
484
  # Set of filters to apply if `path` refers to array elements or nested array
398
485
  # elements in order to narrow down to a single unique element that is being
399
486
  # tested/modified. This is intended to be an exact match per filter. To perform
400
- # advanced matching, use path_value_matchers. * Example: ` "/versions/*/name" : "
401
- # it-123" "/versions/*/targetSize/percent": 20 ` * Example: ` "/bindings/*/role":
402
- # "roles/owner" "/bindings/*/condition" : null ` * Example: ` "/bindings/*/role"
403
- # : "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] `
404
- # When both path_filters and path_value_matchers are set, an implicit AND must
405
- # be performed.
487
+ # advanced matching, use path_value_matchers. * Example: ``` ` "/versions/*/name"
488
+ # : "it-123" "/versions/*/targetSize/percent": 20 ` ``` * Example: ``` ` "/
489
+ # bindings/*/role": "roles/owner" "/bindings/*/condition" : null ` ``` * Example:
490
+ # ``` ` "/bindings/*/role": "roles/owner" "/bindings/*/members/*" : ["x@example.
491
+ # com", "y@example.com"] ` ``` When both path_filters and path_value_matchers
492
+ # are set, an implicit AND must be performed.
406
493
  # Corresponds to the JSON property `pathFilters`
407
494
  # @return [Hash<String,Object>]
408
495
  attr_accessor :path_filters
@@ -563,6 +650,14 @@ module Google
563
650
  # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommendationStateInfo]
564
651
  attr_accessor :state_info
565
652
 
653
+ # Corresponds to a mutually exclusive group ID within a recommender. A non-empty
654
+ # ID indicates that the recommendation belongs to a mutually exclusive group.
655
+ # This means that only one recommendation within the group is suggested to be
656
+ # applied.
657
+ # Corresponds to the JSON property `xorGroupId`
658
+ # @return [String]
659
+ attr_accessor :xor_group_id
660
+
566
661
  def initialize(**args)
567
662
  update!(**args)
568
663
  end
@@ -580,6 +675,7 @@ module Google
580
675
  @priority = args[:priority] if args.key?(:priority)
581
676
  @recommender_subtype = args[:recommender_subtype] if args.key?(:recommender_subtype)
582
677
  @state_info = args[:state_info] if args.key?(:state_info)
678
+ @xor_group_id = args[:xor_group_id] if args.key?(:xor_group_id)
583
679
  end
584
680
  end
585
681
 
@@ -655,6 +751,93 @@ module Google
655
751
  end
656
752
  end
657
753
 
754
+ # Configuration for a Recommender.
755
+ class GoogleCloudRecommenderV1beta1RecommenderConfig
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::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderGenerationConfig]
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 GoogleCloudRecommenderV1beta1RecommenderGenerationConfig
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
+
658
841
  # Contains various ways of describing the impact on Security.
659
842
  class GoogleCloudRecommenderV1beta1SecurityProjection
660
843
  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.13.0"
19
+ GEM_VERSION = "0.17.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210806"
25
+ REVISION = "20211205"
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,6 +136,18 @@ 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
 
@@ -197,6 +221,27 @@ module Google
197
221
  end
198
222
  end
199
223
 
224
+ class GoogleCloudRecommenderV1beta1InsightTypeConfig
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::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig, decorator: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig::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 GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig
239
+ # @private
240
+ class Representation < Google::Apis::Core::JsonRepresentation
241
+ hash :params, as: 'params'
242
+ end
243
+ end
244
+
200
245
  class GoogleCloudRecommenderV1beta1ListInsightsResponse
201
246
  # @private
202
247
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -292,6 +337,7 @@ module Google
292
337
  property :recommender_subtype, as: 'recommenderSubtype'
293
338
  property :state_info, as: 'stateInfo', class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommendationStateInfo, decorator: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommendationStateInfo::Representation
294
339
 
340
+ property :xor_group_id, as: 'xorGroupId'
295
341
  end
296
342
  end
297
343
 
@@ -319,6 +365,27 @@ module Google
319
365
  end
320
366
  end
321
367
 
368
+ class GoogleCloudRecommenderV1beta1RecommenderConfig
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::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderGenerationConfig, decorator: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderGenerationConfig::Representation
376
+
377
+ property :revision_id, as: 'revisionId'
378
+ property :update_time, as: 'updateTime'
379
+ end
380
+ end
381
+
382
+ class GoogleCloudRecommenderV1beta1RecommenderGenerationConfig
383
+ # @private
384
+ class Representation < Google::Apis::Core::JsonRepresentation
385
+ hash :params, as: 'params'
386
+ end
387
+ end
388
+
322
389
  class GoogleCloudRecommenderV1beta1SecurityProjection
323
390
  # @private
324
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
+ # 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.13.0
4
+ version: 0.17.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-09-06 00:00:00.000000000 Z
11
+ date: 2021-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-recommender_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1beta1/v0.13.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-recommender_v1beta1
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.17.0
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: []
65
65
  require_paths: