google-apis-recommender_v1beta1 0.36.0 → 0.37.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: 9c0bbd4602c05c187b78253588ffaf85f0dc4266b7470714f981a4a82cbfd818
4
- data.tar.gz: ebc1e873c0c5dc77ba606b45135d63ae92fc1fd59a2d0768ef434aca432dd692
3
+ metadata.gz: 792811ff6ae9de7aeba8f92dfcb142c493714cda2baf361a12bb4eb73a0515f3
4
+ data.tar.gz: abd17f62ead60532eb5a41367ea00b78d2de36738d9fa40b1898d704e112d4ce
5
5
  SHA512:
6
- metadata.gz: a9daa4b22e281c1d0896d2ec86b4675717bfa07fa8cb78e5c9b0a309bf7deb06ab21d53b0d6441e8491bd943c54828127c41e93d07dd245c1e630182a836e1e8
7
- data.tar.gz: b700c77de40c9c15dd11ff3eee00c5088f6e287a8e5ee62264bd264b4d8eed920e423120429a7479a94ea4a4b0f20b18460cb2f2583a50695ac860bfdda36bc2
6
+ metadata.gz: 181e2018781f0a10055d0235300b2129c58a2b737710395ba9870447f877ac472a8e80312976f5797712db52c303340999e0c71cb9c8d9f1958cb2095fa075a9
7
+ data.tar.gz: 053eb213c85cc313d3c05ea110ac46a7a16c5bb7c4feececf06483ec1447f1fff8a31d225fab7ea7c5ee66d43cff5b8dcc918622fdeaf046915d1896153e32b0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-recommender_v1beta1
2
2
 
3
+ ### v0.37.0 (2024-01-23)
4
+
5
+ * Regenerated from discovery document revision 20240107
6
+ * Regenerated using generator version 0.13.0
7
+
3
8
  ### v0.36.0 (2023-12-10)
4
9
 
5
10
  * Regenerated from discovery document revision 20231203
@@ -22,6 +22,78 @@ module Google
22
22
  module Apis
23
23
  module RecommenderV1beta1
24
24
 
25
+ # The response message for Locations.ListLocations.
26
+ class GoogleCloudLocationListLocationsResponse
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # A list of locations that matches the specified filter in the request.
30
+ # Corresponds to the JSON property `locations`
31
+ # @return [Array<Google::Apis::RecommenderV1beta1::GoogleCloudLocationLocation>]
32
+ attr_accessor :locations
33
+
34
+ # The standard List next-page token.
35
+ # Corresponds to the JSON property `nextPageToken`
36
+ # @return [String]
37
+ attr_accessor :next_page_token
38
+
39
+ def initialize(**args)
40
+ update!(**args)
41
+ end
42
+
43
+ # Update properties of this object
44
+ def update!(**args)
45
+ @locations = args[:locations] if args.key?(:locations)
46
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
47
+ end
48
+ end
49
+
50
+ # A resource that represents a Google Cloud location.
51
+ class GoogleCloudLocationLocation
52
+ include Google::Apis::Core::Hashable
53
+
54
+ # The friendly name for this location, typically a nearby city name. For example,
55
+ # "Tokyo".
56
+ # Corresponds to the JSON property `displayName`
57
+ # @return [String]
58
+ attr_accessor :display_name
59
+
60
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
61
+ # region": "us-east1"`
62
+ # Corresponds to the JSON property `labels`
63
+ # @return [Hash<String,String>]
64
+ attr_accessor :labels
65
+
66
+ # The canonical id for this location. For example: `"us-east1"`.
67
+ # Corresponds to the JSON property `locationId`
68
+ # @return [String]
69
+ attr_accessor :location_id
70
+
71
+ # Service-specific metadata. For example the available capacity at the given
72
+ # location.
73
+ # Corresponds to the JSON property `metadata`
74
+ # @return [Hash<String,Object>]
75
+ attr_accessor :metadata
76
+
77
+ # Resource name for the location, which may vary between implementations. For
78
+ # example: `"projects/example-project/locations/us-east1"`
79
+ # Corresponds to the JSON property `name`
80
+ # @return [String]
81
+ attr_accessor :name
82
+
83
+ def initialize(**args)
84
+ update!(**args)
85
+ end
86
+
87
+ # Update properties of this object
88
+ def update!(**args)
89
+ @display_name = args[:display_name] if args.key?(:display_name)
90
+ @labels = args[:labels] if args.key?(:labels)
91
+ @location_id = args[:location_id] if args.key?(:location_id)
92
+ @metadata = args[:metadata] if args.key?(:metadata)
93
+ @name = args[:name] if args.key?(:name)
94
+ end
95
+ end
96
+
25
97
  # Contains metadata about how much money a recommendation can save or incur.
