Skip to content

Commit

Permalink
feat(cloudsupport): update the api
Browse files Browse the repository at this point in the history
#### 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)
  • Loading branch information
yoshi-automation committed Feb 6, 2024
1 parent 5c9c894 commit 42e8cae
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
10 changes: 8 additions & 2 deletions docs/dyn/cloudsupport_v2beta.caseClassifications.html
Expand Up @@ -78,7 +78,7 @@ <h2>Instance Methods</h2>
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#search">search(pageSize=None, pageToken=None, query=None, x__xgafv=None)</a></code></p>
<code><a href="#search">search(pageSize=None, pageToken=None, product_productLine=None, product_productSubline=None, query=None, x__xgafv=None)</a></code></p>
<p class="firstline">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()) ```</p>
<p class="toc_element">
<code><a href="#search_next">search_next()</a></code></p>
Expand All @@ -90,12 +90,18 @@ <h3>Method Details</h3>
</div>

<div class="method">
<code class="details" id="search">search(pageSize=None, pageToken=None, query=None, x__xgafv=None)</code>
<code class="details" id="search">search(pageSize=None, pageToken=None, product_productLine=None, product_productSubline=None, query=None, x__xgafv=None)</code>
<pre>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 `&quot; &gt; &quot;`. For example, `&quot;Technical Issue &gt; Compute &gt; Compute Engine&quot;`. 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 &quot;Authorization: Bearer $(gcloud auth print-access-token)&quot; \ &#x27;https://cloudsupport.googleapis.com/v2/caseClassifications:search?query=display_name:&quot;*Compute%20Engine*&quot;&#x27; ``` Python: ```python import googleapiclient.discovery supportApiService = googleapiclient.discovery.build( serviceName=&quot;cloudsupport&quot;, version=&quot;v2&quot;, discoveryServiceUrl=f&quot;https://cloudsupport.googleapis.com/$discovery/rest?version=v2&quot;, ) request = supportApiService.caseClassifications().search( query=&#x27;display_name:&quot;*Compute Engine*&quot;&#x27; ) 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 &quot;Maps Billing&quot;.
query: string, An expression used to filter case classifications. If it&#x27;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
Expand Down
Expand Up @@ -552,7 +552,7 @@
}
}
},
"revision": "20240122",
"revision": "20240204",
"rootUrl": "https://cloudsupport.googleapis.com/",
"schemas": {
"Actor": {
Expand Down
Expand Up @@ -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",
Expand Down Expand Up @@ -563,7 +583,7 @@
}
}
},
"revision": "20240122",
"revision": "20240204",
"rootUrl": "https://cloudsupport.googleapis.com/",
"schemas": {
"Actor": {
Expand Down

0 comments on commit 42e8cae

Please sign in to comment.