google-api-client 0.40.0 → 0.40.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +53 -0
  3. data/generated/google/apis/admob_v1.rb +1 -1
  4. data/generated/google/apis/admob_v1/classes.rb +5 -6
  5. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  6. data/generated/google/apis/androidenterprise_v1/classes.rb +547 -724
  7. data/generated/google/apis/androidenterprise_v1/representations.rb +0 -54
  8. data/generated/google/apis/androidenterprise_v1/service.rb +540 -795
  9. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  10. data/generated/google/apis/androidpublisher_v3/classes.rb +21 -2
  11. data/generated/google/apis/androidpublisher_v3/representations.rb +2 -0
  12. data/generated/google/apis/appsmarket_v2.rb +3 -3
  13. data/generated/google/apis/appsmarket_v2/classes.rb +160 -159
  14. data/generated/google/apis/appsmarket_v2/representations.rb +78 -78
  15. data/generated/google/apis/appsmarket_v2/service.rb +24 -39
  16. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  17. data/generated/google/apis/cloudbuild_v1/classes.rb +14 -2
  18. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  19. data/generated/google/apis/cloudbuild_v1/service.rb +42 -0
  20. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  21. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +12 -0
  22. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
  23. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +12 -0
  25. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
  26. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  27. data/generated/google/apis/cloudsearch_v1/service.rb +1 -1
  28. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  29. data/generated/google/apis/cloudtasks_v2/classes.rb +6 -4
  30. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  31. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +9 -0
  32. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
  33. data/generated/google/apis/compute_alpha.rb +1 -1
  34. data/generated/google/apis/compute_alpha/classes.rb +63 -99
  35. data/generated/google/apis/compute_alpha/representations.rb +14 -32
  36. data/generated/google/apis/compute_alpha/service.rb +37 -0
  37. data/generated/google/apis/compute_beta.rb +1 -1
  38. data/generated/google/apis/compute_beta/classes.rb +51 -26
  39. data/generated/google/apis/compute_beta/representations.rb +3 -0
  40. data/generated/google/apis/compute_v1.rb +1 -1
  41. data/generated/google/apis/compute_v1/classes.rb +5 -5
  42. data/generated/google/apis/content_v2.rb +1 -1
  43. data/generated/google/apis/content_v2/classes.rb +34 -0
  44. data/generated/google/apis/content_v2/representations.rb +16 -0
  45. data/generated/google/apis/content_v2/service.rb +5 -1
  46. data/generated/google/apis/content_v2_1.rb +1 -1
  47. data/generated/google/apis/content_v2_1/classes.rb +357 -5
  48. data/generated/google/apis/content_v2_1/representations.rb +135 -0
  49. data/generated/google/apis/content_v2_1/service.rb +85 -1
  50. data/generated/google/apis/dataproc_v1.rb +1 -1
  51. data/generated/google/apis/dataproc_v1/classes.rb +22 -22
  52. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  53. data/generated/google/apis/dataproc_v1beta2/classes.rb +23 -23
  54. data/generated/google/apis/dialogflow_v2.rb +1 -1
  55. data/generated/google/apis/dialogflow_v2/classes.rb +9 -29
  56. data/generated/google/apis/dialogflow_v2/representations.rb +0 -4
  57. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  58. data/generated/google/apis/dialogflow_v2beta1/classes.rb +0 -28
  59. data/generated/google/apis/dialogflow_v2beta1/representations.rb +0 -4
  60. data/generated/google/apis/displayvideo_v1.rb +1 -1
  61. data/generated/google/apis/displayvideo_v1/classes.rb +463 -0
  62. data/generated/google/apis/displayvideo_v1/representations.rb +238 -0
  63. data/generated/google/apis/displayvideo_v1/service.rb +1718 -376
  64. data/generated/google/apis/file_v1.rb +1 -1
  65. data/generated/google/apis/file_v1/classes.rb +0 -1156
  66. data/generated/google/apis/file_v1/representations.rb +0 -381
  67. data/generated/google/apis/file_v1beta1.rb +1 -1
  68. data/generated/google/apis/file_v1beta1/classes.rb +67 -1156
  69. data/generated/google/apis/file_v1beta1/representations.rb +14 -376
  70. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  71. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +30 -25
  72. data/generated/google/apis/fitness_v1.rb +1 -1
  73. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  74. data/generated/google/apis/games_v1.rb +1 -1
  75. data/generated/google/apis/healthcare_v1.rb +1 -1
  76. data/generated/google/apis/healthcare_v1/classes.rb +3 -3
  77. data/generated/google/apis/healthcare_v1/service.rb +3 -3
  78. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  79. data/generated/google/apis/healthcare_v1beta1/classes.rb +3 -3
  80. data/generated/google/apis/healthcare_v1beta1/service.rb +3 -3
  81. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  82. data/generated/google/apis/memcache_v1beta2/classes.rb +36 -5
  83. data/generated/google/apis/memcache_v1beta2/representations.rb +15 -0
  84. data/generated/google/apis/people_v1.rb +1 -1
  85. data/generated/google/apis/people_v1/classes.rb +100 -0
  86. data/generated/google/apis/people_v1/representations.rb +31 -0
  87. data/generated/google/apis/people_v1/service.rb +95 -2
  88. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  89. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +30 -0
  90. data/generated/google/apis/pubsub_v1.rb +1 -1
  91. data/generated/google/apis/pubsub_v1/classes.rb +15 -1
  92. data/generated/google/apis/pubsub_v1/representations.rb +12 -0
  93. data/generated/google/apis/pubsub_v1/service.rb +35 -1
  94. data/generated/google/apis/{dialogflow_v3alpha1.rb → recommender_v1.rb} +9 -13
  95. data/generated/google/apis/recommender_v1/classes.rb +505 -0
  96. data/generated/google/apis/recommender_v1/representations.rb +232 -0
  97. data/generated/google/apis/recommender_v1/service.rb +266 -0
  98. data/generated/google/apis/run_v1.rb +1 -1
  99. data/generated/google/apis/run_v1/classes.rb +9 -0
  100. data/generated/google/apis/run_v1/representations.rb +1 -0
  101. data/generated/google/apis/run_v1alpha1.rb +1 -1
  102. data/generated/google/apis/run_v1alpha1/classes.rb +9 -0
  103. data/generated/google/apis/run_v1alpha1/representations.rb +1 -0
  104. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  105. data/generated/google/apis/sasportal_v1alpha1/service.rb +30 -0
  106. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  107. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +97 -0
  108. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +32 -0
  109. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  110. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +97 -0
  111. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +32 -0
  112. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  113. data/generated/google/apis/servicecontrol_v1/classes.rb +3 -3
  114. data/generated/google/apis/serviceusage_v1.rb +1 -1
  115. data/generated/google/apis/serviceusage_v1/classes.rb +89 -0
  116. data/generated/google/apis/serviceusage_v1/representations.rb +32 -0
  117. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  118. data/generated/google/apis/serviceusage_v1beta1/classes.rb +89 -0
  119. data/generated/google/apis/serviceusage_v1beta1/representations.rb +32 -0
  120. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  121. data/generated/google/apis/sourcerepo_v1/classes.rb +23 -10
  122. data/generated/google/apis/sourcerepo_v1/service.rb +3 -0
  123. data/generated/google/apis/spanner_v1.rb +1 -1
  124. data/generated/google/apis/spanner_v1/classes.rb +1 -2
  125. data/generated/google/apis/spanner_v1/service.rb +8 -8
  126. data/generated/google/apis/sql_v1beta4.rb +1 -1
  127. data/generated/google/apis/sql_v1beta4/classes.rb +7 -0
  128. data/generated/google/apis/sql_v1beta4/representations.rb +1 -0
  129. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  130. data/generated/google/apis/storagetransfer_v1/classes.rb +2 -1
  131. data/generated/google/apis/testing_v1.rb +1 -1
  132. data/generated/google/apis/testing_v1/classes.rb +2 -1
  133. data/generated/google/apis/videointelligence_v1.rb +1 -1
  134. data/generated/google/apis/videointelligence_v1/classes.rb +1 -1
  135. data/generated/google/apis/videointelligence_v1/service.rb +32 -0
  136. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  137. data/generated/google/apis/videointelligence_v1beta2/classes.rb +1 -1
  138. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  139. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1 -1
  140. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  141. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1 -1
  142. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  143. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1 -1
  144. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  145. data/lib/google/apis/core/api_command.rb +12 -7
  146. data/lib/google/apis/options.rb +5 -1
  147. data/lib/google/apis/version.rb +1 -1
  148. metadata +7 -7
  149. data/generated/google/apis/dialogflow_v3alpha1/classes.rb +0 -5579
  150. data/generated/google/apis/dialogflow_v3alpha1/representations.rb +0 -2295
  151. data/generated/google/apis/dialogflow_v3alpha1/service.rb +0 -296