26
98
  class GoogleCloudRecommenderV1beta1CostProjection
27
99
  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.36.0"
19
+ GEM_VERSION = "0.37.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231203"
25
+ REVISION = "20240107"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,18 @@ module Google
22
22
  module Apis
23
23
  module RecommenderV1beta1
24
24
 
25
+ class GoogleCloudLocationListLocationsResponse
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class GoogleCloudLocationLocation
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
25
37
  class GoogleCloudRecommenderV1beta1CostProjection
26
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
39
 
@@ -208,6 +220,26 @@ module Google
208
220
  include Google::Apis::Core::JsonObjectSupport
209
221
  end
210
222
 
223
+ class GoogleCloudLocationListLocationsResponse
224
+ # @private
225
+ class Representation < Google::Apis::Core::JsonRepresentation
226
+ collection :locations, as: 'locations', class: Google::Apis::RecommenderV1beta1::GoogleCloudLocationLocation, decorator: Google::Apis::RecommenderV1beta1::GoogleCloudLocationLocation::Representation
227
+
228
+ property :next_page_token, as: 'nextPageToken'
229
+ end
230
+ end
231
+
232
+ class GoogleCloudLocationLocation
233
+ # @private
234
+ class Representation < Google::Apis::Core::JsonRepresentation
235
+ property :display_name, as: 'displayName'
236
+ hash :labels, as: 'labels'
237
+ property :location_id, as: 'locationId'
238
+ hash :metadata, as: 'metadata'
239
+ property :name, as: 'name'
240
+ end
241
+ end
242
+
211
243
  class GoogleCloudRecommenderV1beta1CostProjection
212
244
  # @private
213
245
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -32,6 +32,8 @@ module Google
32
32
  #
33
33
  # @see https://cloud.google.com/recommender/docs/
34
34
  class RecommenderService < Google::Apis::Core::BaseService
35
+ DEFAULT_ENDPOINT_TEMPLATE = "https://recommender.$UNIVERSE_DOMAIN$/"
36
+
35
37
  # @return [String]
36
38
  # API key. Your API key identifies your project and provides you with API access,
37
39
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -43,12 +45,55 @@ module Google
43
45
  attr_accessor :quota_user
44
46
 
45
47
  def initialize
46
- super('https://recommender.googleapis.com/', '',
48
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
47
49
  client_name: 'google-apis-recommender_v1beta1',
48
50
  client_version: Google::Apis::RecommenderV1beta1::GEM_VERSION)
49
51
  @batch_path = 'batch'
50
52
  end
51
53
 
54
+ # Lists locations with recommendations or insights.
55
+ # @param [String] name
56
+ # The resource that owns the locations collection, if applicable.
57
+ # @param [String] filter
58
+ # A filter to narrow down results to a preferred subset. The filtering language
59
+ # accepts strings like `"displayName=tokyo"`, and is documented in more detail
60
+ # in [AIP-160](https://google.aip.dev/160).
61
+ # @param [Fixnum] page_size
62
+ # The maximum number of results to return. If not set, the service selects a
63
+ # default.
64
+ # @param [String] page_token
65
+ # A page token received from the `next_page_token` field in the response. Send
66
+ # that page token to receive the subsequent page.
67
+ # @param [String] fields
68
+ # Selector specifying which fields to include in a partial response.
69
+ # @param [String] quota_user
70
+ # Available to use for quota purposes for server-side applications. Can be any
71
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
72
+ # @param [Google::Apis::RequestOptions] options
73
+ # Request-specific options
74
+ #
75
+ # @yield [result, err] Result & error if block supplied
76
+ # @yieldparam result [Google::Apis::RecommenderV1beta1::GoogleCloudLocationListLocationsResponse] parsed result object
77
+ # @yieldparam err [StandardError] error object if request failed
78
+ #
79
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudLocationListLocationsResponse]
80
+ #
81
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
82
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
83
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
84
+ def list_billing_account_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
85
+ command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
86
+ command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudLocationListLocationsResponse::Representation
87
+ command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudLocationListLocationsResponse
88
+ command.params['name'] = name unless name.nil?
89
+ command.query['filter'] = filter unless filter.nil?
90
+ command.query['pageSize'] = page_size unless page_size.nil?
91
+ command.query['pageToken'] = page_token unless page_token.nil?
92
+ command.query['fields'] = fields unless fields.nil?
93
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
94
+ execute_or_queue_command(command, &block)
95
+ end
96
+
52
97
  # Gets the requested InsightTypeConfig. There is only one instance of the config
