Skip to content

Commit

Permalink
feat(cloudbilling): update the api
Browse files Browse the repository at this point in the history
#### cloudbilling:v1beta

The following keys were deleted:
- resources.billingAccounts.resources.anomalies.methods.get (Total Keys: 11)
- resources.billingAccounts.resources.anomalies.methods.list (Total Keys: 18)
- resources.projects.resources.anomalies.methods.get (Total Keys: 11)
- resources.projects.resources.anomalies.methods.list (Total Keys: 18)
- schemas.GoogleCloudBillingAnomaliesV1betaAnomaly (Total Keys: 21)
- schemas.GoogleCloudBillingAnomaliesV1betaCause (Total Keys: 8)
- schemas.GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse (Total Keys: 5)
  • Loading branch information
yoshi-automation committed Mar 19, 2024
1 parent 0c81748 commit 8b2920b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 315 deletions.
5 changes: 0 additions & 5 deletions docs/dyn/cloudbilling_v1beta.billingAccounts.html
Expand Up @@ -74,11 +74,6 @@

<h1><a href="cloudbilling_v1beta.html">Cloud Billing API</a> . <a href="cloudbilling_v1beta.billingAccounts.html">billingAccounts</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="cloudbilling_v1beta.billingAccounts.anomalies.html">anomalies()</a></code>
</p>
<p class="firstline">Returns the anomalies Resource.</p>

<p class="toc_element">
<code><a href="cloudbilling_v1beta.billingAccounts.services.html">services()</a></code>
</p>
Expand Down
5 changes: 0 additions & 5 deletions docs/dyn/cloudbilling_v1beta.html
Expand Up @@ -79,11 +79,6 @@ <h2>Instance Methods</h2>
</p>
<p class="firstline">Returns the billingAccounts Resource.</p>

<p class="toc_element">
<code><a href="cloudbilling_v1beta.projects.html">projects()</a></code>
</p>
<p class="firstline">Returns the projects Resource.</p>

