google-apis-recommender_v1beta1 0.14.0 → 0.18.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: 27ff7659f7255523c6ce6992ef67e9b8c6f228f4cb3f932c71f6b93204076708
4
- data.tar.gz: 802e0090a52194f3b68a4976b3e269790a0981bb1397b778dd98b2f8cd283f32
3
+ metadata.gz: f9359882b993221618937af4b36e898e3480b573fd65824ae4f5818cdd149d8e
4
+ data.tar.gz: a2b514b4991824db60ad6ce0aa62aea6107e3a1e382aca98d4038725186a0d84
5
5
  SHA512:
6
- metadata.gz: cfb8f244b96f44f6f1a7a0822d42437a790ed76e922318fdd4083b4976d062a379154c3467a1e674fc713fb1b6b73c29859c69dccc19b0f614c2bf006c661834
7
- data.tar.gz: c19d1511973981756d4350de5ec8e76ceb00b2a7a3cd267cc3f49f15d44870eeba0e61f3c00c2456d77ec4da05e44d3b7d347407588d25ff73883e1da2fbacb8
6
+ metadata.gz: 4ad81a2b2c88cfbec8ad89e37d86e0edfd981d2089fe5800d6471e987394bb704094877b6b7c447f6cc089c1aa8f45c843cd1ceba32dfa8f9f1d663d2e4feca4
7
+ data.tar.gz: b4cf462ae73d55e967ad98e2e4e4b4e841a6ee5edbc858578a8b0eba23893503ef61fbc108be5a442c9c87d9926032feb5ebfb6e72c995ad809186c021f53adf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-recommender_v1beta1
2
2
 
3
+ ### v0.18.0 (2021-12-14)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.17.0 (2021-12-09)
8
+
9
+ * Regenerated from discovery document revision 20211205
10
+
11
+ ### v0.16.0 (2021-11-10)
12
+
13
+ * Regenerated from discovery document revision 20211105
14
+
15
+ ### v0.15.0 (2021-11-03)
16
+
17
+ * Regenerated from discovery document revision 20211031
18
+
3
19
  ### v0.14.0 (2021-10-20)
4
20
 
5
21
  * Unspecified changes
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.
@@ -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.14.0"
19
+ GEM_VERSION = "0.18.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.14.0
4
+ version: 0.18.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-10-27 00:00:00.000000000 Z
11
+ date: 2022-01-10 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.14.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1beta1/v0.18.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.4
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Recommender API V1beta1