@@ -0,0 +1,232 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module RecommenderV1
24
+
25
+ class GoogleCloudRecommenderV1CostProjection
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class GoogleCloudRecommenderV1Impact
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class GoogleCloudRecommenderV1ListRecommendationsResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class GoogleCloudRecommenderV1MarkRecommendationClaimedRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class GoogleCloudRecommenderV1MarkRecommendationFailedRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class GoogleCloudRecommenderV1MarkRecommendationSucceededRequest
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class GoogleCloudRecommenderV1Operation
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GoogleCloudRecommenderV1OperationGroup
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GoogleCloudRecommenderV1Recommendation
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GoogleCloudRecommenderV1RecommendationContent
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GoogleCloudRecommenderV1RecommendationStateInfo
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GoogleCloudRecommenderV1ValueMatcher
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class GoogleTypeMoney
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class GoogleCloudRecommenderV1CostProjection
104
+ # @private
105
+ class Representation < Google::Apis::Core::JsonRepresentation
106
+ property :cost, as: 'cost', class: Google::Apis::RecommenderV1::GoogleTypeMoney, decorator: Google::Apis::RecommenderV1::GoogleTypeMoney::Representation
107
+
108
+ property :duration, as: 'duration'
109
+ end
110
+ end
111
+
112
+ class GoogleCloudRecommenderV1Impact
113
+ # @private
114
+ class Representation < Google::Apis::Core::JsonRepresentation
115
+ property :category, as: 'category'
116
+ property :cost_projection, as: 'costProjection', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1CostProjection, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1CostProjection::Representation
117
+
118
+ end
119
+ end
120
+
121
+ class GoogleCloudRecommenderV1ListRecommendationsResponse
122
+ # @private
123
+ class Representation < Google::Apis::Core::JsonRepresentation
124
+ property :next_page_token, as: 'nextPageToken'
125
+ collection :recommendations, as: 'recommendations', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation::Representation
126
+
127
+ end
128
+ end
129
+
130
+ class GoogleCloudRecommenderV1MarkRecommendationClaimedRequest
131
+ # @private
132
+ class Representation < Google::Apis::Core::JsonRepresentation
133
+ property :etag, as: 'etag'
134
+ hash :state_metadata, as: 'stateMetadata'
135
+ end
136
+ end
137
+
138
+ class GoogleCloudRecommenderV1MarkRecommendationFailedRequest
139
+ # @private
140
+ class Representation < Google::Apis::Core::JsonRepresentation
141
+ property :etag, as: 'etag'
142
+ hash :state_metadata, as: 'stateMetadata'
143
+ end
144
+ end
145
+
146
+ class GoogleCloudRecommenderV1MarkRecommendationSucceededRequest
147
+ # @private
148
+ class Representation < Google::Apis::Core::JsonRepresentation
149
+ property :etag, as: 'etag'
150
+ hash :state_metadata, as: 'stateMetadata'
151
+ end
152
+ end
153
+
154
+ class GoogleCloudRecommenderV1Operation
155
+ # @private
156
+ class Representation < Google::Apis::Core::JsonRepresentation
157
+ property :action, as: 'action'
158
+ property :path, as: 'path'
159
+ hash :path_filters, as: 'pathFilters'
160
+ hash :path_value_matchers, as: 'pathValueMatchers', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ValueMatcher, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ValueMatcher::Representation
161
+
162
+ property :resource, as: 'resource'
163
+ property :resource_type, as: 'resourceType'
164
+ property :source_path, as: 'sourcePath'
165
+ property :source_resource, as: 'sourceResource'
166
+ property :value, as: 'value'
167
+ property :value_matcher, as: 'valueMatcher', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ValueMatcher, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ValueMatcher::Representation
168
+
169
+ end
170
+ end
171
+
172
+ class GoogleCloudRecommenderV1OperationGroup
173
+ # @private
174
+ class Representation < Google::Apis::Core::JsonRepresentation
175
+ collection :operations, as: 'operations', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Operation, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Operation::Representation
176
+
177
+ end
178
+ end
179
+
180
+ class GoogleCloudRecommenderV1Recommendation
181
+ # @private
182
+ class Representation < Google::Apis::Core::JsonRepresentation
183
+ collection :additional_impact, as: 'additionalImpact', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Impact, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Impact::Representation
184
+
185
+ property :content, as: 'content', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationContent, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationContent::Representation
186
+
187
+ property :description, as: 'description'
188
+ property :etag, as: 'etag'
189
+ property :last_refresh_time, as: 'lastRefreshTime'
190
+ property :name, as: 'name'
191
+ property :primary_impact, as: 'primaryImpact', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Impact, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Impact::Representation
192
+
193
+ property :recommender_subtype, as: 'recommenderSubtype'
194
+ property :state_info, as: 'stateInfo', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationStateInfo, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationStateInfo::Representation
195
+
196
+ end
197
+ end
198
+
199
+ class GoogleCloudRecommenderV1RecommendationContent
200
+ # @private
201
+ class Representation < Google::Apis::Core::JsonRepresentation
202
+ collection :operation_groups, as: 'operationGroups', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1OperationGroup, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1OperationGroup::Representation
203
+
204
+ end
205
+ end
206
+
207
+ class GoogleCloudRecommenderV1RecommendationStateInfo
208
+ # @private
209
+ class Representation < Google::Apis::Core::JsonRepresentation
210
+ property :state, as: 'state'
211
+ hash :state_metadata, as: 'stateMetadata'
212
+ end
213
+ end
214
+
215
+ class GoogleCloudRecommenderV1ValueMatcher
216
+ # @private
217
+ class Representation < Google::Apis::Core::JsonRepresentation
218
+ property :matches_pattern, as: 'matchesPattern'
219
+ end
220
+ end
221
+
222
+ class GoogleTypeMoney
223
+ # @private
224
+ class Representation < Google::Apis::Core::JsonRepresentation
225
+ property :currency_code, as: 'currencyCode'
226
+ property :nanos, as: 'nanos'
227
+ property :units, :numeric_string => true, as: 'units'
228
+ end
229
+ end
230
+ end
231
+ end
232
+ end
@@ -0,0 +1,266 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module RecommenderV1
23
+ # Recommender API
24
+ #
25
+ #
26
+ #
27
+ # @example
28
+ # require 'google/apis/recommender_v1'
29
+ #
30
+ # Recommender = Google::Apis::RecommenderV1 # Alias the module
31
+ # service = Recommender::RecommenderService.new
32
+ #
33
+ # @see https://cloud.google.com/recommender/docs/
34
+ class RecommenderService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://recommender.googleapis.com/', '')
47
+ @batch_path = 'batch'
48
+ end
49
+
50
+ # Gets the requested recommendation. Requires the recommender.*.get
51
+ # IAM permission for the specified recommender.
52
+ # @param [String] name
53
+ # Required. Name of the recommendation.
54
+ # @param [String] fields
55
+ # Selector specifying which fields to include in a partial response.
56
+ # @param [String] quota_user
57
+ # Available to use for quota purposes for server-side applications. Can be any
58
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59
+ # @param [Google::Apis::RequestOptions] options
60
+ # Request-specific options
61
+ #
62
+ # @yield [result, err] Result & error if block supplied
63
+ # @yieldparam result [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation] parsed result object
64
+ # @yieldparam err [StandardError] error object if request failed
65
+ #
66
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation]
67
+ #
68
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
71
+ def get_project_location_recommender_recommendation(name, fields: nil, quota_user: nil, options: nil, &block)
72
+ command = make_simple_command(:get, 'v1/{+name}', options)
73
+ command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation::Representation
74
+ command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation
75
+ command.params['name'] = name unless name.nil?
76
+ command.query['fields'] = fields unless fields.nil?
77
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
78
+ execute_or_queue_command(command, &block)
79
+ end
80
+
81
+ # Lists recommendations for a Cloud project. Requires the recommender.*.list
82
+ # IAM permission for the specified recommender.
83
+ # @param [String] parent
84
+ # Required. The container resource on which to execute the request.
85
+ # Acceptable formats:
86
+ # 1.
87
+ # "projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]",
88
+ # LOCATION here refers to GCP Locations:
89
+ # https://cloud.google.com/about/locations/
90
+ # @param [String] filter
91
+ # Filter expression to restrict the recommendations returned. Supported
92
+ # filter fields: state_info.state
93
+ # Eg: `state_info.state:"DISMISSED" or state_info.state:"FAILED"
94
+ # @param [Fixnum] page_size
95
+ # Optional. The maximum number of results to return from this request. Non-
96
+ # positive
97
+ # values are ignored. If not specified, the server will determine the number
98
+ # of results to return.
99
+ # @param [String] page_token
100
+ # Optional. If present, retrieves the next batch of results from the preceding
101
+ # call to
102
+ # this method. `page_token` must be the value of `next_page_token` from the
103
+ # previous response. The values of other method parameters must be identical
104
+ # to those in the previous call.
105
+ # @param [String] fields
106
+ # Selector specifying which fields to include in a partial response.
107
+ # @param [String] quota_user
108
+ # Available to use for quota purposes for server-side applications. Can be any
109
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
110
+ # @param [Google::Apis::RequestOptions] options
111
+ # Request-specific options
112
+ #
113
+ # @yield [result, err] Result & error if block supplied
114
+ # @yieldparam result [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ListRecommendationsResponse] parsed result object
115
+ # @yieldparam err [StandardError] error object if request failed
116
+ #
117
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ListRecommendationsResponse]
118
+ #
119
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
120
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
121
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
122
+ def list_project_location_recommender_recommendations(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
123
+ command = make_simple_command(:get, 'v1/{+parent}/recommendations', options)
124
+ command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ListRecommendationsResponse::Representation
125
+ command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ListRecommendationsResponse
126
+ command.params['parent'] = parent unless parent.nil?
127
+ command.query['filter'] = filter unless filter.nil?
128
+ command.query['pageSize'] = page_size unless page_size.nil?
129
+ command.query['pageToken'] = page_token unless page_token.nil?
130
+ command.query['fields'] = fields unless fields.nil?
131
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
132
+ execute_or_queue_command(command, &block)
133
+ end
134
+
135
+ # Marks the Recommendation State as Claimed. Users can use this method to
136
+ # indicate to the Recommender API that they are starting to apply the
137
+ # recommendation themselves. This stops the recommendation content from being
138
+ # updated. Associated insights are frozen and placed in the ACCEPTED state.
139
+ # MarkRecommendationClaimed can be applied to recommendations in CLAIMED,
140
+ # SUCCEEDED, FAILED, or ACTIVE state.
141
+ # Requires the recommender.*.update IAM permission for the specified
142
+ # recommender.
143
+ # @param [String] name
144
+ # Required. Name of the recommendation.
145
+ # @param [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationClaimedRequest] google_cloud_recommender_v1_mark_recommendation_claimed_request_object
146
+ # @param [String] fields
147
+ # Selector specifying which fields to include in a partial response.
148
+ # @param [String] quota_user
149
+ # Available to use for quota purposes for server-side applications. Can be any
150
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
151
+ # @param [Google::Apis::RequestOptions] options
152
+ # Request-specific options
153
+ #
154
+ # @yield [result, err] Result & error if block supplied
155
+ # @yieldparam result [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation] parsed result object
156
+ # @yieldparam err [StandardError] error object if request failed
157
+ #
158
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation]
159
+ #
160
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
161
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
162
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
163
+ def mark_project_location_recommender_recommendation_claimed(name, google_cloud_recommender_v1_mark_recommendation_claimed_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
164
+ command = make_simple_command(:post, 'v1/{+name}:markClaimed', options)
165
+ command.request_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationClaimedRequest::Representation
166
+ command.request_object = google_cloud_recommender_v1_mark_recommendation_claimed_request_object
167
+ command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation::Representation
168
+ command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation
169
+ command.params['name'] = name unless name.nil?
170
+ command.query['fields'] = fields unless fields.nil?
171
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
172
+ execute_or_queue_command(command, &block)
173
+ end
174
+
175
+ # Marks the Recommendation State as Failed. Users can use this method to
176
+ # indicate to the Recommender API that they have applied the recommendation
177
+ # themselves, and the operation failed. This stops the recommendation content
178
+ # from being updated. Associated insights are frozen and placed in the
179
+ # ACCEPTED state.
180
+ # MarkRecommendationFailed can be applied to recommendations in ACTIVE,
181
+ # CLAIMED, SUCCEEDED, or FAILED state.
182
+ # Requires the recommender.*.update IAM permission for the specified
183
+ # recommender.
184
+ # @param [String] name
185
+ # Required. Name of the recommendation.
186
+ # @param [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationFailedRequest] google_cloud_recommender_v1_mark_recommendation_failed_request_object
187
+ # @param [String] fields
188
+ # Selector specifying which fields to include in a partial response.
189
+ # @param [String] quota_user
190
+ # Available to use for quota purposes for server-side applications. Can be any
191
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
192
+ # @param [Google::Apis::RequestOptions] options
193
+ # Request-specific options
194
+ #
195
+ # @yield [result, err] Result & error if block supplied
196
+ # @yieldparam result [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation] parsed result object
197
+ # @yieldparam err [StandardError] error object if request failed
198
+ #
199
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation]
200
+ #
201
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
202
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
203
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
204
+ def mark_project_location_recommender_recommendation_failed(name, google_cloud_recommender_v1_mark_recommendation_failed_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
205
+ command = make_simple_command(:post, 'v1/{+name}:markFailed', options)
206
+ command.request_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationFailedRequest::Representation
207
+ command.request_object = google_cloud_recommender_v1_mark_recommendation_failed_request_object
208
+ command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation::Representation
209
+ command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation
210
+ command.params['name'] = name unless name.nil?
211
+ command.query['fields'] = fields unless fields.nil?
212
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
213
+ execute_or_queue_command(command, &block)
214
+ end
215
+
216
+ # Marks the Recommendation State as Succeeded. Users can use this method to
217
+ # indicate to the Recommender API that they have applied the recommendation
218
+ # themselves, and the operation was successful. This stops the recommendation
219
+ # content from being updated. Associated insights are frozen and placed in
220
+ # the ACCEPTED state.
221
+ # MarkRecommendationSucceeded can be applied to recommendations in ACTIVE,
222
+ # CLAIMED, SUCCEEDED, or FAILED state.
223
+ # Requires the recommender.*.update IAM permission for the specified
224
+ # recommender.
225
+ # @param [String] name
226
+ # Required. Name of the recommendation.
227
+ # @param [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationSucceededRequest] google_cloud_recommender_v1_mark_recommendation_succeeded_request_object
228
+ # @param [String] fields
229
+ # Selector specifying which fields to include in a partial response.
230
+ # @param [String] quota_user
231
+ # Available to use for quota purposes for server-side applications. Can be any
232
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
233
+ # @param [Google::Apis::RequestOptions] options
234
+ # Request-specific options
235
+ #
236
+ # @yield [result, err] Result & error if block supplied
237
+ # @yieldparam result [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation] parsed result object
238
+ # @yieldparam err [StandardError] error object if request failed
239
+ #
240
+ # @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation]
241
+ #
242
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
243
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
244
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
245
+ def mark_project_location_recommender_recommendation_succeeded(name, google_cloud_recommender_v1_mark_recommendation_succeeded_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
246
+ command = make_simple_command(:post, 'v1/{+name}:markSucceeded', options)
247
+ command.request_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationSucceededRequest::Representation
248
+ command.request_object = google_cloud_recommender_v1_mark_recommendation_succeeded_request_object
249
+ command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation::Representation
250
+ command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation
251
+ command.params['name'] = name unless name.nil?
252
+ command.query['fields'] = fields unless fields.nil?
253
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
254
+ execute_or_queue_command(command, &block)
255
+ end
256
+
257
+ protected
258
+
259
+ def apply_command_defaults(command)
260
+ command.query['key'] = key unless key.nil?
261
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
262
+ end
263
+ end
264
+ end
265
+ end
266
+ end