From cda5be2aa692c236412423af437d2ddcae4ea2db Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Tue, 26 Mar 2024 07:08:31 +0000 Subject: [PATCH] feat(cloudsupport): update the api #### 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) --- ...oudsupport_v2beta.caseClassifications.html | 14 +--- docs/dyn/cloudsupport_v2beta.cases.html | 45 +------------ .../documents/cloudsupport.v2.json | 2 +- .../documents/cloudsupport.v2beta.json | 66 +------------------ 4 files changed, 6 insertions(+), 121 deletions(-) diff --git a/docs/dyn/cloudsupport_v2beta.caseClassifications.html b/docs/dyn/cloudsupport_v2beta.caseClassifications.html index 60519b533a..bfe52f22b6 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, product_productLine=None, product_productSubline=None, query=None, x__xgafv=None)

+ search(pageSize=None, pageToken=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,18 +90,12 @@

Method Details

- search(pageSize=None, pageToken=None, product_productLine=None, product_productSubline=None, query=None, x__xgafv=None) + search(pageSize=None, pageToken=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
@@ -116,10 +110,6 @@ 

Method Details

{ # A Case Classification represents the topic that a case is about. It's very important to use accurate classifications, because they'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. "displayName": "A String", # 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. "id": "A String", # 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. - "product": { # The full product a case may be associated with, including Product Line and Product Subline. # The full product the classification corresponds to. - "productLine": "A String", # The Product Line of the Product. - "productSubline": "A String", # The Product Subline of the Product, such as "Maps Billing". - }, }, ], "nextPageToken": "A String", # 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. diff --git a/docs/dyn/cloudsupport_v2beta.cases.html b/docs/dyn/cloudsupport_v2beta.cases.html index 1daca808cf..16499624bf 100644 --- a/docs/dyn/cloudsupport_v2beta.cases.html +++ b/docs/dyn/cloudsupport_v2beta.cases.html @@ -97,7 +97,7 @@

Instance Methods

get(name, x__xgafv=None)

Retrieve a case. EXAMPLES: cURL: ```shell case="projects/some-project/cases/16033687" curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$case" ``` Python: ```python import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request = supportApiService.cases().get( name="projects/some-project/cases/43595344", ) print(request.execute()) ```

- list(parent, filter=None, pageSize=None, pageToken=None, productLine=None, x__xgafv=None)

+ list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)

Retrieve all cases under a parent, but not its children. For example, listing cases under an organization only returns the cases that are directly parented by that organization. To retrieve cases under an organization and its projects, use `cases.search`. EXAMPLES: cURL: ```shell parent="projects/some-project" curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$parent/cases" ``` Python: ```python import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request = supportApiService.cases().list(parent="projects/some-project") print(request.execute()) ```

list_next()

@@ -136,10 +136,6 @@

Method Details

"classification": { # A Case Classification represents the topic that a case is about. It's very important to use accurate classifications, because they'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. # The issue classification applicable to this case. "displayName": "A String", # 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. "id": "A String", # 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. - "product": { # The full product a case may be associated with, including Product Line and Product Subline. # The full product the classification corresponds to. - "productLine": "A String", # The Product Line of the Product. - "productSubline": "A String", # The Product Subline of the Product, such as "Maps Billing". - }, }, "contactEmail": "A String", # A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs. "createTime": "A String", # Output only. The time this case was created. @@ -179,10 +175,6 @@

Method Details

"classification": { # A Case Classification represents the topic that a case is about. It's very important to use accurate classifications, because they'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. # The issue classification applicable to this case. "displayName": "A String", # 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. "id": "A String", # 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. - "product": { # The full product a case may be associated with, including Product Line and Product Subline. # The full product the classification corresponds to. - "productLine": "A String", # The Product Line of the Product. - "productSubline": "A String", # The Product Subline of the Product, such as "Maps Billing". - }, }, "contactEmail": "A String", # A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs. "createTime": "A String", # Output only. The time this case was created. @@ -220,10 +212,6 @@

Method Details

"classification": { # A Case Classification represents the topic that a case is about. It's very important to use accurate classifications, because they'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. # The issue classification applicable to this case. "displayName": "A String", # 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. "id": "A String", # 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. - "product": { # The full product a case may be associated with, including Product Line and Product Subline. # The full product the classification corresponds to. - "productLine": "A String", # The Product Line of the Product. - "productSubline": "A String", # The Product Subline of the Product, such as "Maps Billing". - }, }, "contactEmail": "A String", # A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs. "createTime": "A String", # Output only. The time this case was created. @@ -278,10 +266,6 @@

Method Details

"classification": { # A Case Classification represents the topic that a case is about. It's very important to use accurate classifications, because they'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. # The issue classification applicable to this case. "displayName": "A String", # 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. "id": "A String", # 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. - "product": { # The full product a case may be associated with, including Product Line and Product Subline. # The full product the classification corresponds to. - "productLine": "A String", # The Product Line of the Product. - "productSubline": "A String", # The Product Subline of the Product, such as "Maps Billing". - }, }, "contactEmail": "A String", # A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs. "createTime": "A String", # Output only. The time this case was created. @@ -326,10 +310,6 @@

Method Details

"classification": { # A Case Classification represents the topic that a case is about. It's very important to use accurate classifications, because they'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. # The issue classification applicable to this case. "displayName": "A String", # 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. "id": "A String", # 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. - "product": { # The full product a case may be associated with, including Product Line and Product Subline. # The full product the classification corresponds to. - "productLine": "A String", # The Product Line of the Product. - "productSubline": "A String", # The Product Subline of the Product, such as "Maps Billing". - }, }, "contactEmail": "A String", # A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs. "createTime": "A String", # Output only. The time this case was created. @@ -357,7 +337,7 @@

Method Details

- list(parent, filter=None, pageSize=None, pageToken=None, productLine=None, x__xgafv=None) + list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)
Retrieve all cases under a parent, but not its children. For example, listing cases under an organization only returns the cases that are directly parented by that organization. To retrieve cases under an organization and its projects, use `cases.search`. EXAMPLES: cURL: ```shell parent="projects/some-project" curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$parent/cases" ``` Python: ```python import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request = supportApiService.cases().list(parent="projects/some-project") print(request.execute()) ```
 
 Args:
@@ -365,11 +345,6 @@ 

Method Details

filter: string, An expression used to filter cases. If it's an empty string, then no filtering happens. Otherwise, the endpoint returns the cases that match the filter. Expressions use the following fields separated by `AND` and specified with `=`: - `state`: Can be `OPEN` or `CLOSED`. - `priority`: Can be `P0`, `P1`, `P2`, `P3`, or `P4`. You can specify multiple values for priority using the `OR` operator. For example, `priority=P1 OR priority=P2`. - `creator.email`: The email address of the case creator. EXAMPLES: - `state=CLOSED` - `state=OPEN AND creator.email="tester@example.com"` - `state=OPEN AND (priority=P0 OR priority=P1)` pageSize: integer, The maximum number of cases fetched with each request. Defaults to 10. pageToken: string, A token identifying the page of results to return. If unspecified, the first page is retrieved. - productLine: string, The product line for which to request cases for. If unspecified, only Google Cloud cases will be returned. - Allowed values - PRODUCT_LINE_UNSPECIFIED - Unknown product type. - GOOGLE_CLOUD - Google Cloud - GOOGLE_MAPS - Google Maps x__xgafv: string, V1 error format. Allowed values 1 - v1 error format @@ -384,10 +359,6 @@

Method Details

"classification": { # A Case Classification represents the topic that a case is about. It's very important to use accurate classifications, because they'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. # The issue classification applicable to this case. "displayName": "A String", # 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. "id": "A String", # 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. - "product": { # The full product a case may be associated with, including Product Line and Product Subline. # The full product the classification corresponds to. - "productLine": "A String", # The Product Line of the Product. - "productSubline": "A String", # The Product Subline of the Product, such as "Maps Billing". - }, }, "contactEmail": "A String", # A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs. "createTime": "A String", # Output only. The time this case was created. @@ -444,10 +415,6 @@

Method Details

"classification": { # A Case Classification represents the topic that a case is about. It's very important to use accurate classifications, because they'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. # The issue classification applicable to this case. "displayName": "A String", # 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. "id": "A String", # 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. - "product": { # The full product a case may be associated with, including Product Line and Product Subline. # The full product the classification corresponds to. - "productLine": "A String", # The Product Line of the Product. - "productSubline": "A String", # The Product Subline of the Product, such as "Maps Billing". - }, }, "contactEmail": "A String", # A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs. "createTime": "A String", # Output only. The time this case was created. @@ -486,10 +453,6 @@

Method Details

"classification": { # A Case Classification represents the topic that a case is about. It's very important to use accurate classifications, because they'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. # The issue classification applicable to this case. "displayName": "A String", # 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. "id": "A String", # 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. - "product": { # The full product a case may be associated with, including Product Line and Product Subline. # The full product the classification corresponds to. - "productLine": "A String", # The Product Line of the Product. - "productSubline": "A String", # The Product Subline of the Product, such as "Maps Billing". - }, }, "contactEmail": "A String", # A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs. "createTime": "A String", # Output only. The time this case was created. @@ -539,10 +502,6 @@

Method Details

"classification": { # A Case Classification represents the topic that a case is about. It's very important to use accurate classifications, because they'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. # The issue classification applicable to this case. "displayName": "A String", # 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. "id": "A String", # 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. - "product": { # The full product a case may be associated with, including Product Line and Product Subline. # The full product the classification corresponds to. - "productLine": "A String", # The Product Line of the Product. - "productSubline": "A String", # The Product Subline of the Product, such as "Maps Billing". - }, }, "contactEmail": "A String", # A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs. "createTime": "A String", # Output only. The time this case was created. diff --git a/googleapiclient/discovery_cache/documents/cloudsupport.v2.json b/googleapiclient/discovery_cache/documents/cloudsupport.v2.json index e98dc1a7bc..2a0f8d80b8 100644 --- a/googleapiclient/discovery_cache/documents/cloudsupport.v2.json +++ b/googleapiclient/discovery_cache/documents/cloudsupport.v2.json @@ -552,7 +552,7 @@ } } }, -"revision": "20240317", +"revision": "20240322", "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 ce98b2cb95..b1818977ba 100644 --- a/googleapiclient/discovery_cache/documents/cloudsupport.v2beta.json +++ b/googleapiclient/discovery_cache/documents/cloudsupport.v2beta.json @@ -125,26 +125,6 @@ "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", @@ -303,21 +283,6 @@ "pattern": "^[^/]+/[^/]+$", "required": true, "type": "string" -}, -"productLine": { -"description": "The product line for which to request cases for. If unspecified, only Google Cloud cases will be returned.", -"enum": [ -"PRODUCT_LINE_UNSPECIFIED", -"GOOGLE_CLOUD", -"GOOGLE_MAPS" -], -"enumDescriptions": [ -"Unknown product type.", -"Google Cloud", -"Google Maps" -], -"location": "query", -"type": "string" } }, "path": "v2beta/{+parent}/cases", @@ -583,7 +548,7 @@ } } }, -"revision": "20240317", +"revision": "20240322", "rootUrl": "https://cloudsupport.googleapis.com/", "schemas": { "Actor": { @@ -818,10 +783,6 @@ "id": { "description": "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.", "type": "string" -}, -"product": { -"$ref": "Product", -"description": "The full product the classification corresponds to." } }, "type": "object" @@ -1367,31 +1328,6 @@ }, "type": "object" }, -"Product": { -"description": "The full product a case may be associated with, including Product Line and Product Subline.", -"id": "Product", -"properties": { -"productLine": { -"description": "The Product Line of the Product.", -"enum": [ -"PRODUCT_LINE_UNSPECIFIED", -"GOOGLE_CLOUD", -"GOOGLE_MAPS" -], -"enumDescriptions": [ -"Unknown product type.", -"Google Cloud", -"Google Maps" -], -"type": "string" -}, -"productSubline": { -"description": "The Product Subline of the Product, such as \"Maps Billing\".", -"type": "string" -} -}, -"type": "object" -}, "SearchCaseClassificationsResponse": { "description": "The response message for SearchCaseClassifications endpoint.", "id": "SearchCaseClassificationsResponse",