From e94281991063194424eb53dc3e7e55e6ed1e8646 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Fri, 23 Jul 2021 01:32:11 +0000 Subject: [PATCH] feat(slides): update the API #### slides:v1 The following keys were added: - schemas.Request.properties.updateSlideProperties.$ref - schemas.Request.properties.updateSlideProperties.description - schemas.UpdateSlidePropertiesRequest.description - schemas.UpdateSlidePropertiesRequest.id - schemas.UpdateSlidePropertiesRequest.properties.fields.description - schemas.UpdateSlidePropertiesRequest.properties.fields.format - schemas.UpdateSlidePropertiesRequest.properties.fields.type - schemas.UpdateSlidePropertiesRequest.properties.objectId.description - schemas.UpdateSlidePropertiesRequest.properties.objectId.type - schemas.UpdateSlidePropertiesRequest.properties.slideProperties.$ref - schemas.UpdateSlidePropertiesRequest.properties.slideProperties.description - schemas.UpdateSlidePropertiesRequest.type --- discovery/slides-v1.json | 26 +++++++++++++++++++++++++- src/apis/slides/v1.ts | 21 +++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/discovery/slides-v1.json b/discovery/slides-v1.json index 0aacd06616c..8cc3656f338 100644 --- a/discovery/slides-v1.json +++ b/discovery/slides-v1.json @@ -313,7 +313,7 @@ } } }, - "revision": "20210629", + "revision": "20210715", "rootUrl": "https://slides.googleapis.com/", "schemas": { "AffineTransform": { @@ -2823,6 +2823,10 @@ "$ref": "UpdateShapePropertiesRequest", "description": "Updates the properties of a Shape." }, + "updateSlideProperties": { + "$ref": "UpdateSlidePropertiesRequest", + "description": "Updates the properties of a Slide" + }, "updateSlidesPosition": { "$ref": "UpdateSlidesPositionRequest", "description": "Updates the position of a set of slides in the presentation." @@ -4263,6 +4267,26 @@ }, "type": "object" }, + "UpdateSlidePropertiesRequest": { + "description": "Updates the properties of a Slide.", + "id": "UpdateSlidePropertiesRequest", + "properties": { + "fields": { + "description": "The fields that should be updated. At least one field must be specified. The root 'slideProperties' is implied and should not be specified. A single `\"*\"` can be used as short-hand for listing every field. For example to update whether a slide is skipped, set `fields` to `\"isSkipped\"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset.", + "format": "google-fieldmask", + "type": "string" + }, + "objectId": { + "description": "The object ID of the slide the update is applied to.", + "type": "string" + }, + "slideProperties": { + "$ref": "SlideProperties", + "description": "The slide properties to update." + } + }, + "type": "object" + }, "UpdateSlidesPositionRequest": { "description": "Updates the position of slides in the presentation.", "id": "UpdateSlidesPositionRequest", diff --git a/src/apis/slides/v1.ts b/src/apis/slides/v1.ts index a7b6cfee402..37b62431bb3 100644 --- a/src/apis/slides/v1.ts +++ b/src/apis/slides/v1.ts @@ -1577,6 +1577,10 @@ export namespace slides_v1 { * Updates the properties of a Shape. */ updateShapeProperties?: Schema$UpdateShapePropertiesRequest; + /** + * Updates the properties of a Slide + */ + updateSlideProperties?: Schema$UpdateSlidePropertiesRequest; /** * Updates the position of a set of slides in the presentation. */ @@ -2390,6 +2394,23 @@ export namespace slides_v1 { */ shapeProperties?: Schema$ShapeProperties; } + /** + * Updates the properties of a Slide. + */ + export interface Schema$UpdateSlidePropertiesRequest { + /** + * The fields that should be updated. At least one field must be specified. The root 'slideProperties' is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example to update whether a slide is skipped, set `fields` to `"isSkipped"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset. + */ + fields?: string | null; + /** + * The object ID of the slide the update is applied to. + */ + objectId?: string | null; + /** + * The slide properties to update. + */ + slideProperties?: Schema$SlideProperties; + } /** * Updates the position of slides in the presentation. */