google-api-client 0.41.2 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +36 -0
- data/generated/google/apis/accessapproval_v1.rb +1 -1
- data/generated/google/apis/accessapproval_v1/service.rb +3 -0
- data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
- data/generated/google/apis/accessapproval_v1beta1/service.rb +3 -0
- data/generated/google/apis/admob_v1.rb +1 -1
- data/generated/google/apis/admob_v1/service.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +1389 -105
- data/generated/google/apis/apigee_v1/representations.rb +543 -0
- data/generated/google/apis/apigee_v1/service.rb +1139 -93
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +34 -0
- data/generated/google/apis/bigqueryreservation_v1/representations.rb +16 -0
- data/generated/google/apis/bigqueryreservation_v1/service.rb +60 -0
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +8 -0
- data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +9 -1
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/service.rb +4 -3
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +14 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
- data/generated/google/apis/{androidpublisher_v1.rb → customsearch_v1.rb} +8 -8
- data/generated/google/apis/customsearch_v1/classes.rb +1606 -0
- data/generated/google/apis/customsearch_v1/representations.rb +372 -0
- data/generated/google/apis/customsearch_v1/service.rb +608 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +4 -2
- data/generated/google/apis/dialogflow_v2beta1/service.rb +8 -2
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +12 -5
- data/generated/google/apis/dns_v1.rb +4 -4
- data/generated/google/apis/dns_v1/classes.rb +313 -162
- data/generated/google/apis/dns_v1/service.rb +247 -180
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/{groupsmigration_v1.rb → firebasehosting_v1.rb} +10 -12
- data/generated/google/apis/firebasehosting_v1/classes.rb +186 -0
- data/generated/google/apis/{androidpublisher_v2 → firebasehosting_v1}/representations.rb +22 -32
- data/generated/google/apis/firebasehosting_v1/service.rb +183 -0
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +2 -0
- data/generated/google/apis/games_v1.rb +5 -3
- data/generated/google/apis/games_v1/classes.rb +354 -2112
- data/generated/google/apis/games_v1/representations.rb +12 -647
- data/generated/google/apis/games_v1/service.rb +212 -1154
- data/generated/google/apis/gameservices_v1beta.rb +1 -1
- data/generated/google/apis/gameservices_v1beta/classes.rb +6 -6
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +6 -6
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +10 -2
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/monitoring_v3/service.rb +8 -5
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +24 -28
- data/generated/google/apis/pubsub_v1/service.rb +35 -44
- data/generated/google/apis/recommender_v1.rb +1 -1
- data/generated/google/apis/recommender_v1/classes.rb +211 -0
- data/generated/google/apis/recommender_v1/representations.rb +96 -0
- data/generated/google/apis/recommender_v1/service.rb +123 -0
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +17 -6
- data/generated/google/apis/testing_v1/representations.rb +1 -0
- data/generated/google/apis/youtube_partner_v1.rb +4 -3
- data/generated/google/apis/youtube_partner_v1/classes.rb +1616 -1076
- data/generated/google/apis/youtube_partner_v1/representations.rb +357 -256
- data/generated/google/apis/youtube_partner_v1/service.rb +942 -1362
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +554 -0
- data/generated/google/apis/youtube_v3/representations.rb +281 -0
- data/generated/google/apis/youtube_v3/service.rb +259 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +11 -19
- data/generated/google/apis/androidpublisher_v1/classes.rb +0 -26
- data/generated/google/apis/androidpublisher_v1/representations.rb +0 -26
- data/generated/google/apis/androidpublisher_v1/service.rb +0 -64
- data/generated/google/apis/androidpublisher_v1_1.rb +0 -34
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +0 -94
- data/generated/google/apis/androidpublisher_v1_1/representations.rb +0 -45
- data/generated/google/apis/androidpublisher_v1_1/service.rb +0 -104
- data/generated/google/apis/androidpublisher_v2.rb +0 -34
- data/generated/google/apis/androidpublisher_v2/classes.rb +0 -223
- data/generated/google/apis/androidpublisher_v2/service.rb +0 -160
- data/generated/google/apis/groupsmigration_v1/classes.rb +0 -51
- data/generated/google/apis/groupsmigration_v1/representations.rb +0 -40
- data/generated/google/apis/groupsmigration_v1/service.rb +0 -100
|
@@ -72,6 +72,163 @@ module Google
|
|
|
72
72
|
end
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
+
# An insight along with the information used to derive the insight. The insight
|
|
76
|
+
# may have associated recomendations as well.
|
|
77
|
+
class GoogleCloudRecommenderV1Insight
|
|
78
|
+
include Google::Apis::Core::Hashable
|
|
79
|
+
|
|
80
|
+
# Recommendations derived from this insight.
|
|
81
|
+
# Corresponds to the JSON property `associatedRecommendations`
|
|
82
|
+
# @return [Array<Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightRecommendationReference>]
|
|
83
|
+
attr_accessor :associated_recommendations
|
|
84
|
+
|
|
85
|
+
# Category being targeted by the insight.
|
|
86
|
+
# Corresponds to the JSON property `category`
|
|
87
|
+
# @return [String]
|
|
88
|
+
attr_accessor :category
|
|
89
|
+
|
|
90
|
+
# A struct of custom fields to explain the insight.
|
|
91
|
+
# Example: "grantedPermissionsCount": "1000"
|
|
92
|
+
# Corresponds to the JSON property `content`
|
|
93
|
+
# @return [Hash<String,Object>]
|
|
94
|
+
attr_accessor :content
|
|
95
|
+
|
|
96
|
+
# Free-form human readable summary in English. The maximum length is 500
|
|
97
|
+
# characters.
|
|
98
|
+
# Corresponds to the JSON property `description`
|
|
99
|
+
# @return [String]
|
|
100
|
+
attr_accessor :description
|
|
101
|
+
|
|
102
|
+
# Fingerprint of the Insight. Provides optimistic locking when updating
|
|
103
|
+
# states.
|
|
104
|
+
# Corresponds to the JSON property `etag`
|
|
105
|
+
# @return [String]
|
|
106
|
+
attr_accessor :etag
|
|
107
|
+
|
|
108
|
+
# Insight subtype. Insight content schema will be stable for a given subtype.
|
|
109
|
+
# Corresponds to the JSON property `insightSubtype`
|
|
110
|
+
# @return [String]
|
|
111
|
+
attr_accessor :insight_subtype
|
|
112
|
+
|
|
113
|
+
# Timestamp of the latest data used to generate the insight.
|
|
114
|
+
# Corresponds to the JSON property `lastRefreshTime`
|
|
115
|
+
# @return [String]
|
|
116
|
+
attr_accessor :last_refresh_time
|
|
117
|
+
|
|
118
|
+
# Name of the insight.
|
|
119
|
+
# Corresponds to the JSON property `name`
|
|
120
|
+
# @return [String]
|
|
121
|
+
attr_accessor :name
|
|
122
|
+
|
|
123
|
+
# Observation period that led to the insight. The source data used to
|
|
124
|
+
# generate the insight ends at last_refresh_time and begins at
|
|
125
|
+
# (last_refresh_time - observation_period).
|
|
126
|
+
# Corresponds to the JSON property `observationPeriod`
|
|
127
|
+
# @return [String]
|
|
128
|
+
attr_accessor :observation_period
|
|
129
|
+
|
|
130
|
+
# Information related to insight state.
|
|
131
|
+
# Corresponds to the JSON property `stateInfo`
|
|
132
|
+
# @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightStateInfo]
|
|
133
|
+
attr_accessor :state_info
|
|
134
|
+
|
|
135
|
+
# Fully qualified resource names that this insight is targeting.
|
|
136
|
+
# Corresponds to the JSON property `targetResources`
|
|
137
|
+
# @return [Array<String>]
|
|
138
|
+
attr_accessor :target_resources
|
|
139
|
+
|
|
140
|
+
def initialize(**args)
|
|
141
|
+
update!(**args)
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Update properties of this object
|
|
145
|
+
def update!(**args)
|
|
146
|
+
@associated_recommendations = args[:associated_recommendations] if args.key?(:associated_recommendations)
|
|
147
|
+
@category = args[:category] if args.key?(:category)
|
|
148
|
+
@content = args[:content] if args.key?(:content)
|
|
149
|
+
@description = args[:description] if args.key?(:description)
|
|
150
|
+
@etag = args[:etag] if args.key?(:etag)
|
|
151
|
+
@insight_subtype = args[:insight_subtype] if args.key?(:insight_subtype)
|
|
152
|
+
@last_refresh_time = args[:last_refresh_time] if args.key?(:last_refresh_time)
|
|
153
|
+
@name = args[:name] if args.key?(:name)
|
|
154
|
+
@observation_period = args[:observation_period] if args.key?(:observation_period)
|
|
155
|
+
@state_info = args[:state_info] if args.key?(:state_info)
|
|
156
|
+
@target_resources = args[:target_resources] if args.key?(:target_resources)
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Reference to an associated recommendation.
|
|
161
|
+
class GoogleCloudRecommenderV1InsightRecommendationReference
|
|
162
|
+
include Google::Apis::Core::Hashable
|
|
163
|
+
|
|
164
|
+
# Recommendation resource name, e.g.
|
|
165
|
+
# projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/
|
|
166
|
+
# recommendations/[RECOMMENDATION_ID]
|
|
167
|
+
# Corresponds to the JSON property `recommendation`
|
|
168
|
+
# @return [String]
|
|
169
|
+
attr_accessor :recommendation
|
|
170
|
+
|
|
171
|
+
def initialize(**args)
|
|
172
|
+
update!(**args)
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Update properties of this object
|
|
176
|
+
def update!(**args)
|
|
177
|
+
@recommendation = args[:recommendation] if args.key?(:recommendation)
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Information related to insight state.
|
|
182
|
+
class GoogleCloudRecommenderV1InsightStateInfo
|
|
183
|
+
include Google::Apis::Core::Hashable
|
|
184
|
+
|
|
185
|
+
# Insight state.
|
|
186
|
+
# Corresponds to the JSON property `state`
|
|
187
|
+
# @return [String]
|
|
188
|
+
attr_accessor :state
|
|
189
|
+
|
|
190
|
+
# A map of metadata for the state, provided by user or automations systems.
|
|
191
|
+
# Corresponds to the JSON property `stateMetadata`
|
|
192
|
+
# @return [Hash<String,String>]
|
|
193
|
+
attr_accessor :state_metadata
|
|
194
|
+
|
|
195
|
+
def initialize(**args)
|
|
196
|
+
update!(**args)
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Update properties of this object
|
|
200
|
+
def update!(**args)
|
|
201
|
+
@state = args[:state] if args.key?(:state)
|
|
202
|
+
@state_metadata = args[:state_metadata] if args.key?(:state_metadata)
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# Response to the `ListInsights` method.
|
|
207
|
+
class GoogleCloudRecommenderV1ListInsightsResponse
|
|
208
|
+
include Google::Apis::Core::Hashable
|
|
209
|
+
|
|
210
|
+
# The set of insights for the `parent` resource.
|
|
211
|
+
# Corresponds to the JSON property `insights`
|
|
212
|
+
# @return [Array<Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Insight>]
|
|
213
|
+
attr_accessor :insights
|
|
214
|
+
|
|
215
|
+
# A token that can be used to request the next page of results. This field is
|
|
216
|
+
# empty if there are no additional results.
|
|
217
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
218
|
+
# @return [String]
|
|
219
|
+
attr_accessor :next_page_token
|
|
220
|
+
|
|
221
|
+
def initialize(**args)
|
|
222
|
+
update!(**args)
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# Update properties of this object
|
|
226
|
+
def update!(**args)
|
|
227
|
+
@insights = args[:insights] if args.key?(:insights)
|
|
228
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
|
|
75
232
|
# Response to the `ListRecommendations` method.
|
|
76
233
|
class GoogleCloudRecommenderV1ListRecommendationsResponse
|
|
77
234
|
include Google::Apis::Core::Hashable
|
|
@@ -98,6 +255,33 @@ module Google
|
|
|
98
255
|
end
|
|
99
256
|
end
|
|
100
257
|
|
|
258
|
+
# Request for the `MarkInsightAccepted` method.
|
|
259
|
+
class GoogleCloudRecommenderV1MarkInsightAcceptedRequest
|
|
260
|
+
include Google::Apis::Core::Hashable
|
|
261
|
+
|
|
262
|
+
# Required. Fingerprint of the Insight. Provides optimistic locking.
|
|
263
|
+
# Corresponds to the JSON property `etag`
|
|
264
|
+
# @return [String]
|
|
265
|
+
attr_accessor :etag
|
|
266
|
+
|
|
267
|
+
# Optional. State properties user wish to include with this state. Full replace
|
|
268
|
+
# of the
|
|
269
|
+
# current state_metadata.
|
|
270
|
+
# Corresponds to the JSON property `stateMetadata`
|
|
271
|
+
# @return [Hash<String,String>]
|
|
272
|
+
attr_accessor :state_metadata
|
|
273
|
+
|
|
274
|
+
def initialize(**args)
|
|
275
|
+
update!(**args)
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# Update properties of this object
|
|
279
|
+
def update!(**args)
|
|
280
|
+
@etag = args[:etag] if args.key?(:etag)
|
|
281
|
+
@state_metadata = args[:state_metadata] if args.key?(:state_metadata)
|
|
282
|
+
end
|
|
283
|
+
end
|
|
284
|
+
|
|
101
285
|
# Request for the `MarkRecommendationClaimed` Method.
|
|
102
286
|
class GoogleCloudRecommenderV1MarkRecommendationClaimedRequest
|
|
103
287
|
include Google::Apis::Core::Hashable
|
|
@@ -329,6 +513,11 @@ module Google
|
|
|
329
513
|
# @return [Array<Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Impact>]
|
|
330
514
|
attr_accessor :additional_impact
|
|
331
515
|
|
|
516
|
+
# Insights that led to this recommendation.
|
|
517
|
+
# Corresponds to the JSON property `associatedInsights`
|
|
518
|
+
# @return [Array<Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationInsightReference>]
|
|
519
|
+
attr_accessor :associated_insights
|
|
520
|
+
|
|
332
521
|
# Contains what resources are changing and how they are changing.
|
|
333
522
|
# Corresponds to the JSON property `content`
|
|
334
523
|
# @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationContent]
|
|
@@ -386,6 +575,7 @@ module Google
|
|
|
386
575
|
# Update properties of this object
|
|
387
576
|
def update!(**args)
|
|
388
577
|
@additional_impact = args[:additional_impact] if args.key?(:additional_impact)
|
|
578
|
+
@associated_insights = args[:associated_insights] if args.key?(:associated_insights)
|
|
389
579
|
@content = args[:content] if args.key?(:content)
|
|
390
580
|
@description = args[:description] if args.key?(:description)
|
|
391
581
|
@etag = args[:etag] if args.key?(:etag)
|
|
@@ -418,6 +608,27 @@ module Google
|
|
|
418
608
|
end
|
|
419
609
|
end
|
|
420
610
|
|
|
611
|
+
# Reference to an associated insight.
|
|
612
|
+
class GoogleCloudRecommenderV1RecommendationInsightReference
|
|
613
|
+
include Google::Apis::Core::Hashable
|
|
614
|
+
|
|
615
|
+
# Insight resource name, e.g.
|
|
616
|
+
# projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/
|
|
617
|
+
# insights/[INSIGHT_ID]
|
|
618
|
+
# Corresponds to the JSON property `insight`
|
|
619
|
+
# @return [String]
|
|
620
|
+
attr_accessor :insight
|
|
621
|
+
|
|
622
|
+
def initialize(**args)
|
|
623
|
+
update!(**args)
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
# Update properties of this object
|
|
627
|
+
def update!(**args)
|
|
628
|
+
@insight = args[:insight] if args.key?(:insight)
|
|
629
|
+
end
|
|
630
|
+
end
|
|
631
|
+
|
|
421
632
|
# Information for state. Contains state and metadata.
|
|
422
633
|
class GoogleCloudRecommenderV1RecommendationStateInfo
|
|
423
634
|
include Google::Apis::Core::Hashable
|
|
@@ -34,12 +34,42 @@ module Google
|
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
+
class GoogleCloudRecommenderV1Insight
|
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
+
|
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
class GoogleCloudRecommenderV1InsightRecommendationReference
|
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
|
+
|
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
class GoogleCloudRecommenderV1InsightStateInfo
|
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
+
|
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class GoogleCloudRecommenderV1ListInsightsResponse
|
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
|
+
|
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
59
|
+
end
|
|
60
|
+
|
|
37
61
|
class GoogleCloudRecommenderV1ListRecommendationsResponse
|
|
38
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
63
|
|
|
40
64
|
include Google::Apis::Core::JsonObjectSupport
|
|
41
65
|
end
|
|
42
66
|
|
|
67
|
+
class GoogleCloudRecommenderV1MarkInsightAcceptedRequest
|
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
+
|
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
71
|
+
end
|
|
72
|
+
|
|
43
73
|
class GoogleCloudRecommenderV1MarkRecommendationClaimedRequest
|
|
44
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
75
|
|
|
@@ -82,6 +112,12 @@ module Google
|
|
|
82
112
|
include Google::Apis::Core::JsonObjectSupport
|
|
83
113
|
end
|
|
84
114
|
|
|
115
|
+
class GoogleCloudRecommenderV1RecommendationInsightReference
|
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
117
|
+
|
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
119
|
+
end
|
|
120
|
+
|
|
85
121
|
class GoogleCloudRecommenderV1RecommendationStateInfo
|
|
86
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
123
|
|
|
@@ -118,6 +154,49 @@ module Google
|
|
|
118
154
|
end
|
|
119
155
|
end
|
|
120
156
|
|
|
157
|
+
class GoogleCloudRecommenderV1Insight
|
|
158
|
+
# @private
|
|
159
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
160
|
+
collection :associated_recommendations, as: 'associatedRecommendations', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightRecommendationReference, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightRecommendationReference::Representation
|
|
161
|
+
|
|
162
|
+
property :category, as: 'category'
|
|
163
|
+
hash :content, as: 'content'
|
|
164
|
+
property :description, as: 'description'
|
|
165
|
+
property :etag, as: 'etag'
|
|
166
|
+
property :insight_subtype, as: 'insightSubtype'
|
|
167
|
+
property :last_refresh_time, as: 'lastRefreshTime'
|
|
168
|
+
property :name, as: 'name'
|
|
169
|
+
property :observation_period, as: 'observationPeriod'
|
|
170
|
+
property :state_info, as: 'stateInfo', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightStateInfo, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightStateInfo::Representation
|
|
171
|
+
|
|
172
|
+
collection :target_resources, as: 'targetResources'
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
class GoogleCloudRecommenderV1InsightRecommendationReference
|
|
177
|
+
# @private
|
|
178
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
179
|
+
property :recommendation, as: 'recommendation'
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
class GoogleCloudRecommenderV1InsightStateInfo
|
|
184
|
+
# @private
|
|
185
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
186
|
+
property :state, as: 'state'
|
|
187
|
+
hash :state_metadata, as: 'stateMetadata'
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
class GoogleCloudRecommenderV1ListInsightsResponse
|
|
192
|
+
# @private
|
|
193
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
194
|
+
collection :insights, as: 'insights', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Insight, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Insight::Representation
|
|
195
|
+
|
|
196
|
+
property :next_page_token, as: 'nextPageToken'
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
|
|
121
200
|
class GoogleCloudRecommenderV1ListRecommendationsResponse
|
|
122
201
|
# @private
|
|
123
202
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -127,6 +206,14 @@ module Google
|
|
|
127
206
|
end
|
|
128
207
|
end
|
|
129
208
|
|
|
209
|
+
class GoogleCloudRecommenderV1MarkInsightAcceptedRequest
|
|
210
|
+
# @private
|
|
211
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
212
|
+
property :etag, as: 'etag'
|
|
213
|
+
hash :state_metadata, as: 'stateMetadata'
|
|
214
|
+
end
|
|
215
|
+
end
|
|
216
|
+
|
|
130
217
|
class GoogleCloudRecommenderV1MarkRecommendationClaimedRequest
|
|
131
218
|
# @private
|
|
132
219
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -182,6 +269,8 @@ module Google
|
|
|
182
269
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
183
270
|
collection :additional_impact, as: 'additionalImpact', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Impact, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Impact::Representation
|
|
184
271
|
|
|
272
|
+
collection :associated_insights, as: 'associatedInsights', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationInsightReference, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationInsightReference::Representation
|
|
273
|
+
|
|
185
274
|
property :content, as: 'content', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationContent, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationContent::Representation
|
|
186
275
|
|
|
187
276
|
property :description, as: 'description'
|
|
@@ -204,6 +293,13 @@ module Google
|
|
|
204
293
|
end
|
|
205
294
|
end
|
|
206
295
|
|
|
296
|
+
class GoogleCloudRecommenderV1RecommendationInsightReference
|
|
297
|
+
# @private
|
|
298
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
299
|
+
property :insight, as: 'insight'
|
|
300
|
+
end
|
|
301
|
+
end
|
|
302
|
+
|
|
207
303
|
class GoogleCloudRecommenderV1RecommendationStateInfo
|
|
208
304
|
# @private
|
|
209
305
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -47,6 +47,129 @@ module Google
|
|
|
47
47
|
@batch_path = 'batch'
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
# Gets the requested insight. Requires the recommender.*.get IAM permission
|
|
51
|
+
# for the specified insight type.
|
|
52
|
+
# @param [String] name
|
|
53
|
+
# Required. Name of the insight.
|
|
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::GoogleCloudRecommenderV1Insight] parsed result object
|
|
64
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
65
|
+
#
|
|
66
|
+
# @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Insight]
|
|
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_insight_type_insight(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::GoogleCloudRecommenderV1Insight::Representation
|
|
74
|
+
command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Insight
|
|
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 insights for a Cloud project. Requires the recommender.*.list IAM
|
|
82
|
+
# permission for the specified insight type.
|
|
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]/insightTypes/[INSIGHT_TYPE_ID]"
|
|
88
|
+
# ,
|
|
89
|
+
# LOCATION here refers to GCP Locations:
|
|
90
|
+
# https://cloud.google.com/about/locations/
|
|
91
|
+
# @param [String] filter
|
|
92
|
+
# Optional. Filter expression to restrict the insights returned. Supported
|
|
93
|
+
# filter fields: state
|
|
94
|
+
# Eg: `state:"DISMISSED" or state:"ACTIVE"
|
|
95
|
+
# @param [Fixnum] page_size
|
|
96
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
97
|
+
# positive
|
|
98
|
+
# values are ignored. If not specified, the server will determine the number
|
|
99
|
+
# of results to return.
|
|
100
|
+
# @param [String] page_token
|
|
101
|
+
# Optional. If present, retrieves the next batch of results from the preceding
|
|
102
|
+
# call to
|
|
103
|
+
# this method. `page_token` must be the value of `next_page_token` from the
|
|
104
|
+
# previous response. The values of other method parameters must be identical
|
|
105
|
+
# to those in the previous call.
|
|
106
|
+
# @param [String] fields
|
|
107
|
+
# Selector specifying which fields to include in a partial response.
|
|
108
|
+
# @param [String] quota_user
|
|
109
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
110
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
111
|
+
# @param [Google::Apis::RequestOptions] options
|
|
112
|
+
# Request-specific options
|
|
113
|
+
#
|
|
114
|
+
# @yield [result, err] Result & error if block supplied
|
|
115
|
+
# @yieldparam result [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ListInsightsResponse] parsed result object
|
|
116
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
117
|
+
#
|
|
118
|
+
# @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ListInsightsResponse]
|
|
119
|
+
#
|
|
120
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
121
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
122
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
123
|
+
def list_project_location_insight_type_insights(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
124
|
+
command = make_simple_command(:get, 'v1/{+parent}/insights', options)
|
|
125
|
+
command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ListInsightsResponse::Representation
|
|
126
|
+
command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ListInsightsResponse
|
|
127
|
+
command.params['parent'] = parent unless parent.nil?
|
|
128
|
+
command.query['filter'] = filter unless filter.nil?
|
|
129
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
130
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
131
|
+
command.query['fields'] = fields unless fields.nil?
|
|
132
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
133
|
+
execute_or_queue_command(command, &block)
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Marks the Insight State as Accepted. Users can use this method to
|
|
137
|
+
# indicate to the Recommender API that they have applied some action based
|
|
138
|
+
# on the insight. This stops the insight content from being updated.
|
|
139
|
+
# MarkInsightAccepted can be applied to insights in ACTIVE state. Requires
|
|
140
|
+
# the recommender.*.update IAM permission for the specified insight.
|
|
141
|
+
# @param [String] name
|
|
142
|
+
# Required. Name of the insight.
|
|
143
|
+
# @param [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkInsightAcceptedRequest] google_cloud_recommender_v1_mark_insight_accepted_request_object
|
|
144
|
+
# @param [String] fields
|
|
145
|
+
# Selector specifying which fields to include in a partial response.
|
|
146
|
+
# @param [String] quota_user
|
|
147
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
148
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
149
|
+
# @param [Google::Apis::RequestOptions] options
|
|
150
|
+
# Request-specific options
|
|
151
|
+
#
|
|
152
|
+
# @yield [result, err] Result & error if block supplied
|
|
153
|
+
# @yieldparam result [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Insight] parsed result object
|
|
154
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
155
|
+
#
|
|
156
|
+
# @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Insight]
|
|
157
|
+
#
|
|
158
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
159
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
160
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
161
|
+
def mark_project_location_insight_type_insight_accepted(name, google_cloud_recommender_v1_mark_insight_accepted_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
162
|
+
command = make_simple_command(:post, 'v1/{+name}:markAccepted', options)
|
|
163
|
+
command.request_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkInsightAcceptedRequest::Representation
|
|
164
|
+
command.request_object = google_cloud_recommender_v1_mark_insight_accepted_request_object
|
|
165
|
+
command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Insight::Representation
|
|
166
|
+
command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Insight
|
|
167
|
+
command.params['name'] = name unless name.nil?
|
|
168
|
+
command.query['fields'] = fields unless fields.nil?
|
|
169
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
170
|
+
execute_or_queue_command(command, &block)
|
|
171
|
+
end
|
|
172
|
+
|
|
50
173
|
# Gets the requested recommendation. Requires the recommender.*.get
|
|
51
174
|
# IAM permission for the specified recommender.
|
|
52
175
|
# @param [String] name
|