53
98
  # for each InsightType.
54
99
  # @param [String] name
@@ -580,6 +625,49 @@ module Google
580
625
  execute_or_queue_command(command, &block)
581
626
  end
582
627
 
628
+ # Lists locations with recommendations or insights.
629
+ # @param [String] name
630
+ # The resource that owns the locations collection, if applicable.
631
+ # @param [String] filter
632
+ # A filter to narrow down results to a preferred subset. The filtering language
633
+ # accepts strings like `"displayName=tokyo"`, and is documented in more detail
634
+ # in [AIP-160](https://google.aip.dev/160).
635
+ # @param [Fixnum] page_size
636
+ # The maximum number of results to return. If not set, the service selects a
637
+ # default.
638
+ # @param [String] page_token
639
+ # A page token received from the `next_page_token` field in the response. Send
640
+ # that page token to receive the subsequent page.
641
+ # @param [String] fields
642
+ # Selector specifying which fields to include in a partial response.
643
+ # @param [String] quota_user
644
+ # Available to use for quota purposes for server-side applications. Can be any
645
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
646
+ # @param [Google::Apis::RequestOptions] options
647
+ # Request-specific options
648
+ #
649
+ # @yield [result, err] Result & error if block supplied
650
+ # @yieldparam result [Google::Apis::RecommenderV1beta1::GoogleCloudLocationListLocationsResponse] parsed result object
651
+ # @yieldparam err [StandardError] error object if request failed
652
+ #
653
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudLocationListLocationsResponse]
654
+ #
655
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
656
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
657
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
658
+ def list_folder_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
659
+ command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
660
+ command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudLocationListLocationsResponse::Representation
661
+ command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudLocationListLocationsResponse
662
+ command.params['name'] = name unless name.nil?
663
+ command.query['filter'] = filter unless filter.nil?
664
+ command.query['pageSize'] = page_size unless page_size.nil?
665
+ command.query['pageToken'] = page_token unless page_token.nil?
666
+ command.query['fields'] = fields unless fields.nil?
667
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
668
+ execute_or_queue_command(command, &block)
669
+ end
670
+
583
671
  # Gets the requested insight. Requires the recommender.*.get IAM permission for
584
672
  # the specified insight type.
585
673
  # @param [String] name
@@ -991,6 +1079,49 @@ module Google
991
1079
  execute_or_queue_command(command, &block)
992
1080
  end
993
1081
 
