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 deleted:
- resources.caseClassifications.methods.search.parameters.product.productLine (Total Keys: 2)
- resources.caseClassifications.methods.search.parameters.product.productSubline (Total Keys: 2)
- resources.cases.methods.list.parameters.productLine (Total Keys: 2)
- schemas.CaseClassification.properties.product.$ref (Total Keys: 1)
- schemas.Product (Total Keys: 4)
  • Loading branch information
yoshi-automation committed Mar 26, 2024
1 parent 44ed703 commit cda5be2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 121 deletions.
14 changes: 2 additions & 12 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, product_productLine=None, product_productSubline=None, query=None, x__xgafv=None)</a></code></p>
<code><a href="#search">search(pageSize=None, pageToken=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,18 +90,12 @@ <h3>Method Details</h3>
</div>

<div class="method">
<code class="details" id="search">search(pageSize=None, pageToken=None, product_productLine=None, product_productSubline=None, query=None, x__xgafv=None)</code>
<code class="details" id="search">search(pageSize=None, pageToken=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 All @@ -116,10 +110,6 @@ <h3>Method Details</h3>
{ # A Case Classification represents the topic that a case is about. It&#x27;s very important to use accurate classifications, because they&#x27;re used to route your cases to specialists who can help you. A classification always has an ID that is its unique identifier. A valid ID is required when creating a case.
&quot;displayName&quot;: &quot;A String&quot;, # A display name for the classification. The display name is not static and can change. To uniquely and consistently identify classifications, use the `CaseClassification.id` field.
&quot;id&quot;: &quot;A String&quot;, # The unique ID for a classification. Must be specified for case creation. To retrieve valid classification IDs for case creation, use `caseClassifications.search`. Classification IDs returned by `caseClassifications.search` are guaranteed to be valid for at least 6 months. If a given classification is deactiveated, it will immediately stop being returned. After 6 months, `case.create` requests using the classification ID will fail.
&quot;product&quot;: { # The full product a case may be associated with, including Product Line and Product Subline. # The full product the classification corresponds to.
&quot;productLine&quot;: &quot;A String&quot;, # The Product Line of the Product.
&quot;productSubline&quot;: &quot;A String&quot;, # The Product Subline of the Product, such as &quot;Maps Billing&quot;.
},
},
],
&quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve the next page of results. Set this in the `page_token` field of subsequent `caseClassifications.list` requests. If unspecified, there are no more results to retrieve.
Expand Down

0 comments on commit cda5be2

Please sign in to comment.