<p class="toc_element">
<code><a href="cloudbilling_v1beta.skuGroups.html">skuGroups()</a></code>
</p>
Expand Down
Expand Up @@ -751,7 +751,7 @@
}
}
},
"revision": "20240301",
"revision": "20240311",
"rootUrl": "https://cloudbilling.googleapis.com/",
"schemas": {
"AggregationInfo": {
Expand Down
305 changes: 1 addition & 304 deletions googleapiclient/discovery_cache/documents/cloudbilling.v1beta.json
Expand Up @@ -145,80 +145,6 @@
}
},
"resources": {
"anomalies": {
"methods": {
"get": {
"description": "Gets an anomaly for a billing account or a project.",
"flatPath": "v1beta/billingAccounts/{billingAccountsId}/anomalies/{anomaliesId}",
"httpMethod": "GET",
"id": "cloudbilling.billingAccounts.anomalies.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. Format for project: projects/{project}/anomalies/{anomalies}. Format for billing account: billingAccounts/{billing_account}/anomalies/{anomalies}.",
"location": "path",
"pattern": "^billingAccounts/[^/]+/anomalies/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta/{+name}",
"response": {
"$ref": "GoogleCloudBillingAnomaliesV1betaAnomaly"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-billing",
"https://www.googleapis.com/auth/cloud-billing.readonly",
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists anomalies for a billing account or a project.",
"flatPath": "v1beta/billingAccounts/{billingAccountsId}/anomalies",
"httpMethod": "GET",
"id": "cloudbilling.billingAccounts.anomalies.list",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "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\" .",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional. Maximum number of anomalies to return. Results may return fewer than this value. Default value is 50 and maximum value is 1000.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "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.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. The project to list Anomaly for the project. Format for project: projects/{project}. Format for billing account: billingAccounts/{billing_account}.",
"location": "path",
"pattern": "^billingAccounts/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta/{+parent}/anomalies",
"response": {
"$ref": "GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-billing",
"https://www.googleapis.com/auth/cloud-billing.readonly",
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
"services": {
"methods": {
"get": {
Expand Down Expand Up @@ -589,84 +515,6 @@
}
}
},
"projects": {
"resources": {
"anomalies": {
"methods": {
"get": {
"description": "Gets an anomaly for a billing account or a project.",
"flatPath": "v1beta/projects/{projectsId}/anomalies/{anomaliesId}",
"httpMethod": "GET",
"id": "cloudbilling.projects.anomalies.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. Format for project: projects/{project}/anomalies/{anomalies}. Format for billing account: billingAccounts/{billing_account}/anomalies/{anomalies}.",
"location": "path",
"pattern": "^projects/[^/]+/anomalies/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta/{+name}",
"response": {
"$ref": "GoogleCloudBillingAnomaliesV1betaAnomaly"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-billing",
"https://www.googleapis.com/auth/cloud-billing.readonly",
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists anomalies for a billing account or a project.",
"flatPath": "v1beta/projects/{projectsId}/anomalies",
"httpMethod": "GET",
"id": "cloudbilling.projects.anomalies.list",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "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\" .",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional. Maximum number of anomalies to return. Results may return fewer than this value. Default value is 50 and maximum value is 1000.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "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.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. The project to list Anomaly for the project. Format for project: projects/{project}. Format for billing account: billingAccounts/{billing_account}.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta/{+parent}/anomalies",
"response": {
"$ref": "GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-billing",
"https://www.googleapis.com/auth/cloud-billing.readonly",
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
}
},
"skuGroups": {
"methods": {
"get": {
Expand Down Expand Up @@ -910,7 +758,7 @@
}
}
},
"revision": "20240301",
"revision": "20240315",
"rootUrl": "https://cloudbilling.googleapis.com/",
"schemas": {
"CacheFillRegions": {
Expand Down Expand Up @@ -1471,157 +1319,6 @@
},
"type": "object"
},
"GoogleCloudBillingAnomaliesV1betaAnomaly": {
"description": "Encapsulates an anomaly.",
"id": "GoogleCloudBillingAnomaliesV1betaAnomaly",
"properties": {
"detectionTime": {
"description": "Time that the anomaly was detected. Will be set to 00:00 google time of the detected date.",
"format": "google-datetime",
"type": "string"
},
"deviation": {
"$ref": "GoogleCloudBillingAnomaliesV1betaAnomalyDeviation",
"description": "Deviation information of the anomaly."
},
"name": {
"description": "Identifier. Resource name for the anomaly.",
"type": "string"
},
"resourceDisplayName": {
"description": "The display name of the resource that the anomaly occurred in/belongs to.",
"type": "string"
},
"rootCauses": {
"description": "A list of causes which contribute to the anomaly.",
"items": {
"$ref": "GoogleCloudBillingAnomaliesV1betaCause"
},
"type": "array"
},
"scope": {
"description": "Indicate the scope of the anomaly.",
"enum": [
"SCOPE_UNSPECIFIED",
"SCOPE_BILLING_ACCOUNT",
"SCOPE_PROJECT"
],
"enumDescriptions": [
"Default unspecified value.",
"Indicates the anomaly is for a billing account.",
"Indicates the anomaly is for a project."
],
"type": "string"
},
"severity": {
"description": "Severity of the anomaly. Unspecified if severity is not met/assigned.",
"enum": [
"ANOMALY_SEVERITY_UNSPECIFIED",
"ANOMALY_SEVERITY_LOW",
"ANOMALY_SEVERITY_MEDIUM",
"ANOMALY_SEVERITY_HIGH"
],
"enumDescriptions": [
"Default unspecified value.",
"Indicates the anomaly's severity is low.",
"Indicates the anomaly's severity is medium.",
"Indicates the anomaly's severity is high."
],
"type": "string"
},
"updateTime": {
"description": "Output only. The most recent anomaly's last updated time.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"GoogleCloudBillingAnomaliesV1betaAnomalyDeviation": {
"description": "Encapsulates the deviation information.",
"id": "GoogleCloudBillingAnomaliesV1betaAnomalyDeviation",
"properties": {
"actualSpend": {
"$ref": "Money",
"description": "The actual spend for the anomaly."
},
"deviationAmount": {
"$ref": "Money",
"description": "The difference between the actual spend and expected spend's upper bound. Calculation formula: deviation_amount = actual_spend - expected_spend."
},
"deviationPercentage": {
"description": "The percentage of devition amount from expected spend's upper bound. Calculation formula: deviation_percentage = divation_amount / expected_spend * 100.",
"format": "double",
"type": "number"
},
"expectedSpend": {
"$ref": "Money",
"description": "The expected spend for the anomaly."
}
},
"type": "object"
},
"GoogleCloudBillingAnomaliesV1betaCause": {
"description": "Encapsulates the information of the reason which caused the anomaly.",
"id": "GoogleCloudBillingAnomaliesV1betaCause",
"properties": {
"causeType": {
"description": "The cause type.",
"enum": [
"CAUSE_TYPE_UNSPECIFIED",
"CAUSE_TYPE_PROJECT",
"CAUSE_TYPE_SERVICE",
"CAUSE_TYPE_SKU"
],
"enumDescriptions": [
"Default unspecified value.",
"Caused by a project.",
"Caused by a service.",
"Caused by a SKU."
],
"type": "string"
},
"deviation": {
"$ref": "GoogleCloudBillingAnomaliesV1betaAnomalyDeviation",
"description": "The deviation information for the cause."
},
"displayName": {
"description": "The display name of the cause.",
"type": "string"
},
"resource": {
"description": "The resource name of the cause. project: projects/{project}. service: services/{service}. sku: services/{service}/skus/{sku}.",
"type": "string"
},
"subCauses": {
"description": "The sub causes.",
"items": {
"$ref": "GoogleCloudBillingAnomaliesV1betaCause"
},
"type": "array"
}
},
"type": "object"
},
"GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse": {
"description": "Response message for ListAnomalies.",
"id": "GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse",
"properties": {
"anomalies": {
"description": "The returned anomalies.",
"items": {
"$ref": "GoogleCloudBillingAnomaliesV1betaAnomaly"
},
"type": "array"
},
"nextPageToken": {
"description": "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.",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo": {
"description": "Encapsulates the aggregation information such as aggregation level and interval for a billing account price.",
"id": "GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo",
Expand Down

0 comments on commit 8b2920b

Please sign in to comment.