1082
+ # Lists locations with recommendations or insights.
1083
+ # @param [String] name
1084
+ # The resource that owns the locations collection, if applicable.
1085
+ # @param [String] filter
1086
+ # A filter to narrow down results to a preferred subset. The filtering language
1087
+ # accepts strings like `"displayName=tokyo"`, and is documented in more detail
1088
+ # in [AIP-160](https://google.aip.dev/160).
1089
+ # @param [Fixnum] page_size
1090
+ # The maximum number of results to return. If not set, the service selects a
1091
+ # default.
1092
+ # @param [String] page_token
1093
+ # A page token received from the `next_page_token` field in the response. Send
1094
+ # that page token to receive the subsequent page.
1095
+ # @param [String] fields
1096
+ # Selector specifying which fields to include in a partial response.
1097
+ # @param [String] quota_user
1098
+ # Available to use for quota purposes for server-side applications. Can be any
1099
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1100
+ # @param [Google::Apis::RequestOptions] options
1101
+ # Request-specific options
1102
+ #
1103
+ # @yield [result, err] Result & error if block supplied
1104
+ # @yieldparam result [Google::Apis::RecommenderV1beta1::GoogleCloudLocationListLocationsResponse] parsed result object
1105
+ # @yieldparam err [StandardError] error object if request failed
1106
+ #
1107
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudLocationListLocationsResponse]
1108
+ #
1109
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1110
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1111
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1112
+ def list_organization_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1113
+ command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
1114
+ command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudLocationListLocationsResponse::Representation
1115
+ command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudLocationListLocationsResponse
1116
+ command.params['name'] = name unless name.nil?
1117
+ command.query['filter'] = filter unless filter.nil?
1118
+ command.query['pageSize'] = page_size unless page_size.nil?
1119
+ command.query['pageToken'] = page_token unless page_token.nil?
1120
+ command.query['fields'] = fields unless fields.nil?
1121
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1122
+ execute_or_queue_command(command, &block)
1123
+ end
1124
+
994
1125
  # Gets the requested InsightTypeConfig. There is only one instance of the config
995
1126
  # for each InsightType.
996
1127
  # @param [String] name
@@ -1522,6 +1653,49 @@ module Google
1522
1653
  execute_or_queue_command(command, &block)
1523
1654
  end
1524
1655
 
1656
+ # Lists locations with recommendations or insights.
1657
+ # @param [String] name
1658
+ # The resource that owns the locations collection, if applicable.
1659
+ # @param [String] filter
1660
+ # A filter to narrow down results to a preferred subset. The filtering language
1661
+ # accepts strings like `"displayName=tokyo"`, and is documented in more detail
1662
+ # in [AIP-160](https://google.aip.dev/160).
1663
+ # @param [Fixnum] page_size
1664
+ # The maximum number of results to return. If not set, the service selects a
1665
+ # default.
1666
+ # @param [String] page_token
1667
+ # A page token received from the `next_page_token` field in the response. Send
1668
+ # that page token to receive the subsequent page.
1669
+ # @param [String] fields
1670
+ # Selector specifying which fields to include in a partial response.
1671
+ # @param [String] quota_user
1672
+ # Available to use for quota purposes for server-side applications. Can be any
1673
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1674
+ # @param [Google::Apis::RequestOptions] options
1675
+ # Request-specific options
1676
+ #
1677
+ # @yield [result, err] Result & error if block supplied
1678
+ # @yieldparam result [Google::Apis::RecommenderV1beta1::GoogleCloudLocationListLocationsResponse] parsed result object
1679
+ # @yieldparam err [StandardError] error object if request failed
1680
+ #
1681
+ # @return [Google::Apis::RecommenderV1beta1::GoogleCloudLocationListLocationsResponse]
1682
+ #
1683
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1684
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1685
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1686
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1687
+ command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
1688
+ command.response_representation = Google::Apis::RecommenderV1beta1::GoogleCloudLocationListLocationsResponse::Representation
1689
+ command.response_class = Google::Apis::RecommenderV1beta1::GoogleCloudLocationListLocationsResponse
1690
+ command.params['name'] = name unless name.nil?
1691
+ command.query['filter'] = filter unless filter.nil?
1692
+ command.query['pageSize'] = page_size unless page_size.nil?
1693
+ command.query['pageToken'] = page_token unless page_token.nil?
1694
+ command.query['fields'] = fields unless fields.nil?
1695
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1696
+ execute_or_queue_command(command, &block)
1697
+ end
1698
+
1525
1699
  # Gets the requested InsightTypeConfig. There is only one instance of the config
1526
1700
  # for each InsightType.
1527
1701
  # @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.36.0
4
+ version: 0.37.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: 2023-12-10 00:00:00.000000000 Z
11
+ date: 2024-01-23 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.11.0
19
+ version: 0.12.0
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.11.0
29
+ version: 0.12.0
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.36.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recommender_v1beta1/v0.37.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.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Recommender API V1beta1