google-apis-recommender_v1beta1 0.17.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 333f0696d0cff3898e7169f34a93512819064fe05dfe4311c5d5bcff789fca9f
4
- data.tar.gz: 1d680d5ac34e931a96a6b6a3b2e846bd6d53be28f17ee6b170f28e02e156f414
3
+ metadata.gz: 2b526d3dd8c9f1d56e2d1a3a1f146dc5dcaff0c0ed84961f5d4abf1c932d8985
4
+ data.tar.gz: d69a7bb962f4983ad34b3315b8e6b6f954c330d2483cb3399217404fedd8691c
5
5
  SHA512:
6
- metadata.gz: 2d5e618c087eabe32e2f1f31f4452589865d7f4b54ea2968d9970322dd08df28839bed90db78223b3696ee2211056a726a1aa31ddf59ce8891d9bba4821af97d
7
- data.tar.gz: 30547665c6fc46c34e6fddfba507a7e615714fd11c1f5ae4c0dad658c7a1246e7722b0f57273ce12a98d3c52b9ac26ac4219bf2eccd9ec77c88adb458c69e561
6
+ metadata.gz: 871c66938089cd2aea282aa1c040a70597f5054ac2f1d9b266fc2fbcb383d11ac879346fc8af756cf6ce27e3398cc7c4910011260dee34339b9567e40c165233
7
+ data.tar.gz: 1066ae2ae7ed2f8048e2cc7a068c896faae6a6a4ee09a9fdd2c6e8cc70e766615fd27b3aa83108bc25f387595a06c7d12874fa530e808fbf326c01b22931497e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-recommender_v1beta1
2
2
 
3
+ ### v0.20.0 (2022-03-09)
4
+
5
+ * Regenerated from discovery document revision 20220307
6
+
7
+ ### v0.19.0 (2022-02-10)
8
+
9
+ * Regenerated from discovery document revision 20220207
10
+ * Regenerated using generator version 0.4.1
11
+
12
+ ### v0.18.0 (2021-12-14)
13
+
14
+ * Unspecified changes
15
+
3
16
  ### v0.17.0 (2021-12-09)
4
17
 
5
18
  * Regenerated from discovery document revision 20211205
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/recommender_v1beta1"
51
51
  client = Google::Apis::RecommenderV1beta1::RecommenderService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -66,6 +66,12 @@ module Google
66
66
  # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SecurityProjection]
67
67
  attr_accessor :security_projection
68
68
 
69
+ # Contains metadata about how much sustainability a recommendation can save or
70
+ # incur.
71
+ # Corresponds to the JSON property `sustainabilityProjection`
72
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1SustainabilityProjection]
73
+ attr_accessor :sustainability_projection
74
+
69
75
  def initialize(**args)
70
76
  update!(**args)
71
77
  end
@@ -75,6 +81,7 @@ module Google
75
81
  @category = args[:category] if args.key?(:category)
76
82
  @cost_projection = args[:cost_projection] if args.key?(:cost_projection)
77
83
  @security_projection = args[:security_projection] if args.key?(:security_projection)
84
+ @sustainability_projection = args[:sustainability_projection] if args.key?(:sustainability_projection)
78
85
  end
79
86
  end
80
87
 
@@ -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.17.0"
19
+ GEM_VERSION = "0.20.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.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.17.0
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-13 00:00:00.000000000 Z
11
+ date: 2022-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-recommender_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1beta1/v0.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1beta1/v0.20.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-recommender_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Recommender API V1beta1