From 42e8caeceef94e95a930e6148c6da0cbb5b5ebde Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Tue, 6 Feb 2024 07:08:52 +0000 Subject: [PATCH] feat(cloudsupport): update the api #### cloudsupport:v2beta The following keys were added: - resources.caseClassifications.methods.search.parameters.product.productLine (Total Keys: 2) - resources.caseClassifications.methods.search.parameters.product.productSubline (Total Keys: 2) --- ...oudsupport_v2beta.caseClassifications.html | 10 +++++++-- .../documents/cloudsupport.v2.json | 2 +- .../documents/cloudsupport.v2beta.json | 22 ++++++++++++++++++- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/docs/dyn/cloudsupport_v2beta.caseClassifications.html b/docs/dyn/cloudsupport_v2beta.caseClassifications.html index ac5b19a15e..60519b533a 100644 --- a/docs/dyn/cloudsupport_v2beta.caseClassifications.html +++ b/docs/dyn/cloudsupport_v2beta.caseClassifications.html @@ -78,7 +78,7 @@

Instance Methods

close()

Close httplib2 connections.

- search(pageSize=None, pageToken=None, query=None, x__xgafv=None)

+ search(pageSize=None, pageToken=None, product_productLine=None, product_productSubline=None, query=None, x__xgafv=None)

Retrieve valid classifications to use when creating a support case. Classifications are hierarchical. Each classification is a string containing all levels of the hierarchy separated by `" > "`. For example, `"Technical Issue > Compute > Compute Engine"`. Classification IDs returned by this endpoint are valid for at least six months. When a classification is deactivated, this endpoint immediately stops returning it. After six months, `case.create` requests using the classification will fail. EXAMPLES: cURL: ```shell curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ 'https://cloudsupport.googleapis.com/v2/caseClassifications:search?query=display_name:"*Compute%20Engine*"' ``` Python: ```python import googleapiclient.discovery supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version="v2", discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=v2", ) request = supportApiService.caseClassifications().search( query='display_name:"*Compute Engine*"' ) print(request.execute()) ```

search_next()

@@ -90,12 +90,18 @@

Method Details

- search(pageSize=None, pageToken=None, query=None, x__xgafv=None) + search(pageSize=None, pageToken=None, product_productLine=None, product_productSubline=None, query=None, x__xgafv=None)
Retrieve valid classifications to use when creating a support case. Classifications are hierarchical. Each classification is a string containing all levels of the hierarchy separated by `" > "`. For example, `"Technical Issue > Compute > Compute Engine"`. Classification IDs returned by this endpoint are valid for at least six months. When a classification is deactivated, this endpoint immediately stops returning it. After six months, `case.create` requests using the classification will fail. EXAMPLES: cURL: ```shell curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ 'https://cloudsupport.googleapis.com/v2/caseClassifications:search?query=display_name:"*Compute%20Engine*"' ``` Python: ```python import googleapiclient.discovery supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version="v2", discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=v2", ) request = supportApiService.caseClassifications().search( query='display_name:"*Compute Engine*"' ) print(request.execute()) ```
 
 Args:
   pageSize: integer, The maximum number of classifications fetched with each request.
   pageToken: string, A token identifying the page of results to return. If unspecified, the first page is retrieved.
+  product_productLine: string, The Product Line of the Product.
+    Allowed values
+      PRODUCT_LINE_UNSPECIFIED - Unknown product type.
+      GOOGLE_CLOUD - Google Cloud
+      GOOGLE_MAPS - Google Maps
+  product_productSubline: string, The Product Subline of the Product, such as "Maps Billing".
   query: string, An expression used to filter case classifications. If it's an empty string, then no filtering happens. Otherwise, case classifications will be returned that match the filter.
   x__xgafv: string, V1 error format.
     Allowed values
diff --git a/googleapiclient/discovery_cache/documents/cloudsupport.v2.json b/googleapiclient/discovery_cache/documents/cloudsupport.v2.json
index 1bc98f3679..3e4f7d3919 100644
--- a/googleapiclient/discovery_cache/documents/cloudsupport.v2.json
+++ b/googleapiclient/discovery_cache/documents/cloudsupport.v2.json
@@ -552,7 +552,7 @@
 }
 }
 },
-"revision": "20240122",
+"revision": "20240204",
 "rootUrl": "https://cloudsupport.googleapis.com/",
 "schemas": {
 "Actor": {
diff --git a/googleapiclient/discovery_cache/documents/cloudsupport.v2beta.json b/googleapiclient/discovery_cache/documents/cloudsupport.v2beta.json
index 707175b1a1..4d28f1494d 100644
--- a/googleapiclient/discovery_cache/documents/cloudsupport.v2beta.json
+++ b/googleapiclient/discovery_cache/documents/cloudsupport.v2beta.json
@@ -125,6 +125,26 @@
 "location": "query",
 "type": "string"
 },
+"product.productLine": {
+"description": "The Product Line of the Product.",
+"enum": [
+"PRODUCT_LINE_UNSPECIFIED",
+"GOOGLE_CLOUD",
+"GOOGLE_MAPS"
+],
+"enumDescriptions": [
+"Unknown product type.",
+"Google Cloud",
+"Google Maps"
+],
+"location": "query",
+"type": "string"
+},
+"product.productSubline": {
+"description": "The Product Subline of the Product, such as \"Maps Billing\".",
+"location": "query",
+"type": "string"
+},
 "query": {
 "description": "An expression used to filter case classifications. If it's an empty string, then no filtering happens. Otherwise, case classifications will be returned that match the filter.",
 "location": "query",
@@ -563,7 +583,7 @@
 }
 }
 },
-"revision": "20240122",
+"revision": "20240204",
 "rootUrl": "https://cloudsupport.googleapis.com/",
 "schemas": {
 "Actor": {