@maxim_mazurok/gapi.client.recommender-v1beta1 0.0.20230521 → 0.0.20230612

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.
Files changed (4) hide show
  1. package/index.d.ts +119 -1
  2. package/package.json +1 -1
  3. package/readme.md +10 -0
  4. package/tests.ts +11 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://recommender.googleapis.com/$discovery/rest?version=v1beta1
12
- // Revision: 20230521
12
+ // Revision: 20230612
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -101,6 +101,11 @@ declare namespace gapi.client {
101
101
  stateMetadata?:
102
102
  { [P in string]: string };
103
103
  }
104
+ interface GoogleCloudRecommenderV1beta1InsightType {
105
+ /** The insight_type’s name in format insightTypes/{insight_type} eg: insightTypes/google.iam.policy.Insight */
106
+ name?:
107
+ string;
108
+ }
104
109
  interface GoogleCloudRecommenderV1beta1InsightTypeConfig {
105
110
  /**
106
111
  * 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
@@ -141,6 +146,14 @@ declare namespace gapi.client {
141
146
  nextPageToken?:
142
147
  string;
143
148
  }
149
+ interface GoogleCloudRecommenderV1beta1ListInsightTypesResponse {
150
+ /** The set of recommenders available */
151
+ insightTypes?:
152
+ GoogleCloudRecommenderV1beta1InsightType[];
153
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
154
+ nextPageToken?:
155
+ string;
156
+ }
144
157
  interface GoogleCloudRecommenderV1beta1ListRecommendationsResponse {
145
158
  /** A token that can be used to request the next page of results. This field is empty if there are no additional results. */
146
159
  nextPageToken?:
@@ -149,6 +162,14 @@ declare namespace gapi.client {
149
162
  recommendations?:
150
163
  GoogleCloudRecommenderV1beta1Recommendation[];
151
164
  }
165
+ interface GoogleCloudRecommenderV1beta1ListRecommendersResponse {
166
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
167
+ nextPageToken?:
168
+ string;
169
+ /** The set of recommenders available */
170
+ recommenders?:
171
+ GoogleCloudRecommenderV1beta1RecommenderType[];
172
+ }
152
173
  interface GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest {
153
174
  /** Required. Fingerprint of the Insight. Provides optimistic locking. */
154
175
  etag?:
@@ -344,6 +365,11 @@ declare namespace gapi.client {
344
365
  params?:
345
366
  { [P in string]: any };
346
367
  }
368
+ interface GoogleCloudRecommenderV1beta1RecommenderType {
369
+ /** The recommender's name in format RecommenderTypes/{recommender_type} eg: recommenderTypes/google.iam.policy.Recommender */
370
+ name?:
371
+ string;
372
+ }
347
373
  interface GoogleCloudRecommenderV1beta1ReliabilityProjection {
348
374
  /** Per-recommender projection. */
349
375
  details?:
@@ -1957,6 +1983,50 @@ declare namespace gapi.client {
1957
1983
  locations:
1958
1984
  LocationsResource;
1959
1985
  }
1986
+ interface InsightTypesResource {
1987
+ /** Lists available InsightTypes. No IAM permissions are required. */
1988
+ list(request?: {
1989
+ /** V1 error format. */
1990
+ "$.xgafv"?:
1991
+ string;
1992
+ /** OAuth access token. */
1993
+ access_token?:
1994
+ string;
1995
+ /** Data format for response. */
1996
+ alt?:
1997
+ string;
1998
+ /** JSONP */
1999
+ callback?:
2000
+ string;
2001
+ /** Selector specifying which fields to include in a partial response. */
2002
+ fields?:
2003
+ string;
2004
+ /** 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. */
2005
+ key?:
2006
+ string;
2007
+ /** OAuth 2.0 token for the current user. */
2008
+ oauth_token?:
2009
+ string;
2010
+ /** Optional. The number of InsightTypes to return per page. The service may return fewer than this value. */
2011
+ pageSize?:
2012
+ number;
2013
+ /** Optional. A page token, received from a previous `ListRecommenders` call. Provide this to retrieve the subsequent page. */
2014
+ pageToken?:
2015
+ string;
2016
+ /** Returns response with indentations and line breaks. */
2017
+ prettyPrint?:
2018
+ boolean;
2019
+ /** 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. */
2020
+ quotaUser?:
2021
+ string;
2022
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2023
+ upload_protocol?:
2024
+ string;
2025
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2026
+ uploadType?:
2027
+ string;
2028
+ }): Request<GoogleCloudRecommenderV1beta1ListInsightTypesResponse>;
2029
+ }
1960
2030
  interface InsightsResource {
1961
2031
  /** Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type. */
1962
2032
  get(request?: {
@@ -3801,13 +3871,61 @@ declare namespace gapi.client {
3801
3871
  locations:
3802
3872
  LocationsResource;
3803
3873
  }
3874
+ interface RecommendersResource {
3875
+ /** Lists all available Recommenders. No IAM permissions are required. */
3876
+ list(request?: {
3877
+ /** V1 error format. */
3878
+ "$.xgafv"?:
3879
+ string;
3880
+ /** OAuth access token. */
3881
+ access_token?:
3882
+ string;
3883
+ /** Data format for response. */
3884
+ alt?:
3885
+ string;
3886
+ /** JSONP */
3887
+ callback?:
3888
+ string;
3889
+ /** Selector specifying which fields to include in a partial response. */
3890
+ fields?:
3891
+ string;
3892
+ /** 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. */
3893
+ key?:
3894
+ string;
3895
+ /** OAuth 2.0 token for the current user. */
3896
+ oauth_token?:
3897
+ string;
3898
+ /** Optional. The number of RecommenderTypes to return per page. The service may return fewer than this value. */
3899
+ pageSize?:
3900
+ number;
3901
+ /** Optional. A page token, received from a previous `ListRecommenders` call. Provide this to retrieve the subsequent page. */
3902
+ pageToken?:
3903
+ string;
3904
+ /** Returns response with indentations and line breaks. */
3905
+ prettyPrint?:
3906
+ boolean;
3907
+ /** 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. */
3908
+ quotaUser?:
3909
+ string;
3910
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3911
+ upload_protocol?:
3912
+ string;
3913
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3914
+ uploadType?:
3915
+ string;
3916
+ }): Request<GoogleCloudRecommenderV1beta1ListRecommendersResponse>;
3917
+ }
3804
3918
 
3805
3919
  const billingAccounts: BillingAccountsResource;
3806
3920
 
3807
3921
  const folders: FoldersResource;
3808
3922
 
3923
+ const insightTypes: InsightTypesResource;
3924
+
3809
3925
  const organizations: OrganizationsResource;
3810
3926
 
3811
3927
  const projects: ProjectsResource;
3928
+
3929
+ const recommenders: RecommendersResource;
3812
3930
  }
3813
3931
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.recommender-v1beta1",
3
- "version": "0.0.20230521",
3
+ "version": "0.0.20230612",
4
4
  "description": "TypeScript typings for Recommender API v1beta1",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -65,4 +65,14 @@ gapi.auth.authorize(
65
65
  After that you can use Recommender API resources: <!-- TODO: make this work for multiple namespaces -->
66
66
 
67
67
  ```typescript
68
+
69
+ /*
70
+ Lists available InsightTypes. No IAM permissions are required.
71
+ */
72
+ await gapi.client.recommender.insightTypes.list({ });
73
+
74
+ /*
75
+ Lists all available Recommenders. No IAM permissions are required.
76
+ */
77
+ await gapi.client.recommender.recommenders.list({ });
68
78
  ```
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230521
6
+ // Revision: 20230612
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -241,6 +241,11 @@ gapi.load('client', async () => {
241
241
  A: "Test string"
242
242
  },
243
243
  });
244
+ /** Lists available InsightTypes. No IAM permissions are required. */
245
+ await gapi.client.recommender.insightTypes.list({
246
+ pageSize: 42,
247
+ pageToken: "Test string",
248
+ });
244
249
  /** Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType. */
245
250
  await gapi.client.recommender.organizations.locations.insightTypes.getConfig({
246
251
  name: "Test string",
@@ -501,5 +506,10 @@ gapi.load('client', async () => {
501
506
  A: "Test string"
502
507
  },
503
508
  });
509
+ /** Lists all available Recommenders. No IAM permissions are required. */
510
+ await gapi.client.recommender.recommenders.list({
511
+ pageSize: 42,
512
+ pageToken: "Test string",
513
+ });
504
514
  }
505
515
  });