google-apis-recommender_v1beta1 0.18.0 → 0.21.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: f9359882b993221618937af4b36e898e3480b573fd65824ae4f5818cdd149d8e
4
- data.tar.gz: a2b514b4991824db60ad6ce0aa62aea6107e3a1e382aca98d4038725186a0d84
3
+ metadata.gz: 44ef24142901c389d600c7785c1bbdb4e486a77114a72de6e65184d58035a184
4
+ data.tar.gz: 85b27c25b21a154b7deb5ec23219640c001379d49f7eeff88d75ed376540a1dd
5
5
  SHA512:
6
- metadata.gz: 4ad81a2b2c88cfbec8ad89e37d86e0edfd981d2089fe5800d6471e987394bb704094877b6b7c447f6cc089c1aa8f45c843cd1ceba32dfa8f9f1d663d2e4feca4
7
- data.tar.gz: b4cf462ae73d55e967ad98e2e4e4b4e841a6ee5edbc858578a8b0eba23893503ef61fbc108be5a442c9c87d9926032feb5ebfb6e72c995ad809186c021f53adf
6
+ metadata.gz: 9eb9f20c4f4a484a245f181552acb3855ab3affa04cc6ee181d802d47737adafd47b18310dc66dbba8493636798154f52a5fd80b7de0b138336a82d55a6d1e97
7
+ data.tar.gz: 9041184afc9a2cb7e7d86d2e9e0842af6391c862ef4fabb77655f174cee3c4efa7617a6492a96b868f15ddde2d67e3a76312cfb5d3a7ade623e20f3eb9cc9bac
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-recommender_v1beta1
2
2
 
3
+ ### v0.21.0 (2022-06-02)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.20.0 (2022-03-09)
8
+
9
+ * Regenerated from discovery document revision 20220307
10
+
11
+ ### v0.19.0 (2022-02-10)
12
+
13
+ * Regenerated from discovery document revision 20220207
14
+ * Regenerated using generator version 0.4.1
15
+
3
16
  ### v0.18.0 (2021-12-14)
4
17
 
5
18
  * Unspecified changes
@@ -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
 
@@ -858,6 +865,33 @@ module Google
858
865
  end
859
866
  end
860
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
+
861
895
  # Contains various matching options for values for a GCP resource field.
862
896
  class GoogleCloudRecommenderV1beta1ValueMatcher
863
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.18.0"
19
+ GEM_VERSION = "0.21.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 = "20211205"
25
+ REVISION = "20220307"
26
26
  end
27
27
  end
28
28
  end
@@ -154,6 +154,12 @@ module Google
154
154
  include Google::Apis::Core::JsonObjectSupport
155
155
  end
156
156
 
157
+ class GoogleCloudRecommenderV1beta1SustainabilityProjection
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
157
163
  class GoogleCloudRecommenderV1beta1ValueMatcher
158
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
165
 
@@ -183,6 +189,8 @@ module Google
183
189
 
184
190
  property :security_projection, as: 'securityProjection', class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SecurityProjection, decorator: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SecurityProjection::Representation
185
191
 
192
+ property :sustainability_projection, as: 'sustainabilityProjection', class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SustainabilityProjection, decorator: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SustainabilityProjection::Representation
193
+
186
194
  end
187
195
  end
188
196
 
@@ -393,6 +401,14 @@ module Google
393
401
  end
394
402
  end
395
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
+
396
412
  class GoogleCloudRecommenderV1beta1ValueMatcher
397
413
  # @private
398
414
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -719,17 +719,14 @@ 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.
722
+ # Gets the requested InsightTypeConfig. There is only one instance of the config
723
+ # for each InsightType.
724
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.
725
+ # Required. Name of the InsightTypeConfig to get. Acceptable formats: * `
726
+ # projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/
727
+ # config` * `projects/[PROJECT_ID]/locations/global/recommenders/[
728
+ # INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/global/
729
+ # recommenders/[INSIGHT_TYPE_ID]/config`
733
730
  # @param [String] fields
734
731
  # Selector specifying which fields to include in a partial response.
735
732
  # @param [String] quota_user
@@ -747,28 +744,27 @@ module Google
747
744
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
748
745
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
749
746
  # @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
747
+ def get_organization_location_insight_type_config(name, fields: nil, quota_user: nil, options: nil, &block)
748
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
754
749
  command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig::Representation
755
750
  command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig
756
751
  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
752
  command.query['fields'] = fields unless fields.nil?
