Skip to content

Commit

Permalink
feat(cloudsupport)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### cloudsupport:v2beta

The following keys were deleted:
- schemas.Actor.properties.principalId.description
- schemas.Actor.properties.principalId.readOnly
- schemas.Actor.properties.principalId.type
- schemas.Escalation.properties.actor.$ref
- schemas.Escalation.properties.actor.description
- schemas.Escalation.properties.actor.readOnly
- schemas.Escalation.properties.createTime.description
- schemas.Escalation.properties.createTime.format
- schemas.Escalation.properties.createTime.readOnly
- schemas.Escalation.properties.createTime.type
- schemas.Escalation.properties.name.description
- schemas.Escalation.properties.name.readOnly
- schemas.Escalation.properties.name.type

The following keys were changed:
- resources.cases.methods.list.parameters.filter.description
  • Loading branch information
yoshi-automation authored and bcoe committed Mar 8, 2022
1 parent 0f73240 commit e448561
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 41 deletions.
25 changes: 2 additions & 23 deletions discovery/cloudsupport-v2beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
],
"parameters": {
"filter": {
"description": "An expression written in the Cloud filter language. If non-empty, then only cases whose fields match the filter are returned. If empty, then no messages are filtered out. Filter strings can use the following fields: - status (Accepted values: OPEN or CLOSED) - severity (Accepted values: S0, S1, S2, S3, or S4) - creator.email with the operators equals (=) and AND. Additionally, a global restriction (with no operator) can be used to search across displayName, description, and comments (e.g. \"my search\").",
"description": "An expression written in the Cloud filter language. If non-empty, then only cases whose fields match the filter are returned. If empty, then no messages are filtered out. Filter strings can use the following fields: - state (Accepted values: OPEN or CLOSED) - severity (Accepted values: S0, S1, S2, S3, or S4) - creator.email with the operators equals (=) and AND. Additionally, a global restriction (with no operator) can be used to search across displayName, description, and comments (e.g. \"my search\").",
"location": "query",
"type": "string"
},
Expand Down Expand Up @@ -575,7 +575,7 @@
}
}
},
"revision": "20220201",
"revision": "20220305",
"rootUrl": "https://cloudsupport.googleapis.com/",
"schemas": {
"Actor": {
Expand All @@ -594,11 +594,6 @@
"description": "Output only. Whether the actor is a Google support actor.",
"readOnly": true,
"type": "boolean"
},
"principalId": {
"description": "Output only. An ID representing the user that was authenticated when the corresponding action was taken. This will be an email address, if one is available, or some other unique ID. See https://cloud.google.com/docs/authentication for more information on types of authentication.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -1073,26 +1068,10 @@
"description": "An escalation of a support case.",
"id": "Escalation",
"properties": {
"actor": {
"$ref": "Actor",
"description": "Output only. The user or Google Support agent initiated this escalation.",
"readOnly": true
},
"createTime": {
"description": "Output only. The time when this escalation event was created.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"justification": {
"description": "Required. A free text description to accompany the `reason` field above. Provides additional context on why the case is being escalated.",
"type": "string"
},
"name": {
"description": "Output only. The resource name for the escalation event.",
"readOnly": true,
"type": "string"
},
"reason": {
"description": "Required. The reason why the Case is being escalated.",
"enum": [
Expand Down
20 changes: 2 additions & 18 deletions src/apis/cloudsupport/v2beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ export namespace cloudsupport_v2beta {
* Output only. Whether the actor is a Google support actor.
*/
googleSupport?: boolean | null;
/**
* Output only. An ID representing the user that was authenticated when the corresponding action was taken. This will be an email address, if one is available, or some other unique ID. See https://cloud.google.com/docs/authentication for more information on types of authentication.
*/
principalId?: string | null;
}
/**
* Represents a file attached to a support case.
Expand Down Expand Up @@ -495,22 +491,10 @@ export namespace cloudsupport_v2beta {
* An escalation of a support case.
*/
export interface Schema$Escalation {
/**
* Output only. The user or Google Support agent initiated this escalation.
*/
actor?: Schema$Actor;
/**
* Output only. The time when this escalation event was created.
*/
createTime?: string | null;
/**
* Required. A free text description to accompany the `reason` field above. Provides additional context on why the case is being escalated.
*/
justification?: string | null;
/**
* Output only. The resource name for the escalation event.
*/
name?: string | null;
/**
* Required. The reason why the Case is being escalated.
*/
Expand Down Expand Up @@ -1702,7 +1686,7 @@ export namespace cloudsupport_v2beta {
*
* // Do the magic
* const res = await cloudsupport.cases.list({
* // An expression written in the Cloud filter language. If non-empty, then only cases whose fields match the filter are returned. If empty, then no messages are filtered out. Filter strings can use the following fields: - status (Accepted values: OPEN or CLOSED) - severity (Accepted values: S0, S1, S2, S3, or S4) - creator.email with the operators equals (=) and AND. Additionally, a global restriction (with no operator) can be used to search across displayName, description, and comments (e.g. "my search").
* // An expression written in the Cloud filter language. If non-empty, then only cases whose fields match the filter are returned. If empty, then no messages are filtered out. Filter strings can use the following fields: - state (Accepted values: OPEN or CLOSED) - severity (Accepted values: S0, S1, S2, S3, or S4) - creator.email with the operators equals (=) and AND. Additionally, a global restriction (with no operator) can be used to search across displayName, description, and comments (e.g. "my search").
* filter: 'placeholder-value',
* // The maximum number of cases fetched with each request. Defaults to 10.
* pageSize: 'placeholder-value',
Expand Down Expand Up @@ -2152,7 +2136,7 @@ export namespace cloudsupport_v2beta {
}
export interface Params$Resource$Cases$List extends StandardParameters {
/**
* An expression written in the Cloud filter language. If non-empty, then only cases whose fields match the filter are returned. If empty, then no messages are filtered out. Filter strings can use the following fields: - status (Accepted values: OPEN or CLOSED) - severity (Accepted values: S0, S1, S2, S3, or S4) - creator.email with the operators equals (=) and AND. Additionally, a global restriction (with no operator) can be used to search across displayName, description, and comments (e.g. "my search").
* An expression written in the Cloud filter language. If non-empty, then only cases whose fields match the filter are returned. If empty, then no messages are filtered out. Filter strings can use the following fields: - state (Accepted values: OPEN or CLOSED) - severity (Accepted values: S0, S1, S2, S3, or S4) - creator.email with the operators equals (=) and AND. Additionally, a global restriction (with no operator) can be used to search across displayName, description, and comments (e.g. "my search").
*/
filter?: string;
/**
Expand Down

0 comments on commit e448561

Please sign in to comment.