@maxim_mazurok/gapi.client.recommender-v1beta1 0.0.20220807
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.
- package/index.d.ts +2302 -0
- package/package.json +20 -0
- package/readme.md +68 -0
- package/tests.ts +421 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,2302 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Recommender API v1beta1 0.0 */
|
|
2
|
+
// Project: https://cloud.google.com/recommender/docs/
|
|
3
|
+
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
|
+
// Nick Amoscato <https://github.com/namoscato>
|
|
5
|
+
// Declan Vong <https://github.com/declanvong>
|
|
6
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
+
// TypeScript Version: 2.8
|
|
8
|
+
|
|
9
|
+
// IMPORTANT
|
|
10
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
|
+
// Generated from: https://recommender.googleapis.com/$discovery/rest?version=v1beta1
|
|
13
|
+
// Revision: 20220807
|
|
14
|
+
|
|
15
|
+
/// <reference types="gapi.client" />
|
|
16
|
+
|
|
17
|
+
declare namespace gapi.client {
|
|
18
|
+
/** Load Recommender API v1beta1 */
|
|
19
|
+
function load(urlOrObject: "https://recommender.googleapis.com/$discovery/rest?version=v1beta1"): Promise<void>;
|
|
20
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
21
|
+
function load(name: "recommender", version: "v1beta1"): Promise<void>;
|
|
22
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
23
|
+
function load(name: "recommender", version: "v1beta1", callback: () => any): void;
|
|
24
|
+
|
|
25
|
+
namespace recommender {
|
|
26
|
+
interface GoogleCloudRecommenderV1beta1CostProjection {
|
|
27
|
+
/**
|
|
28
|
+
* An approximate projection on amount saved or amount incurred. Negative cost units indicate cost savings and positive cost units indicate increase. See google.type.Money
|
|
29
|
+
* documentation for positive/negative units. A user's permissions may affect whether the cost is computed using list prices or custom contract prices.
|
|
30
|
+
*/
|
|
31
|
+
cost?: GoogleTypeMoney;
|
|
32
|
+
/** Duration for which this cost applies. */
|
|
33
|
+
duration?: string;
|
|
34
|
+
}
|
|
35
|
+
interface GoogleCloudRecommenderV1beta1Impact {
|
|
36
|
+
/** Category that is being targeted. */
|
|
37
|
+
category?: string;
|
|
38
|
+
/** Use with CategoryType.COST */
|
|
39
|
+
costProjection?: GoogleCloudRecommenderV1beta1CostProjection;
|
|
40
|
+
/** Use with CategoryType.SECURITY */
|
|
41
|
+
securityProjection?: GoogleCloudRecommenderV1beta1SecurityProjection;
|
|
42
|
+
/** Use with CategoryType.SUSTAINABILITY */
|
|
43
|
+
sustainabilityProjection?: GoogleCloudRecommenderV1beta1SustainabilityProjection;
|
|
44
|
+
}
|
|
45
|
+
interface GoogleCloudRecommenderV1beta1Insight {
|
|
46
|
+
/** Recommendations derived from this insight. */
|
|
47
|
+
associatedRecommendations?: GoogleCloudRecommenderV1beta1InsightRecommendationReference[];
|
|
48
|
+
/** Category being targeted by the insight. */
|
|
49
|
+
category?: string;
|
|
50
|
+
/** A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000" */
|
|
51
|
+
content?: { [P in string]: any };
|
|
52
|
+
/** Free-form human readable summary in English. The maximum length is 500 characters. */
|
|
53
|
+
description?: string;
|
|
54
|
+
/** Fingerprint of the Insight. Provides optimistic locking when updating states. */
|
|
55
|
+
etag?: string;
|
|
56
|
+
/** Insight subtype. Insight content schema will be stable for a given subtype. */
|
|
57
|
+
insightSubtype?: string;
|
|
58
|
+
/** Timestamp of the latest data used to generate the insight. */
|
|
59
|
+
lastRefreshTime?: string;
|
|
60
|
+
/** Name of the insight. */
|
|
61
|
+
name?: string;
|
|
62
|
+
/** Observation period that led to the insight. The source data used to generate the insight ends at last_refresh_time and begins at (last_refresh_time - observation_period). */
|
|
63
|
+
observationPeriod?: string;
|
|
64
|
+
/** Insight's severity. */
|
|
65
|
+
severity?: string;
|
|
66
|
+
/** Information state and metadata. */
|
|
67
|
+
stateInfo?: GoogleCloudRecommenderV1beta1InsightStateInfo;
|
|
68
|
+
/** Fully qualified resource names that this insight is targeting. */
|
|
69
|
+
targetResources?: string[];
|
|
70
|
+
}
|
|
71
|
+
interface GoogleCloudRecommenderV1beta1InsightRecommendationReference {
|
|
72
|
+
/** Recommendation resource name, e.g. projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID] */
|
|
73
|
+
recommendation?: string;
|
|
74
|
+
}
|
|
75
|
+
interface GoogleCloudRecommenderV1beta1InsightStateInfo {
|
|
76
|
+
/** Insight state. */
|
|
77
|
+
state?: string;
|
|
78
|
+
/** A map of metadata for the state, provided by user or automations systems. */
|
|
79
|
+
stateMetadata?: { [P in string]: string };
|
|
80
|
+
}
|
|
81
|
+
interface GoogleCloudRecommenderV1beta1InsightTypeConfig {
|
|
82
|
+
/**
|
|
83
|
+
* Allows clients to store small amounts of arbitrary data. Annotations must follow the Kubernetes syntax. The total size of all keys and values combined is limited to 256k. Key can
|
|
84
|
+
* have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with
|
|
85
|
+
* alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.
|
|
86
|
+
*/
|
|
87
|
+
annotations?: { [P in string]: string };
|
|
88
|
+
/** A user-settable field to provide a human-readable name to be used in user interfaces. */
|
|
89
|
+
displayName?: string;
|
|
90
|
+
/** Fingerprint of the InsightTypeConfig. Provides optimistic locking when updating. */
|
|
91
|
+
etag?: string;
|
|
92
|
+
/** InsightTypeGenerationConfig which configures the generation of insights for this insight type. */
|
|
93
|
+
insightTypeGenerationConfig?: GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig;
|
|
94
|
+
/** Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config */
|
|
95
|
+
name?: string;
|
|
96
|
+
/** Output only. Immutable. The revision ID of the config. A new revision is committed whenever the config is changed in any way. The format is an 8-character hexadecimal string. */
|
|
97
|
+
revisionId?: string;
|
|
98
|
+
/** Last time when the config was updated. */
|
|
99
|
+
updateTime?: string;
|
|
100
|
+
}
|
|
101
|
+
interface GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig {
|
|
102
|
+
/** Parameters for this InsightTypeGenerationConfig. These configs can be used by or are applied to all subtypes. */
|
|
103
|
+
params?: { [P in string]: any };
|
|
104
|
+
}
|
|
105
|
+
interface GoogleCloudRecommenderV1beta1ListInsightsResponse {
|
|
106
|
+
/** The set of insights for the `parent` resource. */
|
|
107
|
+
insights?: GoogleCloudRecommenderV1beta1Insight[];
|
|
108
|
+
/** A token that can be used to request the next page of results. This field is empty if there are no additional results. */
|
|
109
|
+
nextPageToken?: string;
|
|
110
|
+
}
|
|
111
|
+
interface GoogleCloudRecommenderV1beta1ListRecommendationsResponse {
|
|
112
|
+
/** A token that can be used to request the next page of results. This field is empty if there are no additional results. */
|
|
113
|
+
nextPageToken?: string;
|
|
114
|
+
/** The set of recommendations for the `parent` resource. */
|
|
115
|
+
recommendations?: GoogleCloudRecommenderV1beta1Recommendation[];
|
|
116
|
+
}
|
|
117
|
+
interface GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest {
|
|
118
|
+
/** Required. Fingerprint of the Insight. Provides optimistic locking. */
|
|
119
|
+
etag?: string;
|
|
120
|
+
/** Optional. State properties user wish to include with this state. Full replace of the current state_metadata. */
|
|
121
|
+
stateMetadata?: { [P in string]: string };
|
|
122
|
+
}
|
|
123
|
+
interface GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest {
|
|
124
|
+
/** Required. Fingerprint of the Recommendation. Provides optimistic locking. */
|
|
125
|
+
etag?: string;
|
|
126
|
+
/**
|
|
127
|
+
* State properties to include with this state. Overwrites any existing `state_metadata`. Keys must match the regex `/^a-z0-9{0,62}$/`. Values must match the regex
|
|
128
|
+
* `/^[a-zA-Z0-9_./-]{0,255}$/`.
|
|
129
|
+
*/
|
|
130
|
+
stateMetadata?: { [P in string]: string };
|
|
131
|
+
}
|
|
132
|
+
interface GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest {
|
|
133
|
+
/** Required. Fingerprint of the Recommendation. Provides optimistic locking. */
|
|
134
|
+
etag?: string;
|
|
135
|
+
/**
|
|
136
|
+
* State properties to include with this state. Overwrites any existing `state_metadata`. Keys must match the regex `/^a-z0-9{0,62}$/`. Values must match the regex
|
|
137
|
+
* `/^[a-zA-Z0-9_./-]{0,255}$/`.
|
|
138
|
+
*/
|
|
139
|
+
stateMetadata?: { [P in string]: string };
|
|
140
|
+
}
|
|
141
|
+
interface GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest {
|
|
142
|
+
/** Required. Fingerprint of the Recommendation. Provides optimistic locking. */
|
|
143
|
+
etag?: string;
|
|
144
|
+
/**
|
|
145
|
+
* State properties to include with this state. Overwrites any existing `state_metadata`. Keys must match the regex `/^a-z0-9{0,62}$/`. Values must match the regex
|
|
146
|
+
* `/^[a-zA-Z0-9_./-]{0,255}$/`.
|
|
147
|
+
*/
|
|
148
|
+
stateMetadata?: { [P in string]: string };
|
|
149
|
+
}
|
|
150
|
+
interface GoogleCloudRecommenderV1beta1Operation {
|
|
151
|
+
/** Type of this operation. Contains one of 'add', 'remove', 'replace', 'move', 'copy', 'test' and 'custom' operations. This field is case-insensitive and always populated. */
|
|
152
|
+
action?: string;
|
|
153
|
+
/** Path to the target field being operated on. If the operation is at the resource level, then path should be "/". This field is always populated. */
|
|
154
|
+
path?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified. This is
|
|
157
|
+
* intended to be an exact match per filter. To perform advanced matching, use path_value_matchers. * Example: ``` { "/versions/*/name" : "it-123" "/versions/*/targetSize/percent":
|
|
158
|
+
* 20 } ``` * Example: ``` { "/bindings/*/role": "roles/owner" "/bindings/*/condition" : null } ``` * Example: ``` { "/bindings/*/role": "roles/owner" "/bindings/*/members/*" :
|
|
159
|
+
* ["x@example.com", "y@example.com"] } ``` When both path_filters and path_value_matchers are set, an implicit AND must be performed.
|
|
160
|
+
*/
|
|
161
|
+
pathFilters?: { [P in string]: any };
|
|
162
|
+
/**
|
|
163
|
+
* Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements. This is meant to support value matching beyond exact match. To perform exact
|
|
164
|
+
* match, use path_filters. When both path_filters and path_value_matchers are set, an implicit AND must be performed.
|
|
165
|
+
*/
|
|
166
|
+
pathValueMatchers?: { [P in string]: GoogleCloudRecommenderV1beta1ValueMatcher };
|
|
167
|
+
/** Contains the fully qualified resource name. This field is always populated. ex: //cloudresourcemanager.googleapis.com/projects/foo. */
|
|
168
|
+
resource?: string;
|
|
169
|
+
/** Type of GCP resource being modified/tested. This field is always populated. Example: cloudresourcemanager.googleapis.com/Project, compute.googleapis.com/Instance */
|
|
170
|
+
resourceType?: string;
|
|
171
|
+
/** Can be set with action 'copy' or 'move' to indicate the source field within resource or source_resource, ignored if provided for other operation types. */
|
|
172
|
+
sourcePath?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Can be set with action 'copy' to copy resource configuration across different resources of the same type. Example: A resource clone can be done via action = 'copy', path = "/", from
|
|
175
|
+
* = "/", source_resource = and resource_name = . This field is empty for all other values of `action`.
|
|
176
|
+
*/
|
|
177
|
+
sourceResource?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Value for the `path` field. Will be set for actions:'add'/'replace'. Maybe set for action: 'test'. Either this or `value_matcher` will be set for 'test' operation. An exact match
|
|
180
|
+
* must be performed.
|
|
181
|
+
*/
|
|
182
|
+
value?: any;
|
|
183
|
+
/** Can be set for action 'test' for advanced matching for the value of 'path' field. Either this or `value` will be set for 'test' operation. */
|
|
184
|
+
valueMatcher?: GoogleCloudRecommenderV1beta1ValueMatcher;
|
|
185
|
+
}
|
|
186
|
+
interface GoogleCloudRecommenderV1beta1OperationGroup {
|
|
187
|
+
/** List of operations across one or more resources that belong to this group. Loosely based on RFC6902 and should be performed in the order they appear. */
|
|
188
|
+
operations?: GoogleCloudRecommenderV1beta1Operation[];
|
|
189
|
+
}
|
|
190
|
+
interface GoogleCloudRecommenderV1beta1Recommendation {
|
|
191
|
+
/** Optional set of additional impact that this recommendation may have when trying to optimize for the primary category. These may be positive or negative. */
|
|
192
|
+
additionalImpact?: GoogleCloudRecommenderV1beta1Impact[];
|
|
193
|
+
/** Insights that led to this recommendation. */
|
|
194
|
+
associatedInsights?: GoogleCloudRecommenderV1beta1RecommendationInsightReference[];
|
|
195
|
+
/** Content of the recommendation describing recommended changes to resources. */
|
|
196
|
+
content?: GoogleCloudRecommenderV1beta1RecommendationContent;
|
|
197
|
+
/** Free-form human readable summary in English. The maximum length is 500 characters. */
|
|
198
|
+
description?: string;
|
|
199
|
+
/** Fingerprint of the Recommendation. Provides optimistic locking when updating states. */
|
|
200
|
+
etag?: string;
|
|
201
|
+
/** Last time this recommendation was refreshed by the system that created it in the first place. */
|
|
202
|
+
lastRefreshTime?: string;
|
|
203
|
+
/** Name of recommendation. */
|
|
204
|
+
name?: string;
|
|
205
|
+
/** The primary impact that this recommendation can have while trying to optimize for one category. */
|
|
206
|
+
primaryImpact?: GoogleCloudRecommenderV1beta1Impact;
|
|
207
|
+
/** Recommendation's priority. */
|
|
208
|
+
priority?: string;
|
|
209
|
+
/**
|
|
210
|
+
* Contains an identifier for a subtype of recommendations produced for the same recommender. Subtype is a function of content and impact, meaning a new subtype might be added when
|
|
211
|
+
* significant changes to `content` or `primary_impact.category` are introduced. See the Recommenders section to see a list of subtypes for a given Recommender. Examples: For
|
|
212
|
+
* recommender = "google.iam.policy.Recommender", recommender_subtype can be one of "REMOVE_ROLE"/"REPLACE_ROLE"
|
|
213
|
+
*/
|
|
214
|
+
recommenderSubtype?: string;
|
|
215
|
+
/** Information for state. Contains state and metadata. */
|
|
216
|
+
stateInfo?: GoogleCloudRecommenderV1beta1RecommendationStateInfo;
|
|
217
|
+
/**
|
|
218
|
+
* Corresponds to a mutually exclusive group ID within a recommender. A non-empty ID indicates that the recommendation belongs to a mutually exclusive group. This means that only one
|
|
219
|
+
* recommendation within the group is suggested to be applied.
|
|
220
|
+
*/
|
|
221
|
+
xorGroupId?: string;
|
|
222
|
+
}
|
|
223
|
+
interface GoogleCloudRecommenderV1beta1RecommendationContent {
|
|
224
|
+
/** Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order. */
|
|
225
|
+
operationGroups?: GoogleCloudRecommenderV1beta1OperationGroup[];
|
|
226
|
+
/** Condensed overview information about the recommendation. */
|
|
227
|
+
overview?: { [P in string]: any };
|
|
228
|
+
}
|
|
229
|
+
interface GoogleCloudRecommenderV1beta1RecommendationInsightReference {
|
|
230
|
+
/** Insight resource name, e.g. projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID] */
|
|
231
|
+
insight?: string;
|
|
232
|
+
}
|
|
233
|
+
interface GoogleCloudRecommenderV1beta1RecommendationStateInfo {
|
|
234
|
+
/** The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED. */
|
|
235
|
+
state?: string;
|
|
236
|
+
/** A map of metadata for the state, provided by user or automations systems. */
|
|
237
|
+
stateMetadata?: { [P in string]: string };
|
|
238
|
+
}
|
|
239
|
+
interface GoogleCloudRecommenderV1beta1RecommenderConfig {
|
|
240
|
+
/**
|
|
241
|
+
* Allows clients to store small amounts of arbitrary data. Annotations must follow the Kubernetes syntax. The total size of all keys and values combined is limited to 256k. Key can
|
|
242
|
+
* have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with
|
|
243
|
+
* alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.
|
|
244
|
+
*/
|
|
245
|
+
annotations?: { [P in string]: string };
|
|
246
|
+
/** A user-settable field to provide a human-readable name to be used in user interfaces. */
|
|
247
|
+
displayName?: string;
|
|
248
|
+
/** Fingerprint of the RecommenderConfig. Provides optimistic locking when updating. */
|
|
249
|
+
etag?: string;
|
|
250
|
+
/** Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config */
|
|
251
|
+
name?: string;
|
|
252
|
+
/** RecommenderGenerationConfig which configures the Generation of recommendations for this recommender. */
|
|
253
|
+
recommenderGenerationConfig?: GoogleCloudRecommenderV1beta1RecommenderGenerationConfig;
|
|
254
|
+
/** Output only. Immutable. The revision ID of the config. A new revision is committed whenever the config is changed in any way. The format is an 8-character hexadecimal string. */
|
|
255
|
+
revisionId?: string;
|
|
256
|
+
/** Last time when the config was updated. */
|
|
257
|
+
updateTime?: string;
|
|
258
|
+
}
|
|
259
|
+
interface GoogleCloudRecommenderV1beta1RecommenderGenerationConfig {
|
|
260
|
+
/** Parameters for this RecommenderGenerationConfig. These configs can be used by or are applied to all subtypes. */
|
|
261
|
+
params?: { [P in string]: any };
|
|
262
|
+
}
|
|
263
|
+
interface GoogleCloudRecommenderV1beta1SecurityProjection {
|
|
264
|
+
/** This field can be used by the recommender to define details specific to security impact. */
|
|
265
|
+
details?: { [P in string]: any };
|
|
266
|
+
}
|
|
267
|
+
interface GoogleCloudRecommenderV1beta1SustainabilityProjection {
|
|
268
|
+
/** Duration for which this sustanability applies. */
|
|
269
|
+
duration?: string;
|
|
270
|
+
/** Carbon Footprint generated in kg of CO2 equivalent. Chose kg_c_o2e so that the name renders correctly in camelCase (kgCO2e). */
|
|
271
|
+
kgCO2e?: number;
|
|
272
|
+
}
|
|
273
|
+
interface GoogleCloudRecommenderV1beta1ValueMatcher {
|
|
274
|
+
/** To be used for full regex matching. The regular expression is using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be used with RE2::FullMatch */
|
|
275
|
+
matchesPattern?: string;
|
|
276
|
+
}
|
|
277
|
+
interface GoogleTypeMoney {
|
|
278
|
+
/** The three-letter currency code defined in ISO 4217. */
|
|
279
|
+
currencyCode?: string;
|
|
280
|
+
/**
|
|
281
|
+
* Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units`
|
|
282
|
+
* is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and
|
|
283
|
+
* `nanos`=-750,000,000.
|
|
284
|
+
*/
|
|
285
|
+
nanos?: number;
|
|
286
|
+
/** The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. */
|
|
287
|
+
units?: string;
|
|
288
|
+
}
|
|
289
|
+
interface InsightsResource {
|
|
290
|
+
/** Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type. */
|
|
291
|
+
get(request?: {
|
|
292
|
+
/** V1 error format. */
|
|
293
|
+
"$.xgafv"?: string;
|
|
294
|
+
/** OAuth access token. */
|
|
295
|
+
access_token?: string;
|
|
296
|
+
/** Data format for response. */
|
|
297
|
+
alt?: string;
|
|
298
|
+
/** JSONP */
|
|
299
|
+
callback?: string;
|
|
300
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
301
|
+
fields?: string;
|
|
302
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
303
|
+
key?: string;
|
|
304
|
+
/** Required. Name of the insight. */
|
|
305
|
+
name: string;
|
|
306
|
+
/** OAuth 2.0 token for the current user. */
|
|
307
|
+
oauth_token?: string;
|
|
308
|
+
/** Returns response with indentations and line breaks. */
|
|
309
|
+
prettyPrint?: boolean;
|
|
310
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
311
|
+
quotaUser?: string;
|
|
312
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
313
|
+
upload_protocol?: string;
|
|
314
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
315
|
+
uploadType?: string;
|
|
316
|
+
}): Request<GoogleCloudRecommenderV1beta1Insight>;
|
|
317
|
+
/** Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type. */
|
|
318
|
+
list(request?: {
|
|
319
|
+
/** V1 error format. */
|
|
320
|
+
"$.xgafv"?: string;
|
|
321
|
+
/** OAuth access token. */
|
|
322
|
+
access_token?: string;
|
|
323
|
+
/** Data format for response. */
|
|
324
|
+
alt?: string;
|
|
325
|
+
/** JSONP */
|
|
326
|
+
callback?: string;
|
|
327
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
328
|
+
fields?: string;
|
|
329
|
+
/**
|
|
330
|
+
* Optional. Filter expression to restrict the insights returned. Supported filter fields: * `stateInfo.state` * `insightSubtype` * `severity` Examples: * `stateInfo.state = ACTIVE
|
|
331
|
+
* OR stateInfo.state = DISMISSED` * `insightSubtype = PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR
|
|
332
|
+
* severity = HIGH)` (These expressions are based on the filter language described at https://google.aip.dev/160)
|
|
333
|
+
*/
|
|
334
|
+
filter?: string;
|
|
335
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
336
|
+
key?: string;
|
|
337
|
+
/** OAuth 2.0 token for the current user. */
|
|
338
|
+
oauth_token?: string;
|
|
339
|
+
/**
|
|
340
|
+
* Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to
|
|
341
|
+
* return.
|
|
342
|
+
*/
|
|
343
|
+
pageSize?: number;
|
|
344
|
+
/**
|
|
345
|
+
* Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response.
|
|
346
|
+
* The values of other method parameters must be identical to those in the previous call.
|
|
347
|
+
*/
|
|
348
|
+
pageToken?: string;
|
|
349
|
+
/**
|
|
350
|
+
* Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *
|
|
351
|
+
* `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *
|
|
352
|
+
* `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here
|
|
353
|
+
* refers to GCP Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to supported insight types:
|
|
354
|
+
* https://cloud.google.com/recommender/docs/insights/insight-types.
|
|
355
|
+
*/
|
|
356
|
+
parent: string;
|
|
357
|
+
/** Returns response with indentations and line breaks. */
|
|
358
|
+
prettyPrint?: boolean;
|
|
359
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
360
|
+
quotaUser?: string;
|
|
361
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
362
|
+
upload_protocol?: string;
|
|
363
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
364
|
+
uploadType?: string;
|
|
365
|
+
}): Request<GoogleCloudRecommenderV1beta1ListInsightsResponse>;
|
|
366
|
+
/**
|
|
367
|
+
* Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight
|
|
368
|
+
* content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.
|
|
369
|
+
*/
|
|
370
|
+
markAccepted(request: {
|
|
371
|
+
/** V1 error format. */
|
|
372
|
+
"$.xgafv"?: string;
|
|
373
|
+
/** OAuth access token. */
|
|
374
|
+
access_token?: string;
|
|
375
|
+
/** Data format for response. */
|
|
376
|
+
alt?: string;
|
|
377
|
+
/** JSONP */
|
|
378
|
+
callback?: string;
|
|
379
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
380
|
+
fields?: string;
|
|
381
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
382
|
+
key?: string;
|
|
383
|
+
/** Required. Name of the insight. */
|
|
384
|
+
name: string;
|
|
385
|
+
/** OAuth 2.0 token for the current user. */
|
|
386
|
+
oauth_token?: string;
|
|
387
|
+
/** Returns response with indentations and line breaks. */
|
|
388
|
+
prettyPrint?: boolean;
|
|
389
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
390
|
+
quotaUser?: string;
|
|
391
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
392
|
+
upload_protocol?: string;
|
|
393
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
394
|
+
uploadType?: string;
|
|
395
|
+
/** Request body */
|
|
396
|
+
resource: GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest;
|
|
397
|
+
}): Request<GoogleCloudRecommenderV1beta1Insight>;
|
|
398
|
+
markAccepted(request: {
|
|
399
|
+
/** V1 error format. */
|
|
400
|
+
"$.xgafv"?: string;
|
|
401
|
+
/** OAuth access token. */
|
|
402
|
+
access_token?: string;
|
|
403
|
+
/** Data format for response. */
|
|
404
|
+
alt?: string;
|
|
405
|
+
/** JSONP */
|
|
406
|
+
callback?: string;
|
|
407
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
408
|
+
fields?: string;
|
|
409
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
410
|
+
key?: string;
|
|
411
|
+
/** Required. Name of the insight. */
|
|
412
|
+
name: string;
|
|
413
|
+
/** OAuth 2.0 token for the current user. */
|
|
414
|
+
oauth_token?: string;
|
|
415
|
+
/** Returns response with indentations and line breaks. */
|
|
416
|
+
prettyPrint?: boolean;
|
|
417
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
418
|
+
quotaUser?: string;
|
|
419
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
420
|
+
upload_protocol?: string;
|
|
421
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
422
|
+
uploadType?: string;
|
|
423
|
+
},
|
|
424
|
+
body: GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest): Request<GoogleCloudRecommenderV1beta1Insight>;
|
|
425
|
+
}
|
|
426
|
+
interface InsightTypesResource {
|
|
427
|
+
insights: InsightsResource;
|
|
428
|
+
}
|
|
429
|
+
interface RecommendationsResource {
|
|
430
|
+
/** Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender. */
|
|
431
|
+
get(request?: {
|
|
432
|
+
/** V1 error format. */
|
|
433
|
+
"$.xgafv"?: string;
|
|
434
|
+
/** OAuth access token. */
|
|
435
|
+
access_token?: string;
|
|
436
|
+
/** Data format for response. */
|
|
437
|
+
alt?: string;
|
|
438
|
+
/** JSONP */
|
|
439
|
+
callback?: string;
|
|
440
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
441
|
+
fields?: string;
|
|
442
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
443
|
+
key?: string;
|
|
444
|
+
/** Required. Name of the recommendation. */
|
|
445
|
+
name: string;
|
|
446
|
+
/** OAuth 2.0 token for the current user. */
|
|
447
|
+
oauth_token?: string;
|
|
448
|
+
/** Returns response with indentations and line breaks. */
|
|
449
|
+
prettyPrint?: boolean;
|
|
450
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
451
|
+
quotaUser?: string;
|
|
452
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
453
|
+
upload_protocol?: string;
|
|
454
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
455
|
+
uploadType?: string;
|
|
456
|
+
}): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
457
|
+
/** Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender. */
|
|
458
|
+
list(request?: {
|
|
459
|
+
/** V1 error format. */
|
|
460
|
+
"$.xgafv"?: string;
|
|
461
|
+
/** OAuth access token. */
|
|
462
|
+
access_token?: string;
|
|
463
|
+
/** Data format for response. */
|
|
464
|
+
alt?: string;
|
|
465
|
+
/** JSONP */
|
|
466
|
+
callback?: string;
|
|
467
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
468
|
+
fields?: string;
|
|
469
|
+
/**
|
|
470
|
+
* Filter expression to restrict the recommendations returned. Supported filter fields: * `state_info.state` * `recommenderSubtype` * `priority` Examples: * `stateInfo.state =
|
|
471
|
+
* ACTIVE OR stateInfo.state = DISMISSED` * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` * `priority = P1 OR priority = P2` * `stateInfo.state = ACTIVE
|
|
472
|
+
* AND (priority = P1 OR priority = P2)` (These expressions are based on the filter language described at https://google.aip.dev/160)
|
|
473
|
+
*/
|
|
474
|
+
filter?: string;
|
|
475
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
476
|
+
key?: string;
|
|
477
|
+
/** OAuth 2.0 token for the current user. */
|
|
478
|
+
oauth_token?: string;
|
|
479
|
+
/**
|
|
480
|
+
* Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to
|
|
481
|
+
* return.
|
|
482
|
+
*/
|
|
483
|
+
pageSize?: number;
|
|
484
|
+
/**
|
|
485
|
+
* Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response.
|
|
486
|
+
* The values of other method parameters must be identical to those in the previous call.
|
|
487
|
+
*/
|
|
488
|
+
pageToken?: string;
|
|
489
|
+
/**
|
|
490
|
+
* Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *
|
|
491
|
+
* `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *
|
|
492
|
+
* `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here
|
|
493
|
+
* refers to GCP Locations: https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https://cloud.google.com/recommender/docs/recommenders.
|
|
494
|
+
*/
|
|
495
|
+
parent: string;
|
|
496
|
+
/** Returns response with indentations and line breaks. */
|
|
497
|
+
prettyPrint?: boolean;
|
|
498
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
499
|
+
quotaUser?: string;
|
|
500
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
501
|
+
upload_protocol?: string;
|
|
502
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
503
|
+
uploadType?: string;
|
|
504
|
+
}): Request<GoogleCloudRecommenderV1beta1ListRecommendationsResponse>;
|
|
505
|
+
/**
|
|
506
|
+
* Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the
|
|
507
|
+
* recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED or
|
|
508
|
+
* ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
|
|
509
|
+
*/
|
|
510
|
+
markClaimed(request: {
|
|
511
|
+
/** V1 error format. */
|
|
512
|
+
"$.xgafv"?: string;
|
|
513
|
+
/** OAuth access token. */
|
|
514
|
+
access_token?: string;
|
|
515
|
+
/** Data format for response. */
|
|
516
|
+
alt?: string;
|
|
517
|
+
/** JSONP */
|
|
518
|
+
callback?: string;
|
|
519
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
520
|
+
fields?: string;
|
|
521
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
522
|
+
key?: string;
|
|
523
|
+
/** Required. Name of the recommendation. */
|
|
524
|
+
name: string;
|
|
525
|
+
/** OAuth 2.0 token for the current user. */
|
|
526
|
+
oauth_token?: string;
|
|
527
|
+
/** Returns response with indentations and line breaks. */
|
|
528
|
+
prettyPrint?: boolean;
|
|
529
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
530
|
+
quotaUser?: string;
|
|
531
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
532
|
+
upload_protocol?: string;
|
|
533
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
534
|
+
uploadType?: string;
|
|
535
|
+
/** Request body */
|
|
536
|
+
resource: GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest;
|
|
537
|
+
}): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
538
|
+
markClaimed(request: {
|
|
539
|
+
/** V1 error format. */
|
|
540
|
+
"$.xgafv"?: string;
|
|
541
|
+
/** OAuth access token. */
|
|
542
|
+
access_token?: string;
|
|
543
|
+
/** Data format for response. */
|
|
544
|
+
alt?: string;
|
|
545
|
+
/** JSONP */
|
|
546
|
+
callback?: string;
|
|
547
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
548
|
+
fields?: string;
|
|
549
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
550
|
+
key?: string;
|
|
551
|
+
/** Required. Name of the recommendation. */
|
|
552
|
+
name: string;
|
|
553
|
+
/** OAuth 2.0 token for the current user. */
|
|
554
|
+
oauth_token?: string;
|
|
555
|
+
/** Returns response with indentations and line breaks. */
|
|
556
|
+
prettyPrint?: boolean;
|
|
557
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
558
|
+
quotaUser?: string;
|
|
559
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
560
|
+
upload_protocol?: string;
|
|
561
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
562
|
+
uploadType?: string;
|
|
563
|
+
},
|
|
564
|
+
body: GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
565
|
+
/**
|
|
566
|
+
* Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation
|
|
567
|
+
* failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to
|
|
568
|
+
* recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
|
|
569
|
+
*/
|
|
570
|
+
markFailed(request: {
|
|
571
|
+
/** V1 error format. */
|
|
572
|
+
"$.xgafv"?: string;
|
|
573
|
+
/** OAuth access token. */
|
|
574
|
+
access_token?: string;
|
|
575
|
+
/** Data format for response. */
|
|
576
|
+
alt?: string;
|
|
577
|
+
/** JSONP */
|
|
578
|
+
callback?: string;
|
|
579
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
580
|
+
fields?: string;
|
|
581
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
582
|
+
key?: string;
|
|
583
|
+
/** Required. Name of the recommendation. */
|
|
584
|
+
name: string;
|
|
585
|
+
/** OAuth 2.0 token for the current user. */
|
|
586
|
+
oauth_token?: string;
|
|
587
|
+
/** Returns response with indentations and line breaks. */
|
|
588
|
+
prettyPrint?: boolean;
|
|
589
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
590
|
+
quotaUser?: string;
|
|
591
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
592
|
+
upload_protocol?: string;
|
|
593
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
594
|
+
uploadType?: string;
|
|
595
|
+
/** Request body */
|
|
596
|
+
resource: GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest;
|
|
597
|
+
}): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
598
|
+
markFailed(request: {
|
|
599
|
+
/** V1 error format. */
|
|
600
|
+
"$.xgafv"?: string;
|
|
601
|
+
/** OAuth access token. */
|
|
602
|
+
access_token?: string;
|
|
603
|
+
/** Data format for response. */
|
|
604
|
+
alt?: string;
|
|
605
|
+
/** JSONP */
|
|
606
|
+
callback?: string;
|
|
607
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
608
|
+
fields?: string;
|
|
609
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
610
|
+
key?: string;
|
|
611
|
+
/** Required. Name of the recommendation. */
|
|
612
|
+
name: string;
|
|
613
|
+
/** OAuth 2.0 token for the current user. */
|
|
614
|
+
oauth_token?: string;
|
|
615
|
+
/** Returns response with indentations and line breaks. */
|
|
616
|
+
prettyPrint?: boolean;
|
|
617
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
618
|
+
quotaUser?: string;
|
|
619
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
620
|
+
upload_protocol?: string;
|
|
621
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
622
|
+
uploadType?: string;
|
|
623
|
+
},
|
|
624
|
+
body: GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
625
|
+
/**
|
|
626
|
+
* Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was
|
|
627
|
+
* successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to
|
|
628
|
+
* recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
|
|
629
|
+
*/
|
|
630
|
+
markSucceeded(request: {
|
|
631
|
+
/** V1 error format. */
|
|
632
|
+
"$.xgafv"?: string;
|
|
633
|
+
/** OAuth access token. */
|
|
634
|
+
access_token?: string;
|
|
635
|
+
/** Data format for response. */
|
|
636
|
+
alt?: string;
|
|
637
|
+
/** JSONP */
|
|
638
|
+
callback?: string;
|
|
639
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
640
|
+
fields?: string;
|
|
641
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
642
|
+
key?: string;
|
|
643
|
+
/** Required. Name of the recommendation. */
|
|
644
|
+
name: string;
|
|
645
|
+
/** OAuth 2.0 token for the current user. */
|
|
646
|
+
oauth_token?: string;
|
|
647
|
+
/** Returns response with indentations and line breaks. */
|
|
648
|
+
prettyPrint?: boolean;
|
|
649
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
650
|
+
quotaUser?: string;
|
|
651
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
652
|
+
upload_protocol?: string;
|
|
653
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
654
|
+
uploadType?: string;
|
|
655
|
+
/** Request body */
|
|
656
|
+
resource: GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest;
|
|
657
|
+
}): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
658
|
+
markSucceeded(request: {
|
|
659
|
+
/** V1 error format. */
|
|
660
|
+
"$.xgafv"?: string;
|
|
661
|
+
/** OAuth access token. */
|
|
662
|
+
access_token?: string;
|
|
663
|
+
/** Data format for response. */
|
|
664
|
+
alt?: string;
|
|
665
|
+
/** JSONP */
|
|
666
|
+
callback?: string;
|
|
667
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
668
|
+
fields?: string;
|
|
669
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
670
|
+
key?: string;
|
|
671
|
+
/** Required. Name of the recommendation. */
|
|
672
|
+
name: string;
|
|
673
|
+
/** OAuth 2.0 token for the current user. */
|
|
674
|
+
oauth_token?: string;
|
|
675
|
+
/** Returns response with indentations and line breaks. */
|
|
676
|
+
prettyPrint?: boolean;
|
|
677
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
678
|
+
quotaUser?: string;
|
|
679
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
680
|
+
upload_protocol?: string;
|
|
681
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
682
|
+
uploadType?: string;
|
|
683
|
+
},
|
|
684
|
+
body: GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
685
|
+
}
|
|
686
|
+
interface RecommendersResource {
|
|
687
|
+
recommendations: RecommendationsResource;
|
|
688
|
+
}
|
|
689
|
+
interface LocationsResource {
|
|
690
|
+
insightTypes: InsightTypesResource;
|
|
691
|
+
recommenders: RecommendersResource;
|
|
692
|
+
}
|
|
693
|
+
interface BillingAccountsResource {
|
|
694
|
+
locations: LocationsResource;
|
|
695
|
+
}
|
|
696
|
+
interface InsightsResource {
|
|
697
|
+
/** Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type. */
|
|
698
|
+
get(request?: {
|
|
699
|
+
/** V1 error format. */
|
|
700
|
+
"$.xgafv"?: string;
|
|
701
|
+
/** OAuth access token. */
|
|
702
|
+
access_token?: string;
|
|
703
|
+
/** Data format for response. */
|
|
704
|
+
alt?: string;
|
|
705
|
+
/** JSONP */
|
|
706
|
+
callback?: string;
|
|
707
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
708
|
+
fields?: string;
|
|
709
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
710
|
+
key?: string;
|
|
711
|
+
/** Required. Name of the insight. */
|
|
712
|
+
name: string;
|
|
713
|
+
/** OAuth 2.0 token for the current user. */
|
|
714
|
+
oauth_token?: string;
|
|
715
|
+
/** Returns response with indentations and line breaks. */
|
|
716
|
+
prettyPrint?: boolean;
|
|
717
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
718
|
+
quotaUser?: string;
|
|
719
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
720
|
+
upload_protocol?: string;
|
|
721
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
722
|
+
uploadType?: string;
|
|
723
|
+
}): Request<GoogleCloudRecommenderV1beta1Insight>;
|
|
724
|
+
/** Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type. */
|
|
725
|
+
list(request?: {
|
|
726
|
+
/** V1 error format. */
|
|
727
|
+
"$.xgafv"?: string;
|
|
728
|
+
/** OAuth access token. */
|
|
729
|
+
access_token?: string;
|
|
730
|
+
/** Data format for response. */
|
|
731
|
+
alt?: string;
|
|
732
|
+
/** JSONP */
|
|
733
|
+
callback?: string;
|
|
734
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
735
|
+
fields?: string;
|
|
736
|
+
/**
|
|
737
|
+
* Optional. Filter expression to restrict the insights returned. Supported filter fields: * `stateInfo.state` * `insightSubtype` * `severity` Examples: * `stateInfo.state = ACTIVE
|
|
738
|
+
* OR stateInfo.state = DISMISSED` * `insightSubtype = PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR
|
|
739
|
+
* severity = HIGH)` (These expressions are based on the filter language described at https://google.aip.dev/160)
|
|
740
|
+
*/
|
|
741
|
+
filter?: string;
|
|
742
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
743
|
+
key?: string;
|
|
744
|
+
/** OAuth 2.0 token for the current user. */
|
|
745
|
+
oauth_token?: string;
|
|
746
|
+
/**
|
|
747
|
+
* Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to
|
|
748
|
+
* return.
|
|
749
|
+
*/
|
|
750
|
+
pageSize?: number;
|
|
751
|
+
/**
|
|
752
|
+
* Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response.
|
|
753
|
+
* The values of other method parameters must be identical to those in the previous call.
|
|
754
|
+
*/
|
|
755
|
+
pageToken?: string;
|
|
756
|
+
/**
|
|
757
|
+
* Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *
|
|
758
|
+
* `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *
|
|
759
|
+
* `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here
|
|
760
|
+
* refers to GCP Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to supported insight types:
|
|
761
|
+
* https://cloud.google.com/recommender/docs/insights/insight-types.
|
|
762
|
+
*/
|
|
763
|
+
parent: string;
|
|
764
|
+
/** Returns response with indentations and line breaks. */
|
|
765
|
+
prettyPrint?: boolean;
|
|
766
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
767
|
+
quotaUser?: string;
|
|
768
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
769
|
+
upload_protocol?: string;
|
|
770
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
771
|
+
uploadType?: string;
|
|
772
|
+
}): Request<GoogleCloudRecommenderV1beta1ListInsightsResponse>;
|
|
773
|
+
/**
|
|
774
|
+
* Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight
|
|
775
|
+
* content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.
|
|
776
|
+
*/
|
|
777
|
+
markAccepted(request: {
|
|
778
|
+
/** V1 error format. */
|
|
779
|
+
"$.xgafv"?: string;
|
|
780
|
+
/** OAuth access token. */
|
|
781
|
+
access_token?: string;
|
|
782
|
+
/** Data format for response. */
|
|
783
|
+
alt?: string;
|
|
784
|
+
/** JSONP */
|
|
785
|
+
callback?: string;
|
|
786
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
787
|
+
fields?: string;
|
|
788
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
789
|
+
key?: string;
|
|
790
|
+
/** Required. Name of the insight. */
|
|
791
|
+
name: string;
|
|
792
|
+
/** OAuth 2.0 token for the current user. */
|
|
793
|
+
oauth_token?: string;
|
|
794
|
+
/** Returns response with indentations and line breaks. */
|
|
795
|
+
prettyPrint?: boolean;
|
|
796
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
797
|
+
quotaUser?: string;
|
|
798
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
799
|
+
upload_protocol?: string;
|
|
800
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
801
|
+
uploadType?: string;
|
|
802
|
+
/** Request body */
|
|
803
|
+
resource: GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest;
|
|
804
|
+
}): Request<GoogleCloudRecommenderV1beta1Insight>;
|
|
805
|
+
markAccepted(request: {
|
|
806
|
+
/** V1 error format. */
|
|
807
|
+
"$.xgafv"?: string;
|
|
808
|
+
/** OAuth access token. */
|
|
809
|
+
access_token?: string;
|
|
810
|
+
/** Data format for response. */
|
|
811
|
+
alt?: string;
|
|
812
|
+
/** JSONP */
|
|
813
|
+
callback?: string;
|
|
814
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
815
|
+
fields?: string;
|
|
816
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
817
|
+
key?: string;
|
|
818
|
+
/** Required. Name of the insight. */
|
|
819
|
+
name: string;
|
|
820
|
+
/** OAuth 2.0 token for the current user. */
|
|
821
|
+
oauth_token?: string;
|
|
822
|
+
/** Returns response with indentations and line breaks. */
|
|
823
|
+
prettyPrint?: boolean;
|
|
824
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
825
|
+
quotaUser?: string;
|
|
826
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
827
|
+
upload_protocol?: string;
|
|
828
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
829
|
+
uploadType?: string;
|
|
830
|
+
},
|
|
831
|
+
body: GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest): Request<GoogleCloudRecommenderV1beta1Insight>;
|
|
832
|
+
}
|
|
833
|
+
interface InsightTypesResource {
|
|
834
|
+
insights: InsightsResource;
|
|
835
|
+
}
|
|
836
|
+
interface RecommendationsResource {
|
|
837
|
+
/** Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender. */
|
|
838
|
+
get(request?: {
|
|
839
|
+
/** V1 error format. */
|
|
840
|
+
"$.xgafv"?: string;
|
|
841
|
+
/** OAuth access token. */
|
|
842
|
+
access_token?: string;
|
|
843
|
+
/** Data format for response. */
|
|
844
|
+
alt?: string;
|
|
845
|
+
/** JSONP */
|
|
846
|
+
callback?: string;
|
|
847
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
848
|
+
fields?: string;
|
|
849
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
850
|
+
key?: string;
|
|
851
|
+
/** Required. Name of the recommendation. */
|
|
852
|
+
name: string;
|
|
853
|
+
/** OAuth 2.0 token for the current user. */
|
|
854
|
+
oauth_token?: string;
|
|
855
|
+
/** Returns response with indentations and line breaks. */
|
|
856
|
+
prettyPrint?: boolean;
|
|
857
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
858
|
+
quotaUser?: string;
|
|
859
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
860
|
+
upload_protocol?: string;
|
|
861
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
862
|
+
uploadType?: string;
|
|
863
|
+
}): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
864
|
+
/** Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender. */
|
|
865
|
+
list(request?: {
|
|
866
|
+
/** V1 error format. */
|
|
867
|
+
"$.xgafv"?: string;
|
|
868
|
+
/** OAuth access token. */
|
|
869
|
+
access_token?: string;
|
|
870
|
+
/** Data format for response. */
|
|
871
|
+
alt?: string;
|
|
872
|
+
/** JSONP */
|
|
873
|
+
callback?: string;
|
|
874
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
875
|
+
fields?: string;
|
|
876
|
+
/**
|
|
877
|
+
* Filter expression to restrict the recommendations returned. Supported filter fields: * `state_info.state` * `recommenderSubtype` * `priority` Examples: * `stateInfo.state =
|
|
878
|
+
* ACTIVE OR stateInfo.state = DISMISSED` * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` * `priority = P1 OR priority = P2` * `stateInfo.state = ACTIVE
|
|
879
|
+
* AND (priority = P1 OR priority = P2)` (These expressions are based on the filter language described at https://google.aip.dev/160)
|
|
880
|
+
*/
|
|
881
|
+
filter?: string;
|
|
882
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
883
|
+
key?: string;
|
|
884
|
+
/** OAuth 2.0 token for the current user. */
|
|
885
|
+
oauth_token?: string;
|
|
886
|
+
/**
|
|
887
|
+
* Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to
|
|
888
|
+
* return.
|
|
889
|
+
*/
|
|
890
|
+
pageSize?: number;
|
|
891
|
+
/**
|
|
892
|
+
* Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response.
|
|
893
|
+
* The values of other method parameters must be identical to those in the previous call.
|
|
894
|
+
*/
|
|
895
|
+
pageToken?: string;
|
|
896
|
+
/**
|
|
897
|
+
* Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *
|
|
898
|
+
* `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *
|
|
899
|
+
* `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here
|
|
900
|
+
* refers to GCP Locations: https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https://cloud.google.com/recommender/docs/recommenders.
|
|
901
|
+
*/
|
|
902
|
+
parent: string;
|
|
903
|
+
/** Returns response with indentations and line breaks. */
|
|
904
|
+
prettyPrint?: boolean;
|
|
905
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
906
|
+
quotaUser?: string;
|
|
907
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
908
|
+
upload_protocol?: string;
|
|
909
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
910
|
+
uploadType?: string;
|
|
911
|
+
}): Request<GoogleCloudRecommenderV1beta1ListRecommendationsResponse>;
|
|
912
|
+
/**
|
|
913
|
+
* Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the
|
|
914
|
+
* recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED or
|
|
915
|
+
* ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
|
|
916
|
+
*/
|
|
917
|
+
markClaimed(request: {
|
|
918
|
+
/** V1 error format. */
|
|
919
|
+
"$.xgafv"?: string;
|
|
920
|
+
/** OAuth access token. */
|
|
921
|
+
access_token?: string;
|
|
922
|
+
/** Data format for response. */
|
|
923
|
+
alt?: string;
|
|
924
|
+
/** JSONP */
|
|
925
|
+
callback?: string;
|
|
926
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
927
|
+
fields?: string;
|
|
928
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
929
|
+
key?: string;
|
|
930
|
+
/** Required. Name of the recommendation. */
|
|
931
|
+
name: string;
|
|
932
|
+
/** OAuth 2.0 token for the current user. */
|
|
933
|
+
oauth_token?: string;
|
|
934
|
+
/** Returns response with indentations and line breaks. */
|
|
935
|
+
prettyPrint?: boolean;
|
|
936
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
937
|
+
quotaUser?: string;
|
|
938
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
939
|
+
upload_protocol?: string;
|
|
940
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
941
|
+
uploadType?: string;
|
|
942
|
+
/** Request body */
|
|
943
|
+
resource: GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest;
|
|
944
|
+
}): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
945
|
+
markClaimed(request: {
|
|
946
|
+
/** V1 error format. */
|
|
947
|
+
"$.xgafv"?: string;
|
|
948
|
+
/** OAuth access token. */
|
|
949
|
+
access_token?: string;
|
|
950
|
+
/** Data format for response. */
|
|
951
|
+
alt?: string;
|
|
952
|
+
/** JSONP */
|
|
953
|
+
callback?: string;
|
|
954
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
955
|
+
fields?: string;
|
|
956
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
957
|
+
key?: string;
|
|
958
|
+
/** Required. Name of the recommendation. */
|
|
959
|
+
name: string;
|
|
960
|
+
/** OAuth 2.0 token for the current user. */
|
|
961
|
+
oauth_token?: string;
|
|
962
|
+
/** Returns response with indentations and line breaks. */
|
|
963
|
+
prettyPrint?: boolean;
|
|
964
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
965
|
+
quotaUser?: string;
|
|
966
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
967
|
+
upload_protocol?: string;
|
|
968
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
969
|
+
uploadType?: string;
|
|
970
|
+
},
|
|
971
|
+
body: GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
972
|
+
/**
|
|
973
|
+
* Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation
|
|
974
|
+
* failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to
|
|
975
|
+
* recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
|
|
976
|
+
*/
|
|
977
|
+
markFailed(request: {
|
|
978
|
+
/** V1 error format. */
|
|
979
|
+
"$.xgafv"?: string;
|
|
980
|
+
/** OAuth access token. */
|
|
981
|
+
access_token?: string;
|
|
982
|
+
/** Data format for response. */
|
|
983
|
+
alt?: string;
|
|
984
|
+
/** JSONP */
|
|
985
|
+
callback?: string;
|
|
986
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
987
|
+
fields?: string;
|
|
988
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
989
|
+
key?: string;
|
|
990
|
+
/** Required. Name of the recommendation. */
|
|
991
|
+
name: string;
|
|
992
|
+
/** OAuth 2.0 token for the current user. */
|
|
993
|
+
oauth_token?: string;
|
|
994
|
+
/** Returns response with indentations and line breaks. */
|
|
995
|
+
prettyPrint?: boolean;
|
|
996
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
997
|
+
quotaUser?: string;
|
|
998
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
999
|
+
upload_protocol?: string;
|
|
1000
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1001
|
+
uploadType?: string;
|
|
1002
|
+
/** Request body */
|
|
1003
|
+
resource: GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest;
|
|
1004
|
+
}): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
1005
|
+
markFailed(request: {
|
|
1006
|
+
/** V1 error format. */
|
|
1007
|
+
"$.xgafv"?: string;
|
|
1008
|
+
/** OAuth access token. */
|
|
1009
|
+
access_token?: string;
|
|
1010
|
+
/** Data format for response. */
|
|
1011
|
+
alt?: string;
|
|
1012
|
+
/** JSONP */
|
|
1013
|
+
callback?: string;
|
|
1014
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1015
|
+
fields?: string;
|
|
1016
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1017
|
+
key?: string;
|
|
1018
|
+
/** Required. Name of the recommendation. */
|
|
1019
|
+
name: string;
|
|
1020
|
+
/** OAuth 2.0 token for the current user. */
|
|
1021
|
+
oauth_token?: string;
|
|
1022
|
+
/** Returns response with indentations and line breaks. */
|
|
1023
|
+
prettyPrint?: boolean;
|
|
1024
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1025
|
+
quotaUser?: string;
|
|
1026
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1027
|
+
upload_protocol?: string;
|
|
1028
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1029
|
+
uploadType?: string;
|
|
1030
|
+
},
|
|
1031
|
+
body: GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
1032
|
+
/**
|
|
1033
|
+
* Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was
|
|
1034
|
+
* successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to
|
|
1035
|
+
* recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
|
|
1036
|
+
*/
|
|
1037
|
+
markSucceeded(request: {
|
|
1038
|
+
/** V1 error format. */
|
|
1039
|
+
"$.xgafv"?: string;
|
|
1040
|
+
/** OAuth access token. */
|
|
1041
|
+
access_token?: string;
|
|
1042
|
+
/** Data format for response. */
|
|
1043
|
+
alt?: string;
|
|
1044
|
+
/** JSONP */
|
|
1045
|
+
callback?: string;
|
|
1046
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1047
|
+
fields?: string;
|
|
1048
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1049
|
+
key?: string;
|
|
1050
|
+
/** Required. Name of the recommendation. */
|
|
1051
|
+
name: string;
|
|
1052
|
+
/** OAuth 2.0 token for the current user. */
|
|
1053
|
+
oauth_token?: string;
|
|
1054
|
+
/** Returns response with indentations and line breaks. */
|
|
1055
|
+
prettyPrint?: boolean;
|
|
1056
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1057
|
+
quotaUser?: string;
|
|
1058
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1059
|
+
upload_protocol?: string;
|
|
1060
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1061
|
+
uploadType?: string;
|
|
1062
|
+
/** Request body */
|
|
1063
|
+
resource: GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest;
|
|
1064
|
+
}): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
1065
|
+
markSucceeded(request: {
|
|
1066
|
+
/** V1 error format. */
|
|
1067
|
+
"$.xgafv"?: string;
|
|
1068
|
+
/** OAuth access token. */
|
|
1069
|
+
access_token?: string;
|
|
1070
|
+
/** Data format for response. */
|
|
1071
|
+
alt?: string;
|
|
1072
|
+
/** JSONP */
|
|
1073
|
+
callback?: string;
|
|
1074
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1075
|
+
fields?: string;
|
|
1076
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1077
|
+
key?: string;
|
|
1078
|
+
/** Required. Name of the recommendation. */
|
|
1079
|
+
name: string;
|
|
1080
|
+
/** OAuth 2.0 token for the current user. */
|
|
1081
|
+
oauth_token?: string;
|
|
1082
|
+
/** Returns response with indentations and line breaks. */
|
|
1083
|
+
prettyPrint?: boolean;
|
|
1084
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1085
|
+
quotaUser?: string;
|
|
1086
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1087
|
+
upload_protocol?: string;
|
|
1088
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1089
|
+
uploadType?: string;
|
|
1090
|
+
},
|
|
1091
|
+
body: GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
1092
|
+
}
|
|
1093
|
+
interface RecommendersResource {
|
|
1094
|
+
recommendations: RecommendationsResource;
|
|
1095
|
+
}
|
|
1096
|
+
interface LocationsResource {
|
|
1097
|
+
insightTypes: InsightTypesResource;
|
|
1098
|
+
recommenders: RecommendersResource;
|
|
1099
|
+
}
|
|
1100
|
+
interface FoldersResource {
|
|
1101
|
+
locations: LocationsResource;
|
|
1102
|
+
}
|
|
1103
|
+
interface InsightsResource {
|
|
1104
|
+
/** Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type. */
|
|
1105
|
+
get(request?: {
|
|
1106
|
+
/** V1 error format. */
|
|
1107
|
+
"$.xgafv"?: string;
|
|
1108
|
+
/** OAuth access token. */
|
|
1109
|
+
access_token?: string;
|
|
1110
|
+
/** Data format for response. */
|
|
1111
|
+
alt?: string;
|
|
1112
|
+
/** JSONP */
|
|
1113
|
+
callback?: string;
|
|
1114
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1115
|
+
fields?: string;
|
|
1116
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1117
|
+
key?: string;
|
|
1118
|
+
/** Required. Name of the insight. */
|
|
1119
|
+
name: string;
|
|
1120
|
+
/** OAuth 2.0 token for the current user. */
|
|
1121
|
+
oauth_token?: string;
|
|
1122
|
+
/** Returns response with indentations and line breaks. */
|
|
1123
|
+
prettyPrint?: boolean;
|
|
1124
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1125
|
+
quotaUser?: string;
|
|
1126
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1127
|
+
upload_protocol?: string;
|
|
1128
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1129
|
+
uploadType?: string;
|
|
1130
|
+
}): Request<GoogleCloudRecommenderV1beta1Insight>;
|
|
1131
|
+
/** Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type. */
|
|
1132
|
+
list(request?: {
|
|
1133
|
+
/** V1 error format. */
|
|
1134
|
+
"$.xgafv"?: string;
|
|
1135
|
+
/** OAuth access token. */
|
|
1136
|
+
access_token?: string;
|
|
1137
|
+
/** Data format for response. */
|
|
1138
|
+
alt?: string;
|
|
1139
|
+
/** JSONP */
|
|
1140
|
+
callback?: string;
|
|
1141
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1142
|
+
fields?: string;
|
|
1143
|
+
/**
|
|
1144
|
+
* Optional. Filter expression to restrict the insights returned. Supported filter fields: * `stateInfo.state` * `insightSubtype` * `severity` Examples: * `stateInfo.state = ACTIVE
|
|
1145
|
+
* OR stateInfo.state = DISMISSED` * `insightSubtype = PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR
|
|
1146
|
+
* severity = HIGH)` (These expressions are based on the filter language described at https://google.aip.dev/160)
|
|
1147
|
+
*/
|
|
1148
|
+
filter?: string;
|
|
1149
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1150
|
+
key?: string;
|
|
1151
|
+
/** OAuth 2.0 token for the current user. */
|
|
1152
|
+
oauth_token?: string;
|
|
1153
|
+
/**
|
|
1154
|
+
* Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to
|
|
1155
|
+
* return.
|
|
1156
|
+
*/
|
|
1157
|
+
pageSize?: number;
|
|
1158
|
+
/**
|
|
1159
|
+
* Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response.
|
|
1160
|
+
* The values of other method parameters must be identical to those in the previous call.
|
|
1161
|
+
*/
|
|
1162
|
+
pageToken?: string;
|
|
1163
|
+
/**
|
|
1164
|
+
* Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *
|
|
1165
|
+
* `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *
|
|
1166
|
+
* `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here
|
|
1167
|
+
* refers to GCP Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to supported insight types:
|
|
1168
|
+
* https://cloud.google.com/recommender/docs/insights/insight-types.
|
|
1169
|
+
*/
|
|
1170
|
+
parent: string;
|
|
1171
|
+
/** Returns response with indentations and line breaks. */
|
|
1172
|
+
prettyPrint?: boolean;
|
|
1173
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1174
|
+
quotaUser?: string;
|
|
1175
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1176
|
+
upload_protocol?: string;
|
|
1177
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1178
|
+
uploadType?: string;
|
|
1179
|
+
}): Request<GoogleCloudRecommenderV1beta1ListInsightsResponse>;
|
|
1180
|
+
/**
|
|
1181
|
+
* Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight
|
|
1182
|
+
* content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.
|
|
1183
|
+
*/
|
|
1184
|
+
markAccepted(request: {
|
|
1185
|
+
/** V1 error format. */
|
|
1186
|
+
"$.xgafv"?: string;
|
|
1187
|
+
/** OAuth access token. */
|
|
1188
|
+
access_token?: string;
|
|
1189
|
+
/** Data format for response. */
|
|
1190
|
+
alt?: string;
|
|
1191
|
+
/** JSONP */
|
|
1192
|
+
callback?: string;
|
|
1193
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1194
|
+
fields?: string;
|
|
1195
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1196
|
+
key?: string;
|
|
1197
|
+
/** Required. Name of the insight. */
|
|
1198
|
+
name: string;
|
|
1199
|
+
/** OAuth 2.0 token for the current user. */
|
|
1200
|
+
oauth_token?: string;
|
|
1201
|
+
/** Returns response with indentations and line breaks. */
|
|
1202
|
+
prettyPrint?: boolean;
|
|
1203
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1204
|
+
quotaUser?: string;
|
|
1205
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1206
|
+
upload_protocol?: string;
|
|
1207
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1208
|
+
uploadType?: string;
|
|
1209
|
+
/** Request body */
|
|
1210
|
+
resource: GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest;
|
|
1211
|
+
}): Request<GoogleCloudRecommenderV1beta1Insight>;
|
|
1212
|
+
markAccepted(request: {
|
|
1213
|
+
/** V1 error format. */
|
|
1214
|
+
"$.xgafv"?: string;
|
|
1215
|
+
/** OAuth access token. */
|
|
1216
|
+
access_token?: string;
|
|
1217
|
+
/** Data format for response. */
|
|
1218
|
+
alt?: string;
|
|
1219
|
+
/** JSONP */
|
|
1220
|
+
callback?: string;
|
|
1221
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1222
|
+
fields?: string;
|
|
1223
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1224
|
+
key?: string;
|
|
1225
|
+
/** Required. Name of the insight. */
|
|
1226
|
+
name: string;
|
|
1227
|
+
/** OAuth 2.0 token for the current user. */
|
|
1228
|
+
oauth_token?: string;
|
|
1229
|
+
/** Returns response with indentations and line breaks. */
|
|
1230
|
+
prettyPrint?: boolean;
|
|
1231
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1232
|
+
quotaUser?: string;
|
|
1233
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1234
|
+
upload_protocol?: string;
|
|
1235
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1236
|
+
uploadType?: string;
|
|
1237
|
+
},
|
|
1238
|
+
body: GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest): Request<GoogleCloudRecommenderV1beta1Insight>;
|
|
1239
|
+
}
|
|
1240
|
+
interface InsightTypesResource {
|
|
1241
|
+
/** Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType. */
|
|
1242
|
+
getConfig(request?: {
|
|
1243
|
+
/** V1 error format. */
|
|
1244
|
+
"$.xgafv"?: string;
|
|
1245
|
+
/** OAuth access token. */
|
|
1246
|
+
access_token?: string;
|
|
1247
|
+
/** Data format for response. */
|
|
1248
|
+
alt?: string;
|
|
1249
|
+
/** JSONP */
|
|
1250
|
+
callback?: string;
|
|
1251
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1252
|
+
fields?: string;
|
|
1253
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1254
|
+
key?: string;
|
|
1255
|
+
/**
|
|
1256
|
+
* Required. Name of the InsightTypeConfig to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` *
|
|
1257
|
+
* `projects/[PROJECT_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config`
|
|
1258
|
+
*/
|
|
1259
|
+
name: string;
|
|
1260
|
+
/** OAuth 2.0 token for the current user. */
|
|
1261
|
+
oauth_token?: string;
|
|
1262
|
+
/** Returns response with indentations and line breaks. */
|
|
1263
|
+
prettyPrint?: boolean;
|
|
1264
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1265
|
+
quotaUser?: string;
|
|
1266
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1267
|
+
upload_protocol?: string;
|
|
1268
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1269
|
+
uploadType?: string;
|
|
1270
|
+
}): Request<GoogleCloudRecommenderV1beta1InsightTypeConfig>;
|
|
1271
|
+
/** Updates an InsightTypeConfig change. This will create a new revision of the config. */
|
|
1272
|
+
updateConfig(request: {
|
|
1273
|
+
/** V1 error format. */
|
|
1274
|
+
"$.xgafv"?: string;
|
|
1275
|
+
/** OAuth access token. */
|
|
1276
|
+
access_token?: string;
|
|
1277
|
+
/** Data format for response. */
|
|
1278
|
+
alt?: string;
|
|
1279
|
+
/** JSONP */
|
|
1280
|
+
callback?: string;
|
|
1281
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1282
|
+
fields?: string;
|
|
1283
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1284
|
+
key?: string;
|
|
1285
|
+
/** Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config */
|
|
1286
|
+
name: string;
|
|
1287
|
+
/** OAuth 2.0 token for the current user. */
|
|
1288
|
+
oauth_token?: string;
|
|
1289
|
+
/** Returns response with indentations and line breaks. */
|
|
1290
|
+
prettyPrint?: boolean;
|
|
1291
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1292
|
+
quotaUser?: string;
|
|
1293
|
+
/** The list of fields to be updated. */
|
|
1294
|
+
updateMask?: string;
|
|
1295
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1296
|
+
upload_protocol?: string;
|
|
1297
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1298
|
+
uploadType?: string;
|
|
1299
|
+
/** If true, validate the request and preview the change, but do not actually update it. */
|
|
1300
|
+
validateOnly?: boolean;
|
|
1301
|
+
/** Request body */
|
|
1302
|
+
resource: GoogleCloudRecommenderV1beta1InsightTypeConfig;
|
|
1303
|
+
}): Request<GoogleCloudRecommenderV1beta1InsightTypeConfig>;
|
|
1304
|
+
updateConfig(request: {
|
|
1305
|
+
/** V1 error format. */
|
|
1306
|
+
"$.xgafv"?: string;
|
|
1307
|
+
/** OAuth access token. */
|
|
1308
|
+
access_token?: string;
|
|
1309
|
+
/** Data format for response. */
|
|
1310
|
+
alt?: string;
|
|
1311
|
+
/** JSONP */
|
|
1312
|
+
callback?: string;
|
|
1313
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1314
|
+
fields?: string;
|
|
1315
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1316
|
+
key?: string;
|
|
1317
|
+
/** Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config */
|
|
1318
|
+
name: string;
|
|
1319
|
+
/** OAuth 2.0 token for the current user. */
|
|
1320
|
+
oauth_token?: string;
|
|
1321
|
+
/** Returns response with indentations and line breaks. */
|
|
1322
|
+
prettyPrint?: boolean;
|
|
1323
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1324
|
+
quotaUser?: string;
|
|
1325
|
+
/** The list of fields to be updated. */
|
|
1326
|
+
updateMask?: string;
|
|
1327
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1328
|
+
upload_protocol?: string;
|
|
1329
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1330
|
+
uploadType?: string;
|
|
1331
|
+
/** If true, validate the request and preview the change, but do not actually update it. */
|
|
1332
|
+
validateOnly?: boolean;
|
|
1333
|
+
},
|
|
1334
|
+
body: GoogleCloudRecommenderV1beta1InsightTypeConfig): Request<GoogleCloudRecommenderV1beta1InsightTypeConfig>;
|
|
1335
|
+
insights: InsightsResource;
|
|
1336
|
+
}
|
|
1337
|
+
interface RecommendationsResource {
|
|
1338
|
+
/** Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender. */
|
|
1339
|
+
get(request?: {
|
|
1340
|
+
/** V1 error format. */
|
|
1341
|
+
"$.xgafv"?: string;
|
|
1342
|
+
/** OAuth access token. */
|
|
1343
|
+
access_token?: string;
|
|
1344
|
+
/** Data format for response. */
|
|
1345
|
+
alt?: string;
|
|
1346
|
+
/** JSONP */
|
|
1347
|
+
callback?: string;
|
|
1348
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1349
|
+
fields?: string;
|
|
1350
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1351
|
+
key?: string;
|
|
1352
|
+
/** Required. Name of the recommendation. */
|
|
1353
|
+
name: string;
|
|
1354
|
+
/** OAuth 2.0 token for the current user. */
|
|
1355
|
+
oauth_token?: string;
|
|
1356
|
+
/** Returns response with indentations and line breaks. */
|
|
1357
|
+
prettyPrint?: boolean;
|
|
1358
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1359
|
+
quotaUser?: string;
|
|
1360
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1361
|
+
upload_protocol?: string;
|
|
1362
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1363
|
+
uploadType?: string;
|
|
1364
|
+
}): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
1365
|
+
/** Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender. */
|
|
1366
|
+
list(request?: {
|
|
1367
|
+
/** V1 error format. */
|
|
1368
|
+
"$.xgafv"?: string;
|
|
1369
|
+
/** OAuth access token. */
|
|
1370
|
+
access_token?: string;
|
|
1371
|
+
/** Data format for response. */
|
|
1372
|
+
alt?: string;
|
|
1373
|
+
/** JSONP */
|
|
1374
|
+
callback?: string;
|
|
1375
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1376
|
+
fields?: string;
|
|
1377
|
+
/**
|
|
1378
|
+
* Filter expression to restrict the recommendations returned. Supported filter fields: * `state_info.state` * `recommenderSubtype` * `priority` Examples: * `stateInfo.state =
|
|
1379
|
+
* ACTIVE OR stateInfo.state = DISMISSED` * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` * `priority = P1 OR priority = P2` * `stateInfo.state = ACTIVE
|
|
1380
|
+
* AND (priority = P1 OR priority = P2)` (These expressions are based on the filter language described at https://google.aip.dev/160)
|
|
1381
|
+
*/
|
|
1382
|
+
filter?: string;
|
|
1383
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1384
|
+
key?: string;
|
|
1385
|
+
/** OAuth 2.0 token for the current user. */
|
|
1386
|
+
oauth_token?: string;
|
|
1387
|
+
/**
|
|
1388
|
+
* Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to
|
|
1389
|
+
* return.
|
|
1390
|
+
*/
|
|
1391
|
+
pageSize?: number;
|
|
1392
|
+
/**
|
|
1393
|
+
* Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response.
|
|
1394
|
+
* The values of other method parameters must be identical to those in the previous call.
|
|
1395
|
+
*/
|
|
1396
|
+
pageToken?: string;
|
|
1397
|
+
/**
|
|
1398
|
+
* Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *
|
|
1399
|
+
* `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *
|
|
1400
|
+
* `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here
|
|
1401
|
+
* refers to GCP Locations: https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https://cloud.google.com/recommender/docs/recommenders.
|
|
1402
|
+
*/
|
|
1403
|
+
parent: string;
|
|
1404
|
+
/** Returns response with indentations and line breaks. */
|
|
1405
|
+
prettyPrint?: boolean;
|
|
1406
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1407
|
+
quotaUser?: string;
|
|
1408
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1409
|
+
upload_protocol?: string;
|
|
1410
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1411
|
+
uploadType?: string;
|
|
1412
|
+
}): Request<GoogleCloudRecommenderV1beta1ListRecommendationsResponse>;
|
|
1413
|
+
/**
|
|
1414
|
+
* Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the
|
|
1415
|
+
* recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED or
|
|
1416
|
+
* ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
|
|
1417
|
+
*/
|
|
1418
|
+
markClaimed(request: {
|
|
1419
|
+
/** V1 error format. */
|
|
1420
|
+
"$.xgafv"?: string;
|
|
1421
|
+
/** OAuth access token. */
|
|
1422
|
+
access_token?: string;
|
|
1423
|
+
/** Data format for response. */
|
|
1424
|
+
alt?: string;
|
|
1425
|
+
/** JSONP */
|
|
1426
|
+
callback?: string;
|
|
1427
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1428
|
+
fields?: string;
|
|
1429
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1430
|
+
key?: string;
|
|
1431
|
+
/** Required. Name of the recommendation. */
|
|
1432
|
+
name: string;
|
|
1433
|
+
/** OAuth 2.0 token for the current user. */
|
|
1434
|
+
oauth_token?: string;
|
|
1435
|
+
/** Returns response with indentations and line breaks. */
|
|
1436
|
+
prettyPrint?: boolean;
|
|
1437
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1438
|
+
quotaUser?: string;
|
|
1439
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1440
|
+
upload_protocol?: string;
|
|
1441
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1442
|
+
uploadType?: string;
|
|
1443
|
+
/** Request body */
|
|
1444
|
+
resource: GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest;
|
|
1445
|
+
}): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
1446
|
+
markClaimed(request: {
|
|
1447
|
+
/** V1 error format. */
|
|
1448
|
+
"$.xgafv"?: string;
|
|
1449
|
+
/** OAuth access token. */
|
|
1450
|
+
access_token?: string;
|
|
1451
|
+
/** Data format for response. */
|
|
1452
|
+
alt?: string;
|
|
1453
|
+
/** JSONP */
|
|
1454
|
+
callback?: string;
|
|
1455
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1456
|
+
fields?: string;
|
|
1457
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1458
|
+
key?: string;
|
|
1459
|
+
/** Required. Name of the recommendation. */
|
|
1460
|
+
name: string;
|
|
1461
|
+
/** OAuth 2.0 token for the current user. */
|
|
1462
|
+
oauth_token?: string;
|
|
1463
|
+
/** Returns response with indentations and line breaks. */
|
|
1464
|
+
prettyPrint?: boolean;
|
|
1465
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1466
|
+
quotaUser?: string;
|
|
1467
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1468
|
+
upload_protocol?: string;
|
|
1469
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1470
|
+
uploadType?: string;
|
|
1471
|
+
},
|
|
1472
|
+
body: GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
1473
|
+
/**
|
|
1474
|
+
* Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation
|
|
1475
|
+
* failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to
|
|
1476
|
+
* recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
|
|
1477
|
+
*/
|
|
1478
|
+
markFailed(request: {
|
|
1479
|
+
/** V1 error format. */
|
|
1480
|
+
"$.xgafv"?: string;
|
|
1481
|
+
/** OAuth access token. */
|
|
1482
|
+
access_token?: string;
|
|
1483
|
+
/** Data format for response. */
|
|
1484
|
+
alt?: string;
|
|
1485
|
+
/** JSONP */
|
|
1486
|
+
callback?: string;
|
|
1487
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1488
|
+
fields?: string;
|
|
1489
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1490
|
+
key?: string;
|
|
1491
|
+
/** Required. Name of the recommendation. */
|
|
1492
|
+
name: string;
|
|
1493
|
+
/** OAuth 2.0 token for the current user. */
|
|
1494
|
+
oauth_token?: string;
|
|
1495
|
+
/** Returns response with indentations and line breaks. */
|
|
1496
|
+
prettyPrint?: boolean;
|
|
1497
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1498
|
+
quotaUser?: string;
|
|
1499
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1500
|
+
upload_protocol?: string;
|
|
1501
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1502
|
+
uploadType?: string;
|
|
1503
|
+
/** Request body */
|
|
1504
|
+
resource: GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest;
|
|
1505
|
+
}): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
1506
|
+
markFailed(request: {
|
|
1507
|
+
/** V1 error format. */
|
|
1508
|
+
"$.xgafv"?: string;
|
|
1509
|
+
/** OAuth access token. */
|
|
1510
|
+
access_token?: string;
|
|
1511
|
+
/** Data format for response. */
|
|
1512
|
+
alt?: string;
|
|
1513
|
+
/** JSONP */
|
|
1514
|
+
callback?: string;
|
|
1515
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1516
|
+
fields?: string;
|
|
1517
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1518
|
+
key?: string;
|
|
1519
|
+
/** Required. Name of the recommendation. */
|
|
1520
|
+
name: string;
|
|
1521
|
+
/** OAuth 2.0 token for the current user. */
|
|
1522
|
+
oauth_token?: string;
|
|
1523
|
+
/** Returns response with indentations and line breaks. */
|
|
1524
|
+
prettyPrint?: boolean;
|
|
1525
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1526
|
+
quotaUser?: string;
|
|
1527
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1528
|
+
upload_protocol?: string;
|
|
1529
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1530
|
+
uploadType?: string;
|
|
1531
|
+
},
|
|
1532
|
+
body: GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
1533
|
+
/**
|
|
1534
|
+
* Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was
|
|
1535
|
+
* successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to
|
|
1536
|
+
* recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
|
|
1537
|
+
*/
|
|
1538
|
+
markSucceeded(request: {
|
|
1539
|
+
/** V1 error format. */
|
|
1540
|
+
"$.xgafv"?: string;
|
|
1541
|
+
/** OAuth access token. */
|
|
1542
|
+
access_token?: string;
|
|
1543
|
+
/** Data format for response. */
|
|
1544
|
+
alt?: string;
|
|
1545
|
+
/** JSONP */
|
|
1546
|
+
callback?: string;
|
|
1547
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1548
|
+
fields?: string;
|
|
1549
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1550
|
+
key?: string;
|
|
1551
|
+
/** Required. Name of the recommendation. */
|
|
1552
|
+
name: string;
|
|
1553
|
+
/** OAuth 2.0 token for the current user. */
|
|
1554
|
+
oauth_token?: string;
|
|
1555
|
+
/** Returns response with indentations and line breaks. */
|
|
1556
|
+
prettyPrint?: boolean;
|
|
1557
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1558
|
+
quotaUser?: string;
|
|
1559
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1560
|
+
upload_protocol?: string;
|
|
1561
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1562
|
+
uploadType?: string;
|
|
1563
|
+
/** Request body */
|
|
1564
|
+
resource: GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest;
|
|
1565
|
+
}): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
1566
|
+
markSucceeded(request: {
|
|
1567
|
+
/** V1 error format. */
|
|
1568
|
+
"$.xgafv"?: string;
|
|
1569
|
+
/** OAuth access token. */
|
|
1570
|
+
access_token?: string;
|
|
1571
|
+
/** Data format for response. */
|
|
1572
|
+
alt?: string;
|
|
1573
|
+
/** JSONP */
|
|
1574
|
+
callback?: string;
|
|
1575
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1576
|
+
fields?: string;
|
|
1577
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1578
|
+
key?: string;
|
|
1579
|
+
/** Required. Name of the recommendation. */
|
|
1580
|
+
name: string;
|
|
1581
|
+
/** OAuth 2.0 token for the current user. */
|
|
1582
|
+
oauth_token?: string;
|
|
1583
|
+
/** Returns response with indentations and line breaks. */
|
|
1584
|
+
prettyPrint?: boolean;
|
|
1585
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1586
|
+
quotaUser?: string;
|
|
1587
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1588
|
+
upload_protocol?: string;
|
|
1589
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1590
|
+
uploadType?: string;
|
|
1591
|
+
},
|
|
1592
|
+
body: GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
1593
|
+
}
|
|
1594
|
+
interface RecommendersResource {
|
|
1595
|
+
/** Gets the requested Recommender Config. There is only one instance of the config for each Recommender. */
|
|
1596
|
+
getConfig(request?: {
|
|
1597
|
+
/** V1 error format. */
|
|
1598
|
+
"$.xgafv"?: string;
|
|
1599
|
+
/** OAuth access token. */
|
|
1600
|
+
access_token?: string;
|
|
1601
|
+
/** Data format for response. */
|
|
1602
|
+
alt?: string;
|
|
1603
|
+
/** JSONP */
|
|
1604
|
+
callback?: string;
|
|
1605
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1606
|
+
fields?: string;
|
|
1607
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1608
|
+
key?: string;
|
|
1609
|
+
/**
|
|
1610
|
+
* Required. Name of the Recommendation Config to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *
|
|
1611
|
+
* `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`
|
|
1612
|
+
*/
|
|
1613
|
+
name: string;
|
|
1614
|
+
/** OAuth 2.0 token for the current user. */
|
|
1615
|
+
oauth_token?: string;
|
|
1616
|
+
/** Returns response with indentations and line breaks. */
|
|
1617
|
+
prettyPrint?: boolean;
|
|
1618
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1619
|
+
quotaUser?: string;
|
|
1620
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1621
|
+
upload_protocol?: string;
|
|
1622
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1623
|
+
uploadType?: string;
|
|
1624
|
+
}): Request<GoogleCloudRecommenderV1beta1RecommenderConfig>;
|
|
1625
|
+
/** Updates a Recommender Config. This will create a new revision of the config. */
|
|
1626
|
+
updateConfig(request: {
|
|
1627
|
+
/** V1 error format. */
|
|
1628
|
+
"$.xgafv"?: string;
|
|
1629
|
+
/** OAuth access token. */
|
|
1630
|
+
access_token?: string;
|
|
1631
|
+
/** Data format for response. */
|
|
1632
|
+
alt?: string;
|
|
1633
|
+
/** JSONP */
|
|
1634
|
+
callback?: string;
|
|
1635
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1636
|
+
fields?: string;
|
|
1637
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1638
|
+
key?: string;
|
|
1639
|
+
/** Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config */
|
|
1640
|
+
name: string;
|
|
1641
|
+
/** OAuth 2.0 token for the current user. */
|
|
1642
|
+
oauth_token?: string;
|
|
1643
|
+
/** Returns response with indentations and line breaks. */
|
|
1644
|
+
prettyPrint?: boolean;
|
|
1645
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1646
|
+
quotaUser?: string;
|
|
1647
|
+
/** The list of fields to be updated. */
|
|
1648
|
+
updateMask?: string;
|
|
1649
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1650
|
+
upload_protocol?: string;
|
|
1651
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1652
|
+
uploadType?: string;
|
|
1653
|
+
/** If true, validate the request and preview the change, but do not actually update it. */
|
|
1654
|
+
validateOnly?: boolean;
|
|
1655
|
+
/** Request body */
|
|
1656
|
+
resource: GoogleCloudRecommenderV1beta1RecommenderConfig;
|
|
1657
|
+
}): Request<GoogleCloudRecommenderV1beta1RecommenderConfig>;
|
|
1658
|
+
updateConfig(request: {
|
|
1659
|
+
/** V1 error format. */
|
|
1660
|
+
"$.xgafv"?: string;
|
|
1661
|
+
/** OAuth access token. */
|
|
1662
|
+
access_token?: string;
|
|
1663
|
+
/** Data format for response. */
|
|
1664
|
+
alt?: string;
|
|
1665
|
+
/** JSONP */
|
|
1666
|
+
callback?: string;
|
|
1667
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1668
|
+
fields?: string;
|
|
1669
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1670
|
+
key?: string;
|
|
1671
|
+
/** Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config */
|
|
1672
|
+
name: string;
|
|
1673
|
+
/** OAuth 2.0 token for the current user. */
|
|
1674
|
+
oauth_token?: string;
|
|
1675
|
+
/** Returns response with indentations and line breaks. */
|
|
1676
|
+
prettyPrint?: boolean;
|
|
1677
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1678
|
+
quotaUser?: string;
|
|
1679
|
+
/** The list of fields to be updated. */
|
|
1680
|
+
updateMask?: string;
|
|
1681
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1682
|
+
upload_protocol?: string;
|
|
1683
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1684
|
+
uploadType?: string;
|
|
1685
|
+
/** If true, validate the request and preview the change, but do not actually update it. */
|
|
1686
|
+
validateOnly?: boolean;
|
|
1687
|
+
},
|
|
1688
|
+
body: GoogleCloudRecommenderV1beta1RecommenderConfig): Request<GoogleCloudRecommenderV1beta1RecommenderConfig>;
|
|
1689
|
+
recommendations: RecommendationsResource;
|
|
1690
|
+
}
|
|
1691
|
+
interface LocationsResource {
|
|
1692
|
+
insightTypes: InsightTypesResource;
|
|
1693
|
+
recommenders: RecommendersResource;
|
|
1694
|
+
}
|
|
1695
|
+
interface OrganizationsResource {
|
|
1696
|
+
locations: LocationsResource;
|
|
1697
|
+
}
|
|
1698
|
+
interface InsightsResource {
|
|
1699
|
+
/** Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type. */
|
|
1700
|
+
get(request?: {
|
|
1701
|
+
/** V1 error format. */
|
|
1702
|
+
"$.xgafv"?: string;
|
|
1703
|
+
/** OAuth access token. */
|
|
1704
|
+
access_token?: string;
|
|
1705
|
+
/** Data format for response. */
|
|
1706
|
+
alt?: string;
|
|
1707
|
+
/** JSONP */
|
|
1708
|
+
callback?: string;
|
|
1709
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1710
|
+
fields?: string;
|
|
1711
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1712
|
+
key?: string;
|
|
1713
|
+
/** Required. Name of the insight. */
|
|
1714
|
+
name: string;
|
|
1715
|
+
/** OAuth 2.0 token for the current user. */
|
|
1716
|
+
oauth_token?: string;
|
|
1717
|
+
/** Returns response with indentations and line breaks. */
|
|
1718
|
+
prettyPrint?: boolean;
|
|
1719
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1720
|
+
quotaUser?: string;
|
|
1721
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1722
|
+
upload_protocol?: string;
|
|
1723
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1724
|
+
uploadType?: string;
|
|
1725
|
+
}): Request<GoogleCloudRecommenderV1beta1Insight>;
|
|
1726
|
+
/** Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type. */
|
|
1727
|
+
list(request?: {
|
|
1728
|
+
/** V1 error format. */
|
|
1729
|
+
"$.xgafv"?: string;
|
|
1730
|
+
/** OAuth access token. */
|
|
1731
|
+
access_token?: string;
|
|
1732
|
+
/** Data format for response. */
|
|
1733
|
+
alt?: string;
|
|
1734
|
+
/** JSONP */
|
|
1735
|
+
callback?: string;
|
|
1736
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1737
|
+
fields?: string;
|
|
1738
|
+
/**
|
|
1739
|
+
* Optional. Filter expression to restrict the insights returned. Supported filter fields: * `stateInfo.state` * `insightSubtype` * `severity` Examples: * `stateInfo.state = ACTIVE
|
|
1740
|
+
* OR stateInfo.state = DISMISSED` * `insightSubtype = PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR
|
|
1741
|
+
* severity = HIGH)` (These expressions are based on the filter language described at https://google.aip.dev/160)
|
|
1742
|
+
*/
|
|
1743
|
+
filter?: string;
|
|
1744
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1745
|
+
key?: string;
|
|
1746
|
+
/** OAuth 2.0 token for the current user. */
|
|
1747
|
+
oauth_token?: string;
|
|
1748
|
+
/**
|
|
1749
|
+
* Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to
|
|
1750
|
+
* return.
|
|
1751
|
+
*/
|
|
1752
|
+
pageSize?: number;
|
|
1753
|
+
/**
|
|
1754
|
+
* Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response.
|
|
1755
|
+
* The values of other method parameters must be identical to those in the previous call.
|
|
1756
|
+
*/
|
|
1757
|
+
pageToken?: string;
|
|
1758
|
+
/**
|
|
1759
|
+
* Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *
|
|
1760
|
+
* `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *
|
|
1761
|
+
* `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here
|
|
1762
|
+
* refers to GCP Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to supported insight types:
|
|
1763
|
+
* https://cloud.google.com/recommender/docs/insights/insight-types.
|
|
1764
|
+
*/
|
|
1765
|
+
parent: string;
|
|
1766
|
+
/** Returns response with indentations and line breaks. */
|
|
1767
|
+
prettyPrint?: boolean;
|
|
1768
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1769
|
+
quotaUser?: string;
|
|
1770
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1771
|
+
upload_protocol?: string;
|
|
1772
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1773
|
+
uploadType?: string;
|
|
1774
|
+
}): Request<GoogleCloudRecommenderV1beta1ListInsightsResponse>;
|
|
1775
|
+
/**
|
|
1776
|
+
* Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight
|
|
1777
|
+
* content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.
|
|
1778
|
+
*/
|
|
1779
|
+
markAccepted(request: {
|
|
1780
|
+
/** V1 error format. */
|
|
1781
|
+
"$.xgafv"?: string;
|
|
1782
|
+
/** OAuth access token. */
|
|
1783
|
+
access_token?: string;
|
|
1784
|
+
/** Data format for response. */
|
|
1785
|
+
alt?: string;
|
|
1786
|
+
/** JSONP */
|
|
1787
|
+
callback?: string;
|
|
1788
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1789
|
+
fields?: string;
|
|
1790
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1791
|
+
key?: string;
|
|
1792
|
+
/** Required. Name of the insight. */
|
|
1793
|
+
name: string;
|
|
1794
|
+
/** OAuth 2.0 token for the current user. */
|
|
1795
|
+
oauth_token?: string;
|
|
1796
|
+
/** Returns response with indentations and line breaks. */
|
|
1797
|
+
prettyPrint?: boolean;
|
|
1798
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1799
|
+
quotaUser?: string;
|
|
1800
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1801
|
+
upload_protocol?: string;
|
|
1802
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1803
|
+
uploadType?: string;
|
|
1804
|
+
/** Request body */
|
|
1805
|
+
resource: GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest;
|
|
1806
|
+
}): Request<GoogleCloudRecommenderV1beta1Insight>;
|
|
1807
|
+
markAccepted(request: {
|
|
1808
|
+
/** V1 error format. */
|
|
1809
|
+
"$.xgafv"?: string;
|
|
1810
|
+
/** OAuth access token. */
|
|
1811
|
+
access_token?: string;
|
|
1812
|
+
/** Data format for response. */
|
|
1813
|
+
alt?: string;
|
|
1814
|
+
/** JSONP */
|
|
1815
|
+
callback?: string;
|
|
1816
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1817
|
+
fields?: string;
|
|
1818
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1819
|
+
key?: string;
|
|
1820
|
+
/** Required. Name of the insight. */
|
|
1821
|
+
name: string;
|
|
1822
|
+
/** OAuth 2.0 token for the current user. */
|
|
1823
|
+
oauth_token?: string;
|
|
1824
|
+
/** Returns response with indentations and line breaks. */
|
|
1825
|
+
prettyPrint?: boolean;
|
|
1826
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1827
|
+
quotaUser?: string;
|
|
1828
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1829
|
+
upload_protocol?: string;
|
|
1830
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1831
|
+
uploadType?: string;
|
|
1832
|
+
},
|
|
1833
|
+
body: GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest): Request<GoogleCloudRecommenderV1beta1Insight>;
|
|
1834
|
+
}
|
|
1835
|
+
interface InsightTypesResource {
|
|
1836
|
+
/** Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType. */
|
|
1837
|
+
getConfig(request?: {
|
|
1838
|
+
/** V1 error format. */
|
|
1839
|
+
"$.xgafv"?: string;
|
|
1840
|
+
/** OAuth access token. */
|
|
1841
|
+
access_token?: string;
|
|
1842
|
+
/** Data format for response. */
|
|
1843
|
+
alt?: string;
|
|
1844
|
+
/** JSONP */
|
|
1845
|
+
callback?: string;
|
|
1846
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1847
|
+
fields?: string;
|
|
1848
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1849
|
+
key?: string;
|
|
1850
|
+
/**
|
|
1851
|
+
* Required. Name of the InsightTypeConfig to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` *
|
|
1852
|
+
* `projects/[PROJECT_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config`
|
|
1853
|
+
*/
|
|
1854
|
+
name: string;
|
|
1855
|
+
/** OAuth 2.0 token for the current user. */
|
|
1856
|
+
oauth_token?: string;
|
|
1857
|
+
/** Returns response with indentations and line breaks. */
|
|
1858
|
+
prettyPrint?: boolean;
|
|
1859
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1860
|
+
quotaUser?: string;
|
|
1861
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1862
|
+
upload_protocol?: string;
|
|
1863
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1864
|
+
uploadType?: string;
|
|
1865
|
+
}): Request<GoogleCloudRecommenderV1beta1InsightTypeConfig>;
|
|
1866
|
+
/** Updates an InsightTypeConfig change. This will create a new revision of the config. */
|
|
1867
|
+
updateConfig(request: {
|
|
1868
|
+
/** V1 error format. */
|
|
1869
|
+
"$.xgafv"?: string;
|
|
1870
|
+
/** OAuth access token. */
|
|
1871
|
+
access_token?: string;
|
|
1872
|
+
/** Data format for response. */
|
|
1873
|
+
alt?: string;
|
|
1874
|
+
/** JSONP */
|
|
1875
|
+
callback?: string;
|
|
1876
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1877
|
+
fields?: string;
|
|
1878
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1879
|
+
key?: string;
|
|
1880
|
+
/** Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config */
|
|
1881
|
+
name: string;
|
|
1882
|
+
/** OAuth 2.0 token for the current user. */
|
|
1883
|
+
oauth_token?: string;
|
|
1884
|
+
/** Returns response with indentations and line breaks. */
|
|
1885
|
+
prettyPrint?: boolean;
|
|
1886
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1887
|
+
quotaUser?: string;
|
|
1888
|
+
/** The list of fields to be updated. */
|
|
1889
|
+
updateMask?: string;
|
|
1890
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1891
|
+
upload_protocol?: string;
|
|
1892
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1893
|
+
uploadType?: string;
|
|
1894
|
+
/** If true, validate the request and preview the change, but do not actually update it. */
|
|
1895
|
+
validateOnly?: boolean;
|
|
1896
|
+
/** Request body */
|
|
1897
|
+
resource: GoogleCloudRecommenderV1beta1InsightTypeConfig;
|
|
1898
|
+
}): Request<GoogleCloudRecommenderV1beta1InsightTypeConfig>;
|
|
1899
|
+
updateConfig(request: {
|
|
1900
|
+
/** V1 error format. */
|
|
1901
|
+
"$.xgafv"?: string;
|
|
1902
|
+
/** OAuth access token. */
|
|
1903
|
+
access_token?: string;
|
|
1904
|
+
/** Data format for response. */
|
|
1905
|
+
alt?: string;
|
|
1906
|
+
/** JSONP */
|
|
1907
|
+
callback?: string;
|
|
1908
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1909
|
+
fields?: string;
|
|
1910
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1911
|
+
key?: string;
|
|
1912
|
+
/** Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config */
|
|
1913
|
+
name: string;
|
|
1914
|
+
/** OAuth 2.0 token for the current user. */
|
|
1915
|
+
oauth_token?: string;
|
|
1916
|
+
/** Returns response with indentations and line breaks. */
|
|
1917
|
+
prettyPrint?: boolean;
|
|
1918
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1919
|
+
quotaUser?: string;
|
|
1920
|
+
/** The list of fields to be updated. */
|
|
1921
|
+
updateMask?: string;
|
|
1922
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1923
|
+
upload_protocol?: string;
|
|
1924
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1925
|
+
uploadType?: string;
|
|
1926
|
+
/** If true, validate the request and preview the change, but do not actually update it. */
|
|
1927
|
+
validateOnly?: boolean;
|
|
1928
|
+
},
|
|
1929
|
+
body: GoogleCloudRecommenderV1beta1InsightTypeConfig): Request<GoogleCloudRecommenderV1beta1InsightTypeConfig>;
|
|
1930
|
+
insights: InsightsResource;
|
|
1931
|
+
}
|
|
1932
|
+
interface RecommendationsResource {
|
|
1933
|
+
/** Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender. */
|
|
1934
|
+
get(request?: {
|
|
1935
|
+
/** V1 error format. */
|
|
1936
|
+
"$.xgafv"?: string;
|
|
1937
|
+
/** OAuth access token. */
|
|
1938
|
+
access_token?: string;
|
|
1939
|
+
/** Data format for response. */
|
|
1940
|
+
alt?: string;
|
|
1941
|
+
/** JSONP */
|
|
1942
|
+
callback?: string;
|
|
1943
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1944
|
+
fields?: string;
|
|
1945
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1946
|
+
key?: string;
|
|
1947
|
+
/** Required. Name of the recommendation. */
|
|
1948
|
+
name: string;
|
|
1949
|
+
/** OAuth 2.0 token for the current user. */
|
|
1950
|
+
oauth_token?: string;
|
|
1951
|
+
/** Returns response with indentations and line breaks. */
|
|
1952
|
+
prettyPrint?: boolean;
|
|
1953
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1954
|
+
quotaUser?: string;
|
|
1955
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1956
|
+
upload_protocol?: string;
|
|
1957
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1958
|
+
uploadType?: string;
|
|
1959
|
+
}): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
1960
|
+
/** Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender. */
|
|
1961
|
+
list(request?: {
|
|
1962
|
+
/** V1 error format. */
|
|
1963
|
+
"$.xgafv"?: string;
|
|
1964
|
+
/** OAuth access token. */
|
|
1965
|
+
access_token?: string;
|
|
1966
|
+
/** Data format for response. */
|
|
1967
|
+
alt?: string;
|
|
1968
|
+
/** JSONP */
|
|
1969
|
+
callback?: string;
|
|
1970
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1971
|
+
fields?: string;
|
|
1972
|
+
/**
|
|
1973
|
+
* Filter expression to restrict the recommendations returned. Supported filter fields: * `state_info.state` * `recommenderSubtype` * `priority` Examples: * `stateInfo.state =
|
|
1974
|
+
* ACTIVE OR stateInfo.state = DISMISSED` * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` * `priority = P1 OR priority = P2` * `stateInfo.state = ACTIVE
|
|
1975
|
+
* AND (priority = P1 OR priority = P2)` (These expressions are based on the filter language described at https://google.aip.dev/160)
|
|
1976
|
+
*/
|
|
1977
|
+
filter?: string;
|
|
1978
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1979
|
+
key?: string;
|
|
1980
|
+
/** OAuth 2.0 token for the current user. */
|
|
1981
|
+
oauth_token?: string;
|
|
1982
|
+
/**
|
|
1983
|
+
* Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to
|
|
1984
|
+
* return.
|
|
1985
|
+
*/
|
|
1986
|
+
pageSize?: number;
|
|
1987
|
+
/**
|
|
1988
|
+
* Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response.
|
|
1989
|
+
* The values of other method parameters must be identical to those in the previous call.
|
|
1990
|
+
*/
|
|
1991
|
+
pageToken?: string;
|
|
1992
|
+
/**
|
|
1993
|
+
* Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *
|
|
1994
|
+
* `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *
|
|
1995
|
+
* `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here
|
|
1996
|
+
* refers to GCP Locations: https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https://cloud.google.com/recommender/docs/recommenders.
|
|
1997
|
+
*/
|
|
1998
|
+
parent: string;
|
|
1999
|
+
/** Returns response with indentations and line breaks. */
|
|
2000
|
+
prettyPrint?: boolean;
|
|
2001
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2002
|
+
quotaUser?: string;
|
|
2003
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2004
|
+
upload_protocol?: string;
|
|
2005
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2006
|
+
uploadType?: string;
|
|
2007
|
+
}): Request<GoogleCloudRecommenderV1beta1ListRecommendationsResponse>;
|
|
2008
|
+
/**
|
|
2009
|
+
* Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the
|
|
2010
|
+
* recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED or
|
|
2011
|
+
* ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
|
|
2012
|
+
*/
|
|
2013
|
+
markClaimed(request: {
|
|
2014
|
+
/** V1 error format. */
|
|
2015
|
+
"$.xgafv"?: string;
|
|
2016
|
+
/** OAuth access token. */
|
|
2017
|
+
access_token?: string;
|
|
2018
|
+
/** Data format for response. */
|
|
2019
|
+
alt?: string;
|
|
2020
|
+
/** JSONP */
|
|
2021
|
+
callback?: string;
|
|
2022
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2023
|
+
fields?: string;
|
|
2024
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2025
|
+
key?: string;
|
|
2026
|
+
/** Required. Name of the recommendation. */
|
|
2027
|
+
name: string;
|
|
2028
|
+
/** OAuth 2.0 token for the current user. */
|
|
2029
|
+
oauth_token?: string;
|
|
2030
|
+
/** Returns response with indentations and line breaks. */
|
|
2031
|
+
prettyPrint?: boolean;
|
|
2032
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2033
|
+
quotaUser?: string;
|
|
2034
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2035
|
+
upload_protocol?: string;
|
|
2036
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2037
|
+
uploadType?: string;
|
|
2038
|
+
/** Request body */
|
|
2039
|
+
resource: GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest;
|
|
2040
|
+
}): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
2041
|
+
markClaimed(request: {
|
|
2042
|
+
/** V1 error format. */
|
|
2043
|
+
"$.xgafv"?: string;
|
|
2044
|
+
/** OAuth access token. */
|
|
2045
|
+
access_token?: string;
|
|
2046
|
+
/** Data format for response. */
|
|
2047
|
+
alt?: string;
|
|
2048
|
+
/** JSONP */
|
|
2049
|
+
callback?: string;
|
|
2050
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2051
|
+
fields?: string;
|
|
2052
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2053
|
+
key?: string;
|
|
2054
|
+
/** Required. Name of the recommendation. */
|
|
2055
|
+
name: string;
|
|
2056
|
+
/** OAuth 2.0 token for the current user. */
|
|
2057
|
+
oauth_token?: string;
|
|
2058
|
+
/** Returns response with indentations and line breaks. */
|
|
2059
|
+
prettyPrint?: boolean;
|
|
2060
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2061
|
+
quotaUser?: string;
|
|
2062
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2063
|
+
upload_protocol?: string;
|
|
2064
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2065
|
+
uploadType?: string;
|
|
2066
|
+
},
|
|
2067
|
+
body: GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
2068
|
+
/**
|
|
2069
|
+
* Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation
|
|
2070
|
+
* failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to
|
|
2071
|
+
* recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
|
|
2072
|
+
*/
|
|
2073
|
+
markFailed(request: {
|
|
2074
|
+
/** V1 error format. */
|
|
2075
|
+
"$.xgafv"?: string;
|
|
2076
|
+
/** OAuth access token. */
|
|
2077
|
+
access_token?: string;
|
|
2078
|
+
/** Data format for response. */
|
|
2079
|
+
alt?: string;
|
|
2080
|
+
/** JSONP */
|
|
2081
|
+
callback?: string;
|
|
2082
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2083
|
+
fields?: string;
|
|
2084
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2085
|
+
key?: string;
|
|
2086
|
+
/** Required. Name of the recommendation. */
|
|
2087
|
+
name: string;
|
|
2088
|
+
/** OAuth 2.0 token for the current user. */
|
|
2089
|
+
oauth_token?: string;
|
|
2090
|
+
/** Returns response with indentations and line breaks. */
|
|
2091
|
+
prettyPrint?: boolean;
|
|
2092
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2093
|
+
quotaUser?: string;
|
|
2094
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2095
|
+
upload_protocol?: string;
|
|
2096
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2097
|
+
uploadType?: string;
|
|
2098
|
+
/** Request body */
|
|
2099
|
+
resource: GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest;
|
|
2100
|
+
}): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
2101
|
+
markFailed(request: {
|
|
2102
|
+
/** V1 error format. */
|
|
2103
|
+
"$.xgafv"?: string;
|
|
2104
|
+
/** OAuth access token. */
|
|
2105
|
+
access_token?: string;
|
|
2106
|
+
/** Data format for response. */
|
|
2107
|
+
alt?: string;
|
|
2108
|
+
/** JSONP */
|
|
2109
|
+
callback?: string;
|
|
2110
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2111
|
+
fields?: string;
|
|
2112
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2113
|
+
key?: string;
|
|
2114
|
+
/** Required. Name of the recommendation. */
|
|
2115
|
+
name: string;
|
|
2116
|
+
/** OAuth 2.0 token for the current user. */
|
|
2117
|
+
oauth_token?: string;
|
|
2118
|
+
/** Returns response with indentations and line breaks. */
|
|
2119
|
+
prettyPrint?: boolean;
|
|
2120
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2121
|
+
quotaUser?: string;
|
|
2122
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2123
|
+
upload_protocol?: string;
|
|
2124
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2125
|
+
uploadType?: string;
|
|
2126
|
+
},
|
|
2127
|
+
body: GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
2128
|
+
/**
|
|
2129
|
+
* Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was
|
|
2130
|
+
* successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to
|
|
2131
|
+
* recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
|
|
2132
|
+
*/
|
|
2133
|
+
markSucceeded(request: {
|
|
2134
|
+
/** V1 error format. */
|
|
2135
|
+
"$.xgafv"?: string;
|
|
2136
|
+
/** OAuth access token. */
|
|
2137
|
+
access_token?: string;
|
|
2138
|
+
/** Data format for response. */
|
|
2139
|
+
alt?: string;
|
|
2140
|
+
/** JSONP */
|
|
2141
|
+
callback?: string;
|
|
2142
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2143
|
+
fields?: string;
|
|
2144
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2145
|
+
key?: string;
|
|
2146
|
+
/** Required. Name of the recommendation. */
|
|
2147
|
+
name: string;
|
|
2148
|
+
/** OAuth 2.0 token for the current user. */
|
|
2149
|
+
oauth_token?: string;
|
|
2150
|
+
/** Returns response with indentations and line breaks. */
|
|
2151
|
+
prettyPrint?: boolean;
|
|
2152
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2153
|
+
quotaUser?: string;
|
|
2154
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2155
|
+
upload_protocol?: string;
|
|
2156
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2157
|
+
uploadType?: string;
|
|
2158
|
+
/** Request body */
|
|
2159
|
+
resource: GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest;
|
|
2160
|
+
}): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
2161
|
+
markSucceeded(request: {
|
|
2162
|
+
/** V1 error format. */
|
|
2163
|
+
"$.xgafv"?: string;
|
|
2164
|
+
/** OAuth access token. */
|
|
2165
|
+
access_token?: string;
|
|
2166
|
+
/** Data format for response. */
|
|
2167
|
+
alt?: string;
|
|
2168
|
+
/** JSONP */
|
|
2169
|
+
callback?: string;
|
|
2170
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2171
|
+
fields?: string;
|
|
2172
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2173
|
+
key?: string;
|
|
2174
|
+
/** Required. Name of the recommendation. */
|
|
2175
|
+
name: string;
|
|
2176
|
+
/** OAuth 2.0 token for the current user. */
|
|
2177
|
+
oauth_token?: string;
|
|
2178
|
+
/** Returns response with indentations and line breaks. */
|
|
2179
|
+
prettyPrint?: boolean;
|
|
2180
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2181
|
+
quotaUser?: string;
|
|
2182
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2183
|
+
upload_protocol?: string;
|
|
2184
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2185
|
+
uploadType?: string;
|
|
2186
|
+
},
|
|
2187
|
+
body: GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest): Request<GoogleCloudRecommenderV1beta1Recommendation>;
|
|
2188
|
+
}
|
|
2189
|
+
interface RecommendersResource {
|
|
2190
|
+
/** Gets the requested Recommender Config. There is only one instance of the config for each Recommender. */
|
|
2191
|
+
getConfig(request?: {
|
|
2192
|
+
/** V1 error format. */
|
|
2193
|
+
"$.xgafv"?: string;
|
|
2194
|
+
/** OAuth access token. */
|
|
2195
|
+
access_token?: string;
|
|
2196
|
+
/** Data format for response. */
|
|
2197
|
+
alt?: string;
|
|
2198
|
+
/** JSONP */
|
|
2199
|
+
callback?: string;
|
|
2200
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2201
|
+
fields?: string;
|
|
2202
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2203
|
+
key?: string;
|
|
2204
|
+
/**
|
|
2205
|
+
* Required. Name of the Recommendation Config to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *
|
|
2206
|
+
* `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`
|
|
2207
|
+
*/
|
|
2208
|
+
name: string;
|
|
2209
|
+
/** OAuth 2.0 token for the current user. */
|
|
2210
|
+
oauth_token?: string;
|
|
2211
|
+
/** Returns response with indentations and line breaks. */
|
|
2212
|
+
prettyPrint?: boolean;
|
|
2213
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2214
|
+
quotaUser?: string;
|
|
2215
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2216
|
+
upload_protocol?: string;
|
|
2217
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2218
|
+
uploadType?: string;
|
|
2219
|
+
}): Request<GoogleCloudRecommenderV1beta1RecommenderConfig>;
|
|
2220
|
+
/** Updates a Recommender Config. This will create a new revision of the config. */
|
|
2221
|
+
updateConfig(request: {
|
|
2222
|
+
/** V1 error format. */
|
|
2223
|
+
"$.xgafv"?: string;
|
|
2224
|
+
/** OAuth access token. */
|
|
2225
|
+
access_token?: string;
|
|
2226
|
+
/** Data format for response. */
|
|
2227
|
+
alt?: string;
|
|
2228
|
+
/** JSONP */
|
|
2229
|
+
callback?: string;
|
|
2230
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2231
|
+
fields?: string;
|
|
2232
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2233
|
+
key?: string;
|
|
2234
|
+
/** Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config */
|
|
2235
|
+
name: string;
|
|
2236
|
+
/** OAuth 2.0 token for the current user. */
|
|
2237
|
+
oauth_token?: string;
|
|
2238
|
+
/** Returns response with indentations and line breaks. */
|
|
2239
|
+
prettyPrint?: boolean;
|
|
2240
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2241
|
+
quotaUser?: string;
|
|
2242
|
+
/** The list of fields to be updated. */
|
|
2243
|
+
updateMask?: string;
|
|
2244
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2245
|
+
upload_protocol?: string;
|
|
2246
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2247
|
+
uploadType?: string;
|
|
2248
|
+
/** If true, validate the request and preview the change, but do not actually update it. */
|
|
2249
|
+
validateOnly?: boolean;
|
|
2250
|
+
/** Request body */
|
|
2251
|
+
resource: GoogleCloudRecommenderV1beta1RecommenderConfig;
|
|
2252
|
+
}): Request<GoogleCloudRecommenderV1beta1RecommenderConfig>;
|
|
2253
|
+
updateConfig(request: {
|
|
2254
|
+
/** V1 error format. */
|
|
2255
|
+
"$.xgafv"?: string;
|
|
2256
|
+
/** OAuth access token. */
|
|
2257
|
+
access_token?: string;
|
|
2258
|
+
/** Data format for response. */
|
|
2259
|
+
alt?: string;
|
|
2260
|
+
/** JSONP */
|
|
2261
|
+
callback?: string;
|
|
2262
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2263
|
+
fields?: string;
|
|
2264
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2265
|
+
key?: string;
|
|
2266
|
+
/** Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config */
|
|
2267
|
+
name: string;
|
|
2268
|
+
/** OAuth 2.0 token for the current user. */
|
|
2269
|
+
oauth_token?: string;
|
|
2270
|
+
/** Returns response with indentations and line breaks. */
|
|
2271
|
+
prettyPrint?: boolean;
|
|
2272
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2273
|
+
quotaUser?: string;
|
|
2274
|
+
/** The list of fields to be updated. */
|
|
2275
|
+
updateMask?: string;
|
|
2276
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2277
|
+
upload_protocol?: string;
|
|
2278
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2279
|
+
uploadType?: string;
|
|
2280
|
+
/** If true, validate the request and preview the change, but do not actually update it. */
|
|
2281
|
+
validateOnly?: boolean;
|
|
2282
|
+
},
|
|
2283
|
+
body: GoogleCloudRecommenderV1beta1RecommenderConfig): Request<GoogleCloudRecommenderV1beta1RecommenderConfig>;
|
|
2284
|
+
recommendations: RecommendationsResource;
|
|
2285
|
+
}
|
|
2286
|
+
interface LocationsResource {
|
|
2287
|
+
insightTypes: InsightTypesResource;
|
|
2288
|
+
recommenders: RecommendersResource;
|
|
2289
|
+
}
|
|
2290
|
+
interface ProjectsResource {
|
|
2291
|
+
locations: LocationsResource;
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
const billingAccounts: BillingAccountsResource;
|
|
2295
|
+
|
|
2296
|
+
const folders: FoldersResource;
|
|
2297
|
+
|
|
2298
|
+
const organizations: OrganizationsResource;
|
|
2299
|
+
|
|
2300
|
+
const projects: ProjectsResource;
|
|
2301
|
+
}
|
|
2302
|
+
}
|