760
753
  command.query['quotaUser'] = quota_user unless quota_user.nil?
761
754
  execute_or_queue_command(command, &block)
762
755
  end
763
756
 
764
- # Gets the requested InsightTypeConfig. There is only one instance of the config
765
- # for each InsightType.
757
+ # Updates an InsightTypeConfig change. This will create a new revision of the
758
+ # config.
766
759
  # @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`
760
+ # Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]
761
+ # /insightTypes/[INSIGHT_TYPE_ID]/config
762
+ # @param [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig] google_cloud_recommender_v1beta1_insight_type_config_object
763
+ # @param [String] update_mask
764
+ # The list of fields to be updated.
765
+ # @param [Boolean] validate_only
766
+ # If true, validate the request and preview the change, but do not actually
767
+ # update it.
772
768
  # @param [String] fields
773
769
  # Selector specifying which fields to include in a partial response.
774
770
  # @param [String] quota_user
@@ -786,11 +782,15 @@ module Google
786
782
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
787
783
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
788
784
  # @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)
785
+ def update_organization_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)
786
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
787
+ command.request_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig::Representation
788
+ command.request_object = google_cloud_recommender_v1beta1_insight_type_config_object
791
789
  command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig::Representation
792
790
  command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightTypeConfig
793
791
  command.params['name'] = name unless name.nil?
792
+ command.query['updateMask'] = update_mask unless update_mask.nil?
793
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
794
794
  command.query['fields'] = fields unless fields.nil?
795
795
  command.query['quotaUser'] = quota_user unless quota_user.nil?
796
796
  execute_or_queue_command(command, &block)
@@ -924,16 +924,14 @@ module Google
924
924
  execute_or_queue_command(command, &block)
925
925
  end
926
926
 
927
- # Updates a Recommender Config. This will create a new revision of the config.
927
+ # Gets the requested Recommender Config. There is only one instance of the
928
+ # config for each Recommender.
928
929
  # @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.
930
+ # Required. Name of the Recommendation Config to get. Acceptable formats: * `
931
+ # projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/
932
+ # config` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[
933
+ # RECOMMENDER_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]
934
+ # /recommenders/[RECOMMENDER_ID]/config`
937
935
  # @param [String] fields
938
936
  # Selector specifying which fields to include in a partial response.
939
937
  # @param [String] quota_user
@@ -951,28 +949,26 @@ module Google
951
949
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
952
950
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
953
951
  # @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
952
+ def get_organization_location_recommender_config(name, fields: nil, quota_user: nil, options: nil, &block)
953
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
958
954
  command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig::Representation
959
955
  command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig
960
956
  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
957
  command.query['fields'] = fields unless fields.nil?
964
958
  command.query['quotaUser'] = quota_user unless quota_user.nil?
965
959
  execute_or_queue_command(command, &block)
966
960
  end
967
961
 
968
- # Gets the requested Recommender Config. There is only one instance of the
969
- # config for each Recommender.
962
+ # Updates a Recommender Config. This will create a new revision of the config.
970
963
  # @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`
964
+ # Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/
965
+ # recommenders/[RECOMMENDER_ID]/config
966
+ # @param [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig] google_cloud_recommender_v1beta1_recommender_config_object
967
+ # @param [String] update_mask
968
+ # The list of fields to be updated.
969
+ # @param [Boolean] validate_only
970
+ # If true, validate the request and preview the change, but do not actually
971
+ # update it.
976
972
  # @param [String] fields
977
973
  # Selector specifying which fields to include in a partial response.
978
974
  # @param [String] quota_user
@@ -990,11 +986,15 @@ module Google
990
986
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
991
987
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
992
988
  # @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)
989
+ def update_organization_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)
990
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
991
+ command.request_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig::Representation
992
+ command.request_object = google_cloud_recommender_v1beta1_recommender_config_object
995
993
  command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig::Representation
996
994
  command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderConfig
997
995
  command.params['name'] = name unless name.nil?
996
+ command.query['updateMask'] = update_mask unless update_mask.nil?
997
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
998
998
  command.query['fields'] = fields unless fields.nil?
999
999
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1000
1000
  execute_or_queue_command(command, &block)
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.18.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-10 00:00:00.000000000 Z
11
+ date: 2022-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.4'
29
+ version: '0.5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-recommender_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1beta1/v0.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1beta1/v0.21.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.3.4
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Recommender API V1beta1