@maxim_mazurok/gapi.client.cloudbilling-v1beta 0.0.20240301 → 0.0.20240315

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 (2) hide show
  1. package/index.d.ts +1 -177
  2. package/package.json +1 -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://cloudbilling.googleapis.com/$discovery/rest?version=v1beta
12
- // Revision: 20240301
12
+ // Revision: 20240315
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -192,52 +192,6 @@ declare namespace gapi.client {
192
192
  /** The point in time, relative to the start of the time frame covered by the cost estimate. */
193
193
  estimationTimeFrameOffset?: string;
194
194
  }
195
- interface GoogleCloudBillingAnomaliesV1betaAnomaly {
196
- /** Time that the anomaly was detected. Will be set to 00:00 google time of the detected date. */
197
- detectionTime?: string;
198
- /** Deviation information of the anomaly. */
199
- deviation?: GoogleCloudBillingAnomaliesV1betaAnomalyDeviation;
200
- /** Identifier. Resource name for the anomaly. */
201
- name?: string;
202
- /** The display name of the resource that the anomaly occurred in/belongs to. */
203
- resourceDisplayName?: string;
204
- /** A list of causes which contribute to the anomaly. */
205
- rootCauses?: GoogleCloudBillingAnomaliesV1betaCause[];
206
- /** Indicate the scope of the anomaly. */
207
- scope?: string;
208
- /** Severity of the anomaly. Unspecified if severity is not met/assigned. */
209
- severity?: string;
210
- /** Output only. The most recent anomaly's last updated time. */
211
- updateTime?: string;
212
- }
213
- interface GoogleCloudBillingAnomaliesV1betaAnomalyDeviation {
214
- /** The actual spend for the anomaly. */
215
- actualSpend?: Money;
216
- /** The difference between the actual spend and expected spend's upper bound. Calculation formula: deviation_amount = actual_spend - expected_spend. */
217
- deviationAmount?: Money;
218
- /** The percentage of devition amount from expected spend's upper bound. Calculation formula: deviation_percentage = divation_amount / expected_spend * 100. */
219
- deviationPercentage?: number;
220
- /** The expected spend for the anomaly. */
221
- expectedSpend?: Money;
222
- }
223
- interface GoogleCloudBillingAnomaliesV1betaCause {
224
- /** The cause type. */
225
- causeType?: string;
226
- /** The deviation information for the cause. */
227
- deviation?: GoogleCloudBillingAnomaliesV1betaAnomalyDeviation;
228
- /** The display name of the cause. */
229
- displayName?: string;
230
- /** The resource name of the cause. project: projects/{project}. service: services/{service}. sku: services/{service}/skus/{sku}. */
231
- resource?: string;
232
- /** The sub causes. */
233
- subCauses?: GoogleCloudBillingAnomaliesV1betaCause[];
234
- }
235
- interface GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse {
236
- /** The returned anomalies. */
237
- anomalies?: GoogleCloudBillingAnomaliesV1betaAnomaly[];
238
- /** Token that can be sent as `page_token` in the subsequent request to retrieve the next page. If this field is empty, there are no subsequent pages. */
239
- nextPageToken?: string;
240
- }
241
195
  interface GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo {
242
196
  /** Interval at which usage is aggregated to compute cost. Example: "MONTHLY" interval indicates that usage is aggregated every month. */
243
197
  interval?: string;
@@ -759,68 +713,6 @@ declare namespace gapi.client {
759
713
  /** Total estimated costs for the workload. */
760
714
  workloadTotalCostEstimate?: CostEstimate;
761
715
  }
762
- interface AnomaliesResource {
763
- /** Gets an anomaly for a billing account or a project. */
764
- get(request?: {
765
- /** V1 error format. */
766
- '$.xgafv'?: string;
767
- /** OAuth access token. */
768
- access_token?: string;
769
- /** Data format for response. */
770
- alt?: string;
771
- /** JSONP */
772
- callback?: string;
773
- /** Selector specifying which fields to include in a partial response. */
774
- fields?: string;
775
- /** 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. */
776
- key?: string;
777
- /** Required. Format for project: projects/{project}/anomalies/{anomalies}. Format for billing account: billingAccounts/{billing_account}/anomalies/{anomalies}. */
778
- name: string;
779
- /** OAuth 2.0 token for the current user. */
780
- oauth_token?: string;
781
- /** Returns response with indentations and line breaks. */
782
- prettyPrint?: boolean;
783
- /** 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. */
784
- quotaUser?: string;
785
- /** Upload protocol for media (e.g. "raw", "multipart"). */
786
- upload_protocol?: string;
787
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
788
- uploadType?: string;
789
- }): Request<GoogleCloudBillingAnomaliesV1betaAnomaly>;
790
- /** Lists anomalies for a billing account or a project. */
791
- list(request?: {
792
- /** V1 error format. */
793
- '$.xgafv'?: string;
794
- /** OAuth access token. */
795
- access_token?: string;
796
- /** Data format for response. */
797
- alt?: string;
798
- /** JSONP */
799
- callback?: string;
800
- /** Selector specifying which fields to include in a partial response. */
801
- fields?: string;
802
- /** Optional. Options for how to filter the anomalies. Currently, only filter on `start_time` and `end_time` is supported. Only =, AND operators are supported. If start_time and/or end_time empty, we only retrieve the most recent 30 days' anomalies. Examples: - start_time = "20231201" AND end_time = "20240120" . */
803
- filter?: string;
804
- /** 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. */
805
- key?: string;
806
- /** OAuth 2.0 token for the current user. */
807
- oauth_token?: string;
808
- /** Optional. Maximum number of anomalies to return. Results may return fewer than this value. Default value is 50 and maximum value is 1000. */
809
- pageSize?: number;
810
- /** Optional. Page token received from a previous ListAnomalies call to retrieve the next page of results. If this field is empty, the first page is returned. */
811
- pageToken?: string;
812
- /** Required. The project to list Anomaly for the project. Format for project: projects/{project}. Format for billing account: billingAccounts/{billing_account}. */
813
- parent: string;
814
- /** Returns response with indentations and line breaks. */
815
- prettyPrint?: boolean;
816
- /** 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. */
817
- quotaUser?: string;
818
- /** Upload protocol for media (e.g. "raw", "multipart"). */
819
- upload_protocol?: string;
820
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
821
- uploadType?: string;
822
- }): Request<GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse>;
823
- }
824
716
  interface ServicesResource {
825
717
  /** Gets a Google Cloud service visible to a billing account. */
826
718
  get(request?: {
@@ -1191,76 +1083,10 @@ declare namespace gapi.client {
1191
1083
  },
1192
1084
  body: EstimateCostScenarioForBillingAccountRequest
1193
1085
  ): Request<EstimateCostScenarioForBillingAccountResponse>;
1194
- anomalies: AnomaliesResource;
1195
1086
  services: ServicesResource;
1196
1087
  skuGroups: SkuGroupsResource;
1197
1088
  skus: SkusResource;
1198
1089
  }
1199
- interface AnomaliesResource {
1200
- /** Gets an anomaly for a billing account or a project. */
1201
- get(request?: {
1202
- /** V1 error format. */
1203
- '$.xgafv'?: string;
1204
- /** OAuth access token. */
1205
- access_token?: string;
1206
- /** Data format for response. */
1207
- alt?: string;
1208
- /** JSONP */
1209
- callback?: string;
1210
- /** Selector specifying which fields to include in a partial response. */
1211
- fields?: string;
1212
- /** 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. */
1213
- key?: string;
1214
- /** Required. Format for project: projects/{project}/anomalies/{anomalies}. Format for billing account: billingAccounts/{billing_account}/anomalies/{anomalies}. */
1215
- name: string;
1216
- /** OAuth 2.0 token for the current user. */
1217
- oauth_token?: string;
1218
- /** Returns response with indentations and line breaks. */
1219
- prettyPrint?: boolean;
1220
- /** 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. */
1221
- quotaUser?: string;
1222
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1223
- upload_protocol?: string;
1224
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1225
- uploadType?: string;
1226
- }): Request<GoogleCloudBillingAnomaliesV1betaAnomaly>;
1227
- /** Lists anomalies for a billing account or a project. */
1228
- list(request?: {
1229
- /** V1 error format. */
1230
- '$.xgafv'?: string;
1231
- /** OAuth access token. */
1232
- access_token?: string;
1233
- /** Data format for response. */
1234
- alt?: string;
1235
- /** JSONP */
1236
- callback?: string;
1237
- /** Selector specifying which fields to include in a partial response. */
1238
- fields?: string;
1239
- /** Optional. Options for how to filter the anomalies. Currently, only filter on `start_time` and `end_time` is supported. Only =, AND operators are supported. If start_time and/or end_time empty, we only retrieve the most recent 30 days' anomalies. Examples: - start_time = "20231201" AND end_time = "20240120" . */
1240
- filter?: string;
1241
- /** 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. */
1242
- key?: string;
1243
- /** OAuth 2.0 token for the current user. */
1244
- oauth_token?: string;
1245
- /** Optional. Maximum number of anomalies to return. Results may return fewer than this value. Default value is 50 and maximum value is 1000. */
1246
- pageSize?: number;
1247
- /** Optional. Page token received from a previous ListAnomalies call to retrieve the next page of results. If this field is empty, the first page is returned. */
1248
- pageToken?: string;
1249
- /** Required. The project to list Anomaly for the project. Format for project: projects/{project}. Format for billing account: billingAccounts/{billing_account}. */
1250
- parent: string;
1251
- /** Returns response with indentations and line breaks. */
1252
- prettyPrint?: boolean;
1253
- /** 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. */
1254
- quotaUser?: string;
1255
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1256
- upload_protocol?: string;
1257
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1258
- uploadType?: string;
1259
- }): Request<GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse>;
1260
- }
1261
- interface ProjectsResource {
1262
- anomalies: AnomaliesResource;
1263
- }
1264
1090
  interface SkusResource {
1265
1091
  /** Gets a publicly listed SKU that is part of a publicly listed SKU group. */
1266
1092
  get(request?: {
@@ -1509,8 +1335,6 @@ declare namespace gapi.client {
1509
1335
 
1510
1336
  const billingAccounts: BillingAccountsResource;
1511
1337
 
1512
- const projects: ProjectsResource;
1513
-
1514
1338
  const skuGroups: SkuGroupsResource;
1515
1339
 
1516
1340
  const skus: SkusResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudbilling-v1beta",
3
- "version": "0.0.20240301",
3
+ "version": "0.0.20240315",
4
4
  "description": "TypeScript typings for Cloud Billing API v1beta",
5
5
  "repository": {
6
6
  "type": "git",