Index: discovery/googleapis/slides__v1.json |
diff --git a/discovery/googleapis/slides__v1.json b/discovery/googleapis/slides__v1.json |
index eca632e5b278f9c47e74b9002ee13e6f2ff5ba44..ecd4d9ba290e3c8694040aa5c89cd443e64dd9e7 100644 |
--- a/discovery/googleapis/slides__v1.json |
+++ b/discovery/googleapis/slides__v1.json |
@@ -2,15 +2,6 @@ |
"auth": { |
"oauth2": { |
"scopes": { |
- "https://www.googleapis.com/auth/drive.readonly": { |
- "description": "View the files in your Google Drive" |
- }, |
- "https://www.googleapis.com/auth/spreadsheets.readonly": { |
- "description": "View your Google Spreadsheets" |
- }, |
- "https://www.googleapis.com/auth/drive": { |
- "description": "View and manage the files in your Google Drive" |
- }, |
"https://www.googleapis.com/auth/spreadsheets": { |
"description": "View and manage your spreadsheets in Google Drive" |
}, |
@@ -19,6 +10,15 @@ |
}, |
"https://www.googleapis.com/auth/presentations.readonly": { |
"description": "View your Google Slides presentations" |
+ }, |
+ "https://www.googleapis.com/auth/spreadsheets.readonly": { |
+ "description": "View your Google Spreadsheets" |
+ }, |
+ "https://www.googleapis.com/auth/drive": { |
+ "description": "View and manage the files in your Google Drive" |
+ }, |
+ "https://www.googleapis.com/auth/drive.readonly": { |
+ "description": "View the files in your Google Drive" |
} |
} |
} |
@@ -40,16 +40,48 @@ |
"ownerDomain": "google.com", |
"ownerName": "Google", |
"parameters": { |
- "uploadType": { |
- "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
+ "quotaUser": { |
+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "pp": { |
+ "default": "true", |
+ "description": "Pretty-print response.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
+ "oauth_token": { |
+ "description": "OAuth 2.0 token for the current user.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "bearer_token": { |
+ "description": "OAuth bearer token.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "upload_protocol": { |
+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
"location": "query", |
"type": "string" |
}, |
+ "prettyPrint": { |
+ "default": "true", |
+ "description": "Returns response with indentations and line breaks.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
"fields": { |
"description": "Selector specifying which fields to include in a partial response.", |
"location": "query", |
"type": "string" |
}, |
+ "uploadType": { |
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"$.xgafv": { |
"description": "V1 error format.", |
"enum": [ |
@@ -84,47 +116,15 @@ |
"location": "query", |
"type": "string" |
}, |
- "access_token": { |
- "description": "OAuth access token.", |
- "location": "query", |
- "type": "string" |
- }, |
"key": { |
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
"location": "query", |
"type": "string" |
}, |
- "quotaUser": { |
- "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
- "location": "query", |
- "type": "string" |
- }, |
- "pp": { |
- "default": "true", |
- "description": "Pretty-print response.", |
- "location": "query", |
- "type": "boolean" |
- }, |
- "oauth_token": { |
- "description": "OAuth 2.0 token for the current user.", |
- "location": "query", |
- "type": "string" |
- }, |
- "bearer_token": { |
- "description": "OAuth bearer token.", |
- "location": "query", |
- "type": "string" |
- }, |
- "upload_protocol": { |
- "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
+ "access_token": { |
+ "description": "OAuth access token.", |
"location": "query", |
"type": "string" |
- }, |
- "prettyPrint": { |
- "default": "true", |
- "description": "Returns response with indentations and line breaks.", |
- "location": "query", |
- "type": "boolean" |
} |
}, |
"protocol": "rest", |
@@ -210,39 +210,6 @@ |
"resources": { |
"pages": { |
"methods": { |
- "get": { |
- "description": "Gets the latest version of the specified page in the presentation.", |
- "httpMethod": "GET", |
- "id": "slides.presentations.pages.get", |
- "parameterOrder": [ |
- "presentationId", |
- "pageObjectId" |
- ], |
- "parameters": { |
- "presentationId": { |
- "description": "The ID of the presentation to retrieve.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- }, |
- "pageObjectId": { |
- "description": "The object ID of the page to retrieve.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "v1/presentations/{presentationId}/pages/{pageObjectId}", |
- "response": { |
- "$ref": "Page" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/drive", |
- "https://www.googleapis.com/auth/drive.readonly", |
- "https://www.googleapis.com/auth/presentations", |
- "https://www.googleapis.com/auth/presentations.readonly" |
- ] |
- }, |
"getThumbnail": { |
"description": "Generates a thumbnail of the latest version of the specified page in the\npresentation and returns a URL to the thumbnail image.", |
"httpMethod": "GET", |
@@ -292,65 +259,413 @@ |
"https://www.googleapis.com/auth/presentations", |
"https://www.googleapis.com/auth/presentations.readonly" |
] |
+ }, |
+ "get": { |
+ "description": "Gets the latest version of the specified page in the presentation.", |
+ "httpMethod": "GET", |
+ "id": "slides.presentations.pages.get", |
+ "parameterOrder": [ |
+ "presentationId", |
+ "pageObjectId" |
+ ], |
+ "parameters": { |
+ "presentationId": { |
+ "description": "The ID of the presentation to retrieve.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ }, |
+ "pageObjectId": { |
+ "description": "The object ID of the page to retrieve.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ } |
+ }, |
+ "path": "v1/presentations/{presentationId}/pages/{pageObjectId}", |
+ "response": { |
+ "$ref": "Page" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/drive", |
+ "https://www.googleapis.com/auth/drive.readonly", |
+ "https://www.googleapis.com/auth/presentations", |
+ "https://www.googleapis.com/auth/presentations.readonly" |
+ ] |
} |
} |
} |
} |
} |
}, |
- "revision": "20170316", |
+ "revision": "20170411", |
"rootUrl": "https://slides.googleapis.com/", |
"schemas": { |
- "ReplaceAllTextResponse": { |
- "description": "The result of replacing text.", |
- "id": "ReplaceAllTextResponse", |
+ "ReplaceAllShapesWithSheetsChartRequest": { |
+ "description": "Replaces all shapes that match the given criteria with the provided Google\nSheets chart. The chart will be scaled and centered to fit within the bounds\nof the original shape.\n\nNOTE: Replacing shapes with a chart requires at least one of the\nspreadsheets.readonly, spreadsheets, drive.readonly, or drive OAuth scopes.", |
+ "id": "ReplaceAllShapesWithSheetsChartRequest", |
"properties": { |
- "occurrencesChanged": { |
- "description": "The number of occurrences changed by replacing all text.", |
+ "spreadsheetId": { |
+ "description": "The ID of the Google Sheets spreadsheet that contains the chart.", |
+ "type": "string" |
+ }, |
+ "linkingMode": { |
+ "description": "The mode with which the chart is linked to the source spreadsheet. When\nnot specified, the chart will be an image that is not linked.", |
+ "enum": [ |
+ "NOT_LINKED_IMAGE", |
+ "LINKED" |
+ ], |
+ "enumDescriptions": [ |
+ "The chart is not associated with the source spreadsheet and cannot be\nupdated. A chart that is not linked will be inserted as an image.", |
+ "Linking the chart allows it to be updated, and other collaborators will\nsee a link to the spreadsheet." |
+ ], |
+ "type": "string" |
+ }, |
+ "containsText": { |
+ "$ref": "SubstringMatchCriteria", |
+ "description": "The criteria that the shapes must match in order to be replaced. The\nrequest will replace all of the shapes that contain the given text." |
+ }, |
+ "chartId": { |
+ "description": "The ID of the specific chart in the Google Sheets spreadsheet.", |
"format": "int32", |
"type": "integer" |
} |
}, |
"type": "object" |
}, |
- "UpdateParagraphStyleRequest": { |
- "description": "Updates the styling for all of the paragraphs within a Shape or Table that\noverlap with the given text index range.", |
- "id": "UpdateParagraphStyleRequest", |
+ "Range": { |
+ "description": "Specifies a contiguous range of an indexed collection, such as characters in\ntext.", |
+ "id": "Range", |
"properties": { |
- "fields": { |
- "description": "The fields that should be updated.\n\nAt least one field must be specified. The root `style` is implied and\nshould not be specified. A single `\"*\"` can be used as short-hand for\nlisting every field.\n\nFor example, to update the paragraph alignment, set `fields` to\n`\"alignment\"`.\n\nTo reset a property to its default value, include its field name in the\nfield mask but leave the field itself unset.", |
- "format": "google-fieldmask", |
- "type": "string" |
- }, |
- "objectId": { |
- "description": "The object ID of the shape or table with the text to be styled.", |
+ "type": { |
+ "description": "The type of range.", |
+ "enum": [ |
+ "RANGE_TYPE_UNSPECIFIED", |
+ "FIXED_RANGE", |
+ "FROM_START_INDEX", |
+ "ALL" |
+ ], |
+ "enumDescriptions": [ |
+ "Unspecified range type. This value must not be used.", |
+ "A fixed range. Both the `start_index` and\n`end_index` must be specified.", |
+ "Starts the range at `start_index` and continues until the\nend of the collection. The `end_index` must not be specified.", |
+ "Sets the range to be the whole length of the collection. Both the\n`start_index` and the `end_index` must not be\nspecified." |
+ ], |
"type": "string" |
}, |
- "textRange": { |
- "$ref": "Range", |
- "description": "The range of text containing the paragraph(s) to style." |
- }, |
- "cellLocation": { |
- "$ref": "TableCellLocation", |
- "description": "The location of the cell in the table containing the paragraph(s) to\nstyle. If `object_id` refers to a table, `cell_location` must have a value.\nOtherwise, it must not." |
+ "startIndex": { |
+ "description": "The optional zero-based index of the beginning of the collection.\nRequired for `SPECIFIC_RANGE` and `FROM_START_INDEX` ranges.", |
+ "format": "int32", |
+ "type": "integer" |
}, |
- "style": { |
- "$ref": "ParagraphStyle", |
- "description": "The paragraph's style." |
+ "endIndex": { |
+ "description": "The optional zero-based index of the end of the collection.\nRequired for `SPECIFIC_RANGE` delete mode.", |
+ "format": "int32", |
+ "type": "integer" |
} |
}, |
"type": "object" |
}, |
- "ColorScheme": { |
- "description": "The palette of predefined colors for a page.", |
- "id": "ColorScheme", |
+ "ColorStop": { |
+ "description": "A color and position in a gradient band.", |
+ "id": "ColorStop", |
"properties": { |
- "colors": { |
- "description": "The ThemeColorType and corresponding concrete color pairs.", |
- "items": { |
- "$ref": "ThemeColorPair" |
- }, |
- "type": "array" |
+ "color": { |
+ "$ref": "OpaqueColor", |
+ "description": "The color of the gradient stop." |
+ }, |
+ "alpha": { |
+ "description": "The alpha value of this color in the gradient band. Defaults to 1.0,\nfully opaque.", |
+ "format": "float", |
+ "type": "number" |
+ }, |
+ "position": { |
+ "description": "The relative position of the color stop in the gradient band measured\nin percentage. The value should be in the interval [0.0, 1.0].", |
+ "format": "float", |
+ "type": "number" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "CreateVideoRequest": { |
+ "description": "Creates a video.", |
+ "id": "CreateVideoRequest", |
+ "properties": { |
+ "objectId": { |
+ "description": "A user-supplied object ID.\n\nIf you specify an ID, it must be unique among all pages and page elements\nin the presentation. The ID must start with an alphanumeric character or an\nunderscore (matches regex `[a-zA-Z0-9_]`); remaining characters\nmay include those as well as a hyphen or colon (matches regex\n`[a-zA-Z0-9_-:]`).\nThe length of the ID must not be less than 5 or greater than 50.\n\nIf you don't specify an ID, a unique one is generated.", |
+ "type": "string" |
+ }, |
+ "source": { |
+ "description": "The video source.", |
+ "enum": [ |
+ "SOURCE_UNSPECIFIED", |
+ "YOUTUBE" |
+ ], |
+ "enumDescriptions": [ |
+ "The video source is unspecified.", |
+ "The video source is YouTube." |
+ ], |
+ "type": "string" |
+ }, |
+ "elementProperties": { |
+ "$ref": "PageElementProperties", |
+ "description": "The element properties for the video." |
+ }, |
+ "id": { |
+ "description": "The video source's unique identifier for this video.\n\ne.g. For YouTube video https://www.youtube.com/watch?v=7U3axjORYZ0,\nthe ID is 7U3axjORYZ0.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "DuplicateObjectResponse": { |
+ "description": "The response of duplicating an object.", |
+ "id": "DuplicateObjectResponse", |
+ "properties": { |
+ "objectId": { |
+ "description": "The ID of the new duplicate object.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "ReplaceAllShapesWithImageRequest": { |
+ "description": "Replaces all shapes that match the given criteria with the provided image.", |
+ "id": "ReplaceAllShapesWithImageRequest", |
+ "properties": { |
+ "imageUrl": { |
+ "description": "The image URL.\n\nThe image is fetched once at insertion time and a copy is stored for\ndisplay inside the presentation. Images must be less than 50MB in size,\ncannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF\nformat.", |
+ "type": "string" |
+ }, |
+ "replaceMethod": { |
+ "description": "The replace method.", |
+ "enum": [ |
+ "CENTER_INSIDE", |
+ "CENTER_CROP" |
+ ], |
+ "enumDescriptions": [ |
+ "Scales and centers the image to fit within the bounds of the original\nshape and maintains the image's aspect ratio. The rendered size of the\nimage may be smaller than the size of the shape. This is the default\nmethod when one is not specified.", |
+ "Scales and centers the image to fill the bounds of the original shape.\nThe image may be cropped in order to fill the shape. The rendered size of\nthe image will be the same as that of the original shape." |
+ ], |
+ "type": "string" |
+ }, |
+ "containsText": { |
+ "$ref": "SubstringMatchCriteria", |
+ "description": "If set, this request will replace all of the shapes that contain the\ngiven text." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "Shadow": { |
+ "description": "The shadow properties of a page element.\n\nIf these fields are unset, they may be inherited from a parent placeholder\nif it exists. If there is no parent, the fields will default to the value\nused for new page elements created in the Slides editor, which may depend on\nthe page element kind.", |
+ "id": "Shadow", |
+ "properties": { |
+ "color": { |
+ "$ref": "OpaqueColor", |
+ "description": "The shadow color value." |
+ }, |
+ "rotateWithShape": { |
+ "description": "Whether the shadow should rotate with the shape.", |
+ "type": "boolean" |
+ }, |
+ "propertyState": { |
+ "description": "The shadow property state.\n\nUpdating the the shadow on a page element will implicitly update this field\nto `RENDERED`, unless another value is specified in the same request. To\nhave no shadow on a page element, set this field to `NOT_RENDERED`. In this\ncase, any other shadow fields set in the same request will be ignored.", |
+ "enum": [ |
+ "RENDERED", |
+ "NOT_RENDERED", |
+ "INHERIT" |
+ ], |
+ "enumDescriptions": [ |
+ "If a property's state is RENDERED, then the element has the corresponding\nproperty when rendered on a page. If the element is a placeholder shape as\ndetermined by the placeholder\nfield, and it inherits from a placeholder shape, the corresponding field\nmay be unset, meaning that the property value is inherited from a parent\nplaceholder. If the element does not inherit, then the field will contain\nthe rendered value. This is the default value.", |
+ "If a property's state is NOT_RENDERED, then the element does not have the\ncorresponding property when rendered on a page. However, the field may\nstill be set so it can be inherited by child shapes. To remove a property\nfrom a rendered element, set its property_state to NOT_RENDERED.", |
+ "If a property's state is INHERIT, then the property state uses the value of\ncorresponding `property_state` field on the parent shape. Elements that do\nnot inherit will never have an INHERIT property state." |
+ ], |
+ "type": "string" |
+ }, |
+ "blurRadius": { |
+ "$ref": "Dimension", |
+ "description": "The radius of the shadow blur. The larger the radius, the more diffuse the\nshadow becomes." |
+ }, |
+ "transform": { |
+ "$ref": "AffineTransform", |
+ "description": "Transform that encodes the translate, scale, and skew of the shadow,\nrelative to the alignment position." |
+ }, |
+ "type": { |
+ "description": "The type of the shadow.", |
+ "enum": [ |
+ "SHADOW_TYPE_UNSPECIFIED", |
+ "OUTER" |
+ ], |
+ "enumDescriptions": [ |
+ "Unspecified shadow type.", |
+ "Outer shadow." |
+ ], |
+ "type": "string" |
+ }, |
+ "alignment": { |
+ "description": "The alignment point of the shadow, that sets the origin for translate,\nscale and skew of the shadow.", |
+ "enum": [ |
+ "RECTANGLE_POSITION_UNSPECIFIED", |
+ "TOP_LEFT", |
+ "TOP_CENTER", |
+ "TOP_RIGHT", |
+ "LEFT_CENTER", |
+ "CENTER", |
+ "RIGHT_CENTER", |
+ "BOTTOM_LEFT", |
+ "BOTTOM_CENTER", |
+ "BOTTOM_RIGHT" |
+ ], |
+ "enumDescriptions": [ |
+ "Unspecified.", |
+ "Top left.", |
+ "Top center.", |
+ "Top right.", |
+ "Left center.", |
+ "Center.", |
+ "Right center.", |
+ "Bottom left.", |
+ "Bottom center.", |
+ "Bottom right." |
+ ], |
+ "type": "string" |
+ }, |
+ "alpha": { |
+ "description": "The alpha of the shadow's color, from 0.0 to 1.0.", |
+ "format": "float", |
+ "type": "number" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "DeleteTableRowRequest": { |
+ "description": "Deletes a row from a table.", |
+ "id": "DeleteTableRowRequest", |
+ "properties": { |
+ "cellLocation": { |
+ "$ref": "TableCellLocation", |
+ "description": "The reference table cell location from which a row will be deleted.\n\nThe row this cell spans will be deleted. If this is a merged cell, multiple\nrows will be deleted. If no rows remain in the table after this deletion,\nthe whole table is deleted." |
+ }, |
+ "tableObjectId": { |
+ "description": "The table to delete rows from.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "Bullet": { |
+ "description": "Describes the bullet of a paragraph.", |
+ "id": "Bullet", |
+ "properties": { |
+ "listId": { |
+ "description": "The ID of the list this paragraph belongs to.", |
+ "type": "string" |
+ }, |
+ "glyph": { |
+ "description": "The rendered bullet glyph for this paragraph.", |
+ "type": "string" |
+ }, |
+ "nestingLevel": { |
+ "description": "The nesting level of this paragraph in the list.", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
+ "bulletStyle": { |
+ "$ref": "TextStyle", |
+ "description": "The paragraph specific text style applied to this bullet." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "OutlineFill": { |
+ "description": "The fill of the outline.", |
+ "id": "OutlineFill", |
+ "properties": { |
+ "solidFill": { |
+ "$ref": "SolidFill", |
+ "description": "Solid color fill." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "CreateLineResponse": { |
+ "description": "The result of creating a line.", |
+ "id": "CreateLineResponse", |
+ "properties": { |
+ "objectId": { |
+ "description": "The object ID of the created line.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "TableCellLocation": { |
+ "description": "A location of a single table cell within a table.", |
+ "id": "TableCellLocation", |
+ "properties": { |
+ "rowIndex": { |
+ "description": "The 0-based row index.", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
+ "columnIndex": { |
+ "description": "The 0-based column index.", |
+ "format": "int32", |
+ "type": "integer" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "ReplaceAllTextResponse": { |
+ "description": "The result of replacing text.", |
+ "id": "ReplaceAllTextResponse", |
+ "properties": { |
+ "occurrencesChanged": { |
+ "description": "The number of occurrences changed by replacing all text.", |
+ "format": "int32", |
+ "type": "integer" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "UpdateParagraphStyleRequest": { |
+ "description": "Updates the styling for all of the paragraphs within a Shape or Table that\noverlap with the given text index range.", |
+ "id": "UpdateParagraphStyleRequest", |
+ "properties": { |
+ "objectId": { |
+ "description": "The object ID of the shape or table with the text to be styled.", |
+ "type": "string" |
+ }, |
+ "textRange": { |
+ "$ref": "Range", |
+ "description": "The range of text containing the paragraph(s) to style." |
+ }, |
+ "cellLocation": { |
+ "$ref": "TableCellLocation", |
+ "description": "The location of the cell in the table containing the paragraph(s) to\nstyle. If `object_id` refers to a table, `cell_location` must have a value.\nOtherwise, it must not." |
+ }, |
+ "style": { |
+ "$ref": "ParagraphStyle", |
+ "description": "The paragraph's style." |
+ }, |
+ "fields": { |
+ "description": "The fields that should be updated.\n\nAt least one field must be specified. The root `style` is implied and\nshould not be specified. A single `\"*\"` can be used as short-hand for\nlisting every field.\n\nFor example, to update the paragraph alignment, set `fields` to\n`\"alignment\"`.\n\nTo reset a property to its default value, include its field name in the\nfield mask but leave the field itself unset.", |
+ "format": "google-fieldmask", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "ColorScheme": { |
+ "description": "The palette of predefined colors for a page.", |
+ "id": "ColorScheme", |
+ "properties": { |
+ "colors": { |
+ "description": "The ThemeColorType and corresponding concrete color pairs.", |
+ "items": { |
+ "$ref": "ThemeColorPair" |
+ }, |
+ "type": "array" |
} |
}, |
"type": "object" |
@@ -672,13 +987,37 @@ |
"description": "A PageElement kind representing an\nimage.", |
"id": "Image", |
"properties": { |
+ "contentUrl": { |
+ "description": "An URL to an image with a default lifetime of 30 minutes.\nThis URL is tagged with the account of the requester. Anyone with the URL\neffectively accesses the image as the original requester. Access to the\nimage may be lost if the presentation's sharing settings change.", |
+ "type": "string" |
+ }, |
"imageProperties": { |
"$ref": "ImageProperties", |
"description": "The properties of the image." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "InsertTextRequest": { |
+ "description": "Inserts text into a shape or a table cell.", |
+ "id": "InsertTextRequest", |
+ "properties": { |
+ "objectId": { |
+ "description": "The object ID of the shape or table where the text will be inserted.", |
+ "type": "string" |
}, |
- "contentUrl": { |
- "description": "An URL to an image with a default lifetime of 30 minutes.\nThis URL is tagged with the account of the requester. Anyone with the URL\neffectively accesses the image as the original requester. Access to the\nimage may be lost if the presentation's sharing settings change.", |
+ "text": { |
+ "description": "The text to be inserted.\n\nInserting a newline character will implicitly create a new\nParagraphMarker at that index.\nThe paragraph style of the new paragraph will be copied from the paragraph\nat the current insertion index, including lists and bullets.\n\nText styles for inserted text will be determined automatically, generally\npreserving the styling of neighboring text. In most cases, the text will be\nadded to the TextRun that exists at the\ninsertion index.\n\nSome control characters (U+0000-U+0008, U+000C-U+001F) and characters\nfrom the Unicode Basic Multilingual Plane Private Use Area (U+E000-U+F8FF)\nwill be stripped out of the inserted text.", |
"type": "string" |
+ }, |
+ "insertionIndex": { |
+ "description": "The index where the text will be inserted, in Unicode code units, based\non TextElement indexes.\n\nThe index is zero-based and is computed from the start of the string.\nThe index may be adjusted to prevent insertions inside Unicode grapheme\nclusters. In these cases, the text will be inserted immediately after the\ngrapheme cluster.", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
+ "cellLocation": { |
+ "$ref": "TableCellLocation", |
+ "description": "The optional table cell location if the text is to be inserted into a table\ncell. If present, the object_id must refer to a table." |
} |
}, |
"type": "object" |
@@ -734,30 +1073,6 @@ |
}, |
"type": "object" |
}, |
- "InsertTextRequest": { |
- "description": "Inserts text into a shape or a table cell.", |
- "id": "InsertTextRequest", |
- "properties": { |
- "objectId": { |
- "description": "The object ID of the shape or table where the text will be inserted.", |
- "type": "string" |
- }, |
- "text": { |
- "description": "The text to be inserted.\n\nInserting a newline character will implicitly create a new\nParagraphMarker at that index.\nThe paragraph style of the new paragraph will be copied from the paragraph\nat the current insertion index, including lists and bullets.\n\nText styles for inserted text will be determined automatically, generally\npreserving the styling of neighboring text. In most cases, the text will be\nadded to the TextRun that exists at the\ninsertion index.\n\nSome control characters (U+0000-U+0008, U+000C-U+001F) and characters\nfrom the Unicode Basic Multilingual Plane Private Use Area (U+E000-U+F8FF)\nwill be stripped out of the inserted text.", |
- "type": "string" |
- }, |
- "insertionIndex": { |
- "description": "The index where the text will be inserted, in Unicode code units, based\non TextElement indexes.\n\nThe index is zero-based and is computed from the start of the string.\nThe index may be adjusted to prevent insertions inside Unicode grapheme\nclusters. In these cases, the text will be inserted immediately after the\ngrapheme cluster.", |
- "format": "int32", |
- "type": "integer" |
- }, |
- "cellLocation": { |
- "$ref": "TableCellLocation", |
- "description": "The optional table cell location if the text is to be inserted into a table\ncell. If present, the object_id must refer to a table." |
- } |
- }, |
- "type": "object" |
- }, |
"AutoText": { |
"description": "A TextElement kind that represents auto text.", |
"id": "AutoText", |
@@ -855,6 +1170,32 @@ |
}, |
"type": "object" |
}, |
+ "Dimension": { |
+ "description": "A magnitude in a single direction in the specified units.", |
+ "id": "Dimension", |
+ "properties": { |
+ "magnitude": { |
+ "description": "The magnitude.", |
+ "format": "double", |
+ "type": "number" |
+ }, |
+ "unit": { |
+ "description": "The units for magnitude.", |
+ "enum": [ |
+ "UNIT_UNSPECIFIED", |
+ "EMU", |
+ "PT" |
+ ], |
+ "enumDescriptions": [ |
+ "The units are unknown.", |
+ "An English Metric Unit (EMU) is defined as 1/360,000 of a centimeter\nand thus there are 914,400 EMUs per inch, and 12,700 EMUs per point.", |
+ "A point, 1/72 of an inch." |
+ ], |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
"TextElement": { |
"description": "A TextElement describes the content of a range of indices in the text content\nof a Shape or TableCell.", |
"id": "TextElement", |
@@ -884,32 +1225,6 @@ |
}, |
"type": "object" |
}, |
- "Dimension": { |
- "description": "A magnitude in a single direction in the specified units.", |
- "id": "Dimension", |
- "properties": { |
- "magnitude": { |
- "description": "The magnitude.", |
- "format": "double", |
- "type": "number" |
- }, |
- "unit": { |
- "description": "The units for magnitude.", |
- "enum": [ |
- "UNIT_UNSPECIFIED", |
- "EMU", |
- "PT" |
- ], |
- "enumDescriptions": [ |
- "The units are unknown.", |
- "An English Metric Unit (EMU) is defined as 1/360,000 of a centimeter\nand thus there are 914,400 EMUs per inch, and 12,700 EMUs per point.", |
- "A point, 1/72 of an inch." |
- ], |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
"LineFill": { |
"description": "The fill of the line.", |
"id": "LineFill", |
@@ -936,6 +1251,10 @@ |
"description": "Inserts rows into a table.", |
"id": "InsertTableRowsRequest", |
"properties": { |
+ "tableObjectId": { |
+ "description": "The table to insert rows into.", |
+ "type": "string" |
+ }, |
"insertBelow": { |
"description": "Whether to insert new rows below the reference cell location.\n\n- `True`: insert below the cell.\n- `False`: insert above the cell.", |
"type": "boolean" |
@@ -948,10 +1267,6 @@ |
"cellLocation": { |
"$ref": "TableCellLocation", |
"description": "The reference table cell location from which rows will be inserted.\n\nA new row will be inserted above (or below) the row where the reference\ncell is. If the reference cell is a merged cell, a new row will be\ninserted above (or below) the merged cell." |
- }, |
- "tableObjectId": { |
- "description": "The table to insert rows into.", |
- "type": "string" |
} |
}, |
"type": "object" |
@@ -979,38 +1294,8 @@ |
"description": "The properties of the Line.\n\nWhen unset, these fields default to values that match the appearance of\nnew lines created in the Slides editor.", |
"id": "LineProperties", |
"properties": { |
- "lineFill": { |
- "$ref": "LineFill", |
- "description": "The fill of the line. The default line fill matches the defaults for new\nlines created in the Slides editor." |
- }, |
- "link": { |
- "$ref": "Link", |
- "description": "The hyperlink destination of the line. If unset, there is no link." |
- }, |
- "dashStyle": { |
- "description": "The dash style of the line.", |
- "enum": [ |
- "DASH_STYLE_UNSPECIFIED", |
- "SOLID", |
- "DOT", |
- "DASH", |
- "DASH_DOT", |
- "LONG_DASH", |
- "LONG_DASH_DOT" |
- ], |
- "enumDescriptions": [ |
- "Unspecified dash style.", |
- "Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'solid'.\nThis is the default dash style.", |
- "Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'dot'.", |
- "Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'dash'.", |
- "Alternating dashes and dots. Corresponds to ECMA-376 ST_PresetLineDashVal\nvalue 'dashDot'.", |
- "Line with large dashes. Corresponds to ECMA-376 ST_PresetLineDashVal\nvalue 'lgDash'.", |
- "Alternating large dashes and dots. Corresponds to ECMA-376\nST_PresetLineDashVal value 'lgDashDot'." |
- ], |
- "type": "string" |
- }, |
- "startArrow": { |
- "description": "The style of the arrow at the beginning of the line.", |
+ "endArrow": { |
+ "description": "The style of the arrow at the end of the line.", |
"enum": [ |
"ARROW_STYLE_UNSPECIFIED", |
"NONE", |
@@ -1039,8 +1324,8 @@ |
], |
"type": "string" |
}, |
- "endArrow": { |
- "description": "The style of the arrow at the end of the line.", |
+ "startArrow": { |
+ "description": "The style of the arrow at the beginning of the line.", |
"enum": [ |
"ARROW_STYLE_UNSPECIFIED", |
"NONE", |
@@ -1072,6 +1357,36 @@ |
"weight": { |
"$ref": "Dimension", |
"description": "The thickness of the line." |
+ }, |
+ "lineFill": { |
+ "$ref": "LineFill", |
+ "description": "The fill of the line. The default line fill matches the defaults for new\nlines created in the Slides editor." |
+ }, |
+ "dashStyle": { |
+ "description": "The dash style of the line.", |
+ "enum": [ |
+ "DASH_STYLE_UNSPECIFIED", |
+ "SOLID", |
+ "DOT", |
+ "DASH", |
+ "DASH_DOT", |
+ "LONG_DASH", |
+ "LONG_DASH_DOT" |
+ ], |
+ "enumDescriptions": [ |
+ "Unspecified dash style.", |
+ "Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'solid'.\nThis is the default dash style.", |
+ "Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'dot'.", |
+ "Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'dash'.", |
+ "Alternating dashes and dots. Corresponds to ECMA-376 ST_PresetLineDashVal\nvalue 'dashDot'.", |
+ "Line with large dashes. Corresponds to ECMA-376 ST_PresetLineDashVal\nvalue 'lgDash'.", |
+ "Alternating large dashes and dots. Corresponds to ECMA-376\nST_PresetLineDashVal value 'lgDashDot'." |
+ ], |
+ "type": "string" |
+ }, |
+ "link": { |
+ "$ref": "Link", |
+ "description": "The hyperlink destination of the line. If unset, there is no link." |
} |
}, |
"type": "object" |
@@ -1080,10 +1395,6 @@ |
"description": "A Google Slides presentation.", |
"id": "Presentation", |
"properties": { |
- "presentationId": { |
- "description": "The ID of the presentation.", |
- "type": "string" |
- }, |
"slides": { |
"description": "The slides in the presentation.\nA slide inherits properties from a slide layout.", |
"items": { |
@@ -1092,13 +1403,17 @@ |
"type": "array" |
}, |
"revisionId": { |
- "description": "The revision ID of the presentation. Can be used in update requests\nto assert that the presentation revision hasn't changed since the last\nread operation. Only populated if the user has edit access to the\npresentation.\n\nThe format of the revision ID may change over time, so it should be treated\nopaquely. A returned revision ID is only guaranteed to be valid for 24\nhours after it has been returned and cannot be shared across users. Callers\ncan assume that if two revision IDs are equal then the presentation has not\nchanged.", |
+ "description": "The revision ID of the presentation. Can be used in update requests\nto assert that the presentation revision hasn't changed since the last\nread operation. Only populated if the user has edit access to the\npresentation.\n\nThe format of the revision ID may change over time, so it should be treated\nopaquely. A returned revision ID is only guaranteed to be valid for 24\nhours after it has been returned and cannot be shared across users. If the\nrevision ID is unchanged between calls, then the presentation has not\nchanged. Conversely, a changed ID (for the same presentation and user)\nusually means the presentation has been updated; however, a changed ID can\nalso be due to internal factors such as ID format changes.", |
"type": "string" |
}, |
"notesMaster": { |
"$ref": "Page", |
"description": "The notes master in the presentation. It serves three purposes:\n\n- Placeholder shapes on a notes master contain the default text styles and\n shape properties of all placeholder shapes on notes pages. Specifically,\n a `SLIDE_IMAGE` placeholder shape contains the slide thumbnail, and a\n `BODY` placeholder shape contains the speaker notes.\n- The notes master page properties define the common page properties\n inherited by all notes pages.\n- Any other shapes on the notes master will appear on all notes pages.\n\nThe notes master is read-only." |
}, |
+ "title": { |
+ "description": "The title of the presentation.", |
+ "type": "string" |
+ }, |
"layouts": { |
"description": "The layouts in the presentation. A layout is a template that determines\nhow content is arranged and styled on the slides that inherit from that\nlayout.", |
"items": { |
@@ -1106,14 +1421,6 @@ |
}, |
"type": "array" |
}, |
- "title": { |
- "description": "The title of the presentation.", |
- "type": "string" |
- }, |
- "locale": { |
- "description": "The locale of the presentation, as an IETF BCP 47 language tag.", |
- "type": "string" |
- }, |
"masters": { |
"description": "The slide masters in the presentation. A slide master contains all common\npage elements and the common properties for a set of layouts. They serve\nthree purposes:\n\n- Placeholder shapes on a master contain the default text styles and shape\n properties of all placeholder shapes on pages that use that master.\n- The master page properties define the common page properties inherited by\n its layouts.\n- Any other shapes on the master slide will appear on all slides using that\n master, regardless of their layout.", |
"items": { |
@@ -1121,9 +1428,17 @@ |
}, |
"type": "array" |
}, |
+ "locale": { |
+ "description": "The locale of the presentation, as an IETF BCP 47 language tag.", |
+ "type": "string" |
+ }, |
"pageSize": { |
"$ref": "Size", |
"description": "The size of pages in the presentation." |
+ }, |
+ "presentationId": { |
+ "description": "The ID of the presentation.", |
+ "type": "string" |
} |
}, |
"type": "object" |
@@ -1185,6 +1500,16 @@ |
"description": "The properties of the Image.", |
"id": "ImageProperties", |
"properties": { |
+ "brightness": { |
+ "description": "The brightness effect of the image. The value should be in the interval\n[-1.0, 1.0], where 0 means no effect. This property is read-only.", |
+ "format": "float", |
+ "type": "number" |
+ }, |
+ "transparency": { |
+ "description": "The transparency effect of the image. The value should be in the interval\n[0.0, 1.0], where 0 means no effect and 1 means completely transparent.\nThis property is read-only.", |
+ "format": "float", |
+ "type": "number" |
+ }, |
"shadow": { |
"$ref": "Shadow", |
"description": "The shadow of the image. If not set, the image has no shadow. This property\nis read-only." |
@@ -1209,16 +1534,6 @@ |
"outline": { |
"$ref": "Outline", |
"description": "The outline of the image. If not set, the the image has no outline." |
- }, |
- "brightness": { |
- "description": "The brightness effect of the image. The value should be in the interval\n[-1.0, 1.0], where 0 means no effect. This property is read-only.", |
- "format": "float", |
- "type": "number" |
- }, |
- "transparency": { |
- "description": "The transparency effect of the image. The value should be in the interval\n[0.0, 1.0], where 0 means no effect and 1 means completely transparent.\nThis property is read-only.", |
- "format": "float", |
- "type": "number" |
} |
}, |
"type": "object" |
@@ -1236,13 +1551,9 @@ |
"type": "object" |
}, |
"Line": { |
- "description": "A PageElement kind representing a\nline, curved connector, or bent connector.", |
- "id": "Line", |
- "properties": { |
- "lineProperties": { |
- "$ref": "LineProperties", |
- "description": "The properties of the line." |
- }, |
+ "description": "A PageElement kind representing a\nline, curved connector, or bent connector.", |
+ "id": "Line", |
+ "properties": { |
"lineType": { |
"description": "The type of the line.", |
"enum": [ |
@@ -1270,6 +1581,28 @@ |
"Curved connector 5 form. Corresponds to ECMA-376 ST_ShapeType\n'curvedConnector5'." |
], |
"type": "string" |
+ }, |
+ "lineProperties": { |
+ "$ref": "LineProperties", |
+ "description": "The properties of the line." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "BatchUpdatePresentationResponse": { |
+ "description": "Response message from a batch update.", |
+ "id": "BatchUpdatePresentationResponse", |
+ "properties": { |
+ "presentationId": { |
+ "description": "The presentation the updates were applied to.", |
+ "type": "string" |
+ }, |
+ "replies": { |
+ "description": "The reply of the updates. This maps 1:1 with the updates, although\nreplies to some requests may be empty.", |
+ "items": { |
+ "$ref": "Response" |
+ }, |
+ "type": "array" |
} |
}, |
"type": "object" |
@@ -1278,14 +1611,6 @@ |
"description": "Creates an embedded Google Sheets chart.\n\nNOTE: Chart creation requires at least one of the spreadsheets.readonly,\nspreadsheets, drive.readonly, or drive OAuth scopes.", |
"id": "CreateSheetsChartRequest", |
"properties": { |
- "objectId": { |
- "description": "A user-supplied object ID.\n\nIf specified, the ID must be unique among all pages and page elements in\nthe presentation. The ID should start with a word character [a-zA-Z0-9_]\nand then followed by any number of the following characters [a-zA-Z0-9_-:].\nThe length of the ID should not be less than 5 or greater than 50.\nIf empty, a unique identifier will be generated.", |
- "type": "string" |
- }, |
- "elementProperties": { |
- "$ref": "PageElementProperties", |
- "description": "The element properties for the chart.\n\nWhen the aspect ratio of the provided size does not match the chart aspect\nratio, the chart is scaled and centered with respect to the size in order\nto maintain aspect ratio. The provided transform is applied after this\noperation." |
- }, |
"spreadsheetId": { |
"description": "The ID of the Google Sheets spreadsheet that contains the chart.", |
"type": "string" |
@@ -1306,24 +1631,14 @@ |
"description": "The ID of the specific chart in the Google Sheets spreadsheet.", |
"format": "int32", |
"type": "integer" |
- } |
- }, |
- "type": "object" |
- }, |
- "BatchUpdatePresentationResponse": { |
- "description": "Response message from a batch update.", |
- "id": "BatchUpdatePresentationResponse", |
- "properties": { |
- "presentationId": { |
- "description": "The presentation the updates were applied to.", |
+ }, |
+ "objectId": { |
+ "description": "A user-supplied object ID.\n\nIf specified, the ID must be unique among all pages and page elements in\nthe presentation. The ID should start with a word character [a-zA-Z0-9_]\nand then followed by any number of the following characters [a-zA-Z0-9_-:].\nThe length of the ID should not be less than 5 or greater than 50.\nIf empty, a unique identifier will be generated.", |
"type": "string" |
}, |
- "replies": { |
- "description": "The reply of the updates. This maps 1:1 with the updates, although\nreplies to some requests may be empty.", |
- "items": { |
- "$ref": "Response" |
- }, |
- "type": "array" |
+ "elementProperties": { |
+ "$ref": "PageElementProperties", |
+ "description": "The element properties for the chart.\n\nWhen the aspect ratio of the provided size does not match the chart aspect\nratio, the chart is scaled and centered with respect to the size in order\nto maintain aspect ratio. The provided transform is applied after this\noperation." |
} |
}, |
"type": "object" |
@@ -1362,30 +1677,14 @@ |
"description": "A single response from an update.", |
"id": "Response", |
"properties": { |
- "replaceAllShapesWithImage": { |
- "$ref": "ReplaceAllShapesWithImageResponse", |
- "description": "The result of replacing all shapes matching some criteria with an\nimage." |
- }, |
- "createTable": { |
- "$ref": "CreateTableResponse", |
- "description": "The result of creating a table." |
- }, |
- "replaceAllText": { |
- "$ref": "ReplaceAllTextResponse", |
- "description": "The result of replacing text." |
- }, |
- "createSlide": { |
- "$ref": "CreateSlideResponse", |
- "description": "The result of creating a slide." |
+ "createShape": { |
+ "$ref": "CreateShapeResponse", |
+ "description": "The result of creating a shape." |
}, |
"duplicateObject": { |
"$ref": "DuplicateObjectResponse", |
"description": "The result of duplicating an object." |
}, |
- "createShape": { |
- "$ref": "CreateShapeResponse", |
- "description": "The result of creating a shape." |
- }, |
"createLine": { |
"$ref": "CreateLineResponse", |
"description": "The result of creating a line." |
@@ -1405,6 +1704,22 @@ |
"createSheetsChart": { |
"$ref": "CreateSheetsChartResponse", |
"description": "The result of creating a Google Sheets chart." |
+ }, |
+ "replaceAllShapesWithImage": { |
+ "$ref": "ReplaceAllShapesWithImageResponse", |
+ "description": "The result of replacing all shapes matching some criteria with an\nimage." |
+ }, |
+ "createTable": { |
+ "$ref": "CreateTableResponse", |
+ "description": "The result of creating a table." |
+ }, |
+ "replaceAllText": { |
+ "$ref": "ReplaceAllTextResponse", |
+ "description": "The result of replacing text." |
+ }, |
+ "createSlide": { |
+ "$ref": "CreateSlideResponse", |
+ "description": "The result of creating a slide." |
} |
}, |
"type": "object" |
@@ -1503,10 +1818,26 @@ |
}, |
"type": "object" |
}, |
+ "CreateTableResponse": { |
+ "description": "The result of creating a table.", |
+ "id": "CreateTableResponse", |
+ "properties": { |
+ "objectId": { |
+ "description": "The object ID of the created table.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
"CreateTableRequest": { |
"description": "Creates a new table.", |
"id": "CreateTableRequest", |
"properties": { |
+ "rows": { |
+ "description": "Number of rows in the table.", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
"objectId": { |
"description": "A user-supplied object ID.\n\nIf you specify an ID, it must be unique among all pages and page elements\nin the presentation. The ID must start with an alphanumeric character or an\nunderscore (matches regex `[a-zA-Z0-9_]`); remaining characters\nmay include those as well as a hyphen or colon (matches regex\n`[a-zA-Z0-9_-:]`).\nThe length of the ID must not be less than 5 or greater than 50.\n\nIf you don't specify an ID, a unique one is generated.", |
"type": "string" |
@@ -1519,22 +1850,6 @@ |
"elementProperties": { |
"$ref": "PageElementProperties", |
"description": "The element properties for the table.\n\nThe table will be created at the provided size, subject to a minimum size.\nIf no size is provided, the table will be automatically sized.\n\nTable transforms must have a scale of 1 and no shear components. If no\ntransform is provided, the table will be centered on the page." |
- }, |
- "rows": { |
- "description": "Number of rows in the table.", |
- "format": "int32", |
- "type": "integer" |
- } |
- }, |
- "type": "object" |
- }, |
- "CreateTableResponse": { |
- "description": "The result of creating a table.", |
- "id": "CreateTableResponse", |
- "properties": { |
- "objectId": { |
- "description": "The object ID of the created table.", |
- "type": "string" |
} |
}, |
"type": "object" |
@@ -1543,13 +1858,6 @@ |
"description": "A PageElement kind representing a\ntable.", |
"id": "Table", |
"properties": { |
- "tableRows": { |
- "description": "Properties and contents of each row.\n\nCells that span multiple rows are contained in only one of these rows and\nhave a row_span greater\nthan 1.", |
- "items": { |
- "$ref": "TableRow" |
- }, |
- "type": "array" |
- }, |
"rows": { |
"description": "Number of rows in the table.", |
"format": "int32", |
@@ -1566,6 +1874,13 @@ |
"description": "Number of columns in the table.", |
"format": "int32", |
"type": "integer" |
+ }, |
+ "tableRows": { |
+ "description": "Properties and contents of each row.\n\nCells that span multiple rows are contained in only one of these rows and\nhave a row_span greater\nthan 1.", |
+ "items": { |
+ "$ref": "TableRow" |
+ }, |
+ "type": "array" |
} |
}, |
"type": "object" |
@@ -1574,6 +1889,10 @@ |
"description": "The page background fill.", |
"id": "PageBackgroundFill", |
"properties": { |
+ "solidFill": { |
+ "$ref": "SolidFill", |
+ "description": "Solid color fill." |
+ }, |
"propertyState": { |
"description": "The background fill property state.\n\nUpdating the the fill on a page will implicitly update this field to\n`RENDERED`, unless another value is specified in the same request. To\nhave no fill on a page, set this field to `NOT_RENDERED`. In this case,\nany other fill fields set in the same request will be ignored.", |
"enum": [ |
@@ -1591,10 +1910,6 @@ |
"stretchedPictureFill": { |
"$ref": "StretchedPictureFill", |
"description": "Stretched picture fill." |
- }, |
- "solidFill": { |
- "$ref": "SolidFill", |
- "description": "Solid color fill." |
} |
}, |
"type": "object" |
@@ -1603,14 +1918,6 @@ |
"description": "A PageElement kind representing\na linked chart embedded from Google Sheets.", |
"id": "SheetsChart", |
"properties": { |
- "sheetsChartProperties": { |
- "$ref": "SheetsChartProperties", |
- "description": "The properties of the Sheets chart." |
- }, |
- "contentUrl": { |
- "description": "The URL of an image of the embedded chart, with a default lifetime of 30\nminutes. This URL is tagged with the account of the requester. Anyone with\nthe URL effectively accesses the image as the original requester. Access to\nthe image may be lost if the presentation's sharing settings change.", |
- "type": "string" |
- }, |
"spreadsheetId": { |
"description": "The ID of the Google Sheets spreadsheet that contains the source chart.", |
"type": "string" |
@@ -1619,6 +1926,14 @@ |
"description": "The ID of the specific chart in the Google Sheets spreadsheet that is\nembedded.", |
"format": "int32", |
"type": "integer" |
+ }, |
+ "sheetsChartProperties": { |
+ "$ref": "SheetsChartProperties", |
+ "description": "The properties of the Sheets chart." |
+ }, |
+ "contentUrl": { |
+ "description": "The URL of an image of the embedded chart, with a default lifetime of 30\nminutes. This URL is tagged with the account of the requester. Anyone with\nthe URL effectively accesses the image as the original requester. Access to\nthe image may be lost if the presentation's sharing settings change.", |
+ "type": "string" |
} |
}, |
"type": "object" |
@@ -1627,14 +1942,14 @@ |
"description": "A solid color fill. The page or page element is filled entirely with the\nspecified color value.\n\nIf any field is unset, its value may be inherited from a parent placeholder\nif it exists.", |
"id": "SolidFill", |
"properties": { |
- "color": { |
- "$ref": "OpaqueColor", |
- "description": "The color value of the solid fill." |
- }, |
"alpha": { |
"description": "The fraction of this `color` that should be applied to the pixel.\nThat is, the final pixel color is defined by the equation:\n\n pixel color = alpha * (color) + (1.0 - alpha) * (background color)\n\nThis means that a value of 1.0 corresponds to a solid color, whereas\na value of 0.0 corresponds to a completely transparent color.", |
"format": "float", |
"type": "number" |
+ }, |
+ "color": { |
+ "$ref": "OpaqueColor", |
+ "description": "The color value of the solid fill." |
} |
}, |
"type": "object" |
@@ -1643,10 +1958,6 @@ |
"description": "A pair mapping a theme color type to the concrete color it represents.", |
"id": "ThemeColorPair", |
"properties": { |
- "color": { |
- "$ref": "RgbColor", |
- "description": "The concrete color corresponding to the theme color type above." |
- }, |
"type": { |
"description": "The type of the theme color.", |
"enum": [ |
@@ -1688,6 +1999,10 @@ |
"Represents the second background color." |
], |
"type": "string" |
+ }, |
+ "color": { |
+ "$ref": "RgbColor", |
+ "description": "The concrete color corresponding to the theme color type above." |
} |
}, |
"type": "object" |
@@ -1707,6 +2022,10 @@ |
"description": "Common properties for a page element.\n\nNote: When you initially create a\nPageElement, the API may modify\nthe values of both `size` and `transform`, but the\nvisual size will be unchanged.", |
"id": "PageElementProperties", |
"properties": { |
+ "size": { |
+ "$ref": "Size", |
+ "description": "The size of the element." |
+ }, |
"transform": { |
"$ref": "AffineTransform", |
"description": "The transform for the element." |
@@ -1714,10 +2033,6 @@ |
"pageObjectId": { |
"description": "The object ID of the page where the element is located.", |
"type": "string" |
- }, |
- "size": { |
- "$ref": "Size", |
- "description": "The size of the element." |
} |
}, |
"type": "object" |
@@ -1818,7 +2133,7 @@ |
"type": "string" |
}, |
"weight": { |
- "description": "The rendered weight of the text. This field can have any value that is a\nmultiple of 100 between 100 and 900, inclusive. This range corresponds to\nonly the numerical values described in the \"Cascading Style Sheets Level\n2 Revision 1 (CSS 2.1) Specification\",\n[section 15.6](https://www.w3.org/TR/CSS21/fonts.html#font-boldness). The\nnon-numerical values in the specification are disallowed. Weights greater\nthan or equal to 700 are considered bold, and weights less than 700 are\nnot bold. The default value is `400` (\"normal\").", |
+ "description": "The rendered weight of the text. This field can have any value that is a\nmultiple of `100` between `100` and `900`, inclusive. This range\ncorresponds to the numerical values described in the CSS 2.1\nSpecification, [section 15.6](https://www.w3.org/TR/CSS21/fonts.html#font-boldness),\nwith non-numerical values disallowed. Weights greater than or equal to\n`700` are considered bold, and weights less than `700`are not bold. The\ndefault value is `400` (\"normal\").", |
"format": "int32", |
"type": "integer" |
} |
@@ -1829,6 +2144,22 @@ |
"description": "A visual element rendered on a page.", |
"id": "PageElement", |
"properties": { |
+ "image": { |
+ "$ref": "Image", |
+ "description": "An image page element." |
+ }, |
+ "size": { |
+ "$ref": "Size", |
+ "description": "The size of the page element." |
+ }, |
+ "title": { |
+ "description": "The title of the page element. Combined with description to display alt\ntext.", |
+ "type": "string" |
+ }, |
+ "sheetsChart": { |
+ "$ref": "SheetsChart", |
+ "description": "A linked chart embedded from Google Sheets. Unlinked charts are\nrepresented as images." |
+ }, |
"video": { |
"$ref": "Video", |
"description": "A video page element." |
@@ -1864,22 +2195,6 @@ |
"elementGroup": { |
"$ref": "Group", |
"description": "A collection of page elements joined as a single unit." |
- }, |
- "image": { |
- "$ref": "Image", |
- "description": "An image page element." |
- }, |
- "size": { |
- "$ref": "Size", |
- "description": "The size of the page element." |
- }, |
- "sheetsChart": { |
- "$ref": "SheetsChart", |
- "description": "A linked chart embedded from Google Sheets. Unlinked charts are\nrepresented as images." |
- }, |
- "title": { |
- "description": "The title of the page element. Combined with description to display alt\ntext.", |
- "type": "string" |
} |
}, |
"type": "object" |
@@ -1961,44 +2276,24 @@ |
"type": "object" |
}, |
"Size": { |
- "description": "A width and height.", |
- "id": "Size", |
- "properties": { |
- "width": { |
- "$ref": "Dimension", |
- "description": "The width of the object." |
- }, |
- "height": { |
- "$ref": "Dimension", |
- "description": "The height of the object." |
- } |
- }, |
- "type": "object" |
- }, |
- "TextStyle": { |
- "description": "Represents the styling that can be applied to a TextRun.\n\nIf this text is contained in a shape with a parent placeholder, then these text styles may be\ninherited from the parent. Which text styles are inherited depend on the\nnesting level of lists:\n\n* A text run in a paragraph that is not in a list will inherit its text style\n from the the newline character in the paragraph at the 0 nesting level of\n the list inside the parent placeholder.\n* A text run in a paragraph that is in a list will inherit its text style\n from the newline character in the paragraph at its corresponding nesting\n level of the list inside the parent placeholder.\n\nInherited text styles are represented as unset fields in this message. If\ntext is contained in a shape without a parent placeholder, unsetting these\nfields will revert the style to a value matching the defaults in the Slides\neditor.", |
- "id": "TextStyle", |
- "properties": { |
- "weightedFontFamily": { |
- "$ref": "WeightedFontFamily", |
- "description": "The font family and rendered weight of the text. This property is\nread-only.\n\nThis field is an extension of `font_family` meant to support explicit font\nweights without breaking backwards compatibility. As such, when reading the\nstyle of a range of text, the value of `weighted_font_family.font_family`\nwill always be equal to that of `font_family`." |
- }, |
- "smallCaps": { |
- "description": "Whether or not the text is in small capital letters.", |
- "type": "boolean" |
- }, |
- "backgroundColor": { |
- "$ref": "OptionalColor", |
- "description": "The background color of the text. If set, the color is either opaque or\ntransparent, depending on if the `opaque_color` field in it is set." |
- }, |
- "link": { |
- "$ref": "Link", |
- "description": "The hyperlink destination of the text. If unset, there is no link. Links\nare not inherited from parent text.\n\nChanging the link in an update request causes some other changes to the\ntext style of the range:\n\n* When setting a link, the text foreground color will be set to\n ThemeColorType.HYPERLINK and the text will\n be underlined. If these fields are modified in the same\n request, those values will be used instead of the link defaults.\n* Setting a link on a text range that overlaps with an existing link will\n also update the existing link to point to the new URL.\n* Links are not settable on newline characters. As a result, setting a link\n on a text range that crosses a paragraph boundary, such as `\"ABC\\n123\"`,\n will separate the newline character(s) into their own text runs. The\n link will be applied separately to the runs before and after the newline.\n* Removing a link will update the text style of the range to match the\n style of the preceding text (or the default text styles if the preceding\n text is another link) unless different styles are being set in the same\n request." |
- }, |
- "underline": { |
- "description": "Whether or not the text is underlined.", |
- "type": "boolean" |
+ "description": "A width and height.", |
+ "id": "Size", |
+ "properties": { |
+ "height": { |
+ "$ref": "Dimension", |
+ "description": "The height of the object." |
}, |
+ "width": { |
+ "$ref": "Dimension", |
+ "description": "The width of the object." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "TextStyle": { |
+ "description": "Represents the styling that can be applied to a TextRun.\n\nIf this text is contained in a shape with a parent placeholder, then these text styles may be\ninherited from the parent. Which text styles are inherited depend on the\nnesting level of lists:\n\n* A text run in a paragraph that is not in a list will inherit its text style\n from the the newline character in the paragraph at the 0 nesting level of\n the list inside the parent placeholder.\n* A text run in a paragraph that is in a list will inherit its text style\n from the newline character in the paragraph at its corresponding nesting\n level of the list inside the parent placeholder.\n\nInherited text styles are represented as unset fields in this message. If\ntext is contained in a shape without a parent placeholder, unsetting these\nfields will revert the style to a value matching the defaults in the Slides\neditor.", |
+ "id": "TextStyle", |
+ "properties": { |
"foregroundColor": { |
"$ref": "OptionalColor", |
"description": "The color of the text itself. If set, the color is either opaque or\ntransparent, depending on if the `opaque_color` field in it is set." |
@@ -2038,6 +2333,26 @@ |
"The text is vertically offset downwards (subscript)." |
], |
"type": "string" |
+ }, |
+ "weightedFontFamily": { |
+ "$ref": "WeightedFontFamily", |
+ "description": "The font family and rendered weight of the text. This property is\nread-only.\n\nThis field is an extension of `font_family` meant to support explicit font\nweights without breaking backwards compatibility. As such, when reading the\nstyle of a range of text, the value of `weighted_font_family.font_family`\nwill always be equal to that of `font_family`." |
+ }, |
+ "smallCaps": { |
+ "description": "Whether or not the text is in small capital letters.", |
+ "type": "boolean" |
+ }, |
+ "backgroundColor": { |
+ "$ref": "OptionalColor", |
+ "description": "The background color of the text. If set, the color is either opaque or\ntransparent, depending on if the `opaque_color` field in it is set." |
+ }, |
+ "link": { |
+ "$ref": "Link", |
+ "description": "The hyperlink destination of the text. If unset, there is no link. Links\nare not inherited from parent text.\n\nChanging the link in an update request causes some other changes to the\ntext style of the range:\n\n* When setting a link, the text foreground color will be set to\n ThemeColorType.HYPERLINK and the text will\n be underlined. If these fields are modified in the same\n request, those values will be used instead of the link defaults.\n* Setting a link on a text range that overlaps with an existing link will\n also update the existing link to point to the new URL.\n* Links are not settable on newline characters. As a result, setting a link\n on a text range that crosses a paragraph boundary, such as `\"ABC\\n123\"`,\n will separate the newline character(s) into their own text runs. The\n link will be applied separately to the runs before and after the newline.\n* Removing a link will update the text style of the range to match the\n style of the preceding text (or the default text styles if the preceding\n text is another link) unless different styles are being set in the same\n request." |
+ }, |
+ "underline": { |
+ "description": "Whether or not the text is underlined.", |
+ "type": "boolean" |
} |
}, |
"type": "object" |
@@ -2046,6 +2361,10 @@ |
"description": "Update the properties of a Video.", |
"id": "UpdateVideoPropertiesRequest", |
"properties": { |
+ "objectId": { |
+ "description": "The object ID of the video the updates are applied to.", |
+ "type": "string" |
+ }, |
"videoProperties": { |
"$ref": "VideoProperties", |
"description": "The video properties to update." |
@@ -2054,10 +2373,6 @@ |
"description": "The fields that should be updated.\n\nAt least one field must be specified. The root `videoProperties` is\nimplied and should not be specified. A single `\"*\"` can be used as\nshort-hand for listing every field.\n\nFor example to update the video outline color, set `fields` to\n`\"outline.outlineFill.solidFill.color\"`.\n\nTo reset a property to its default value, include its field name in the\nfield mask but leave the field itself unset.", |
"format": "google-fieldmask", |
"type": "string" |
- }, |
- "objectId": { |
- "description": "The object ID of the video the updates are applied to.", |
- "type": "string" |
} |
}, |
"type": "object" |
@@ -2066,6 +2381,22 @@ |
"description": "A single kind of update to apply to a presentation.", |
"id": "Request", |
"properties": { |
+ "deleteObject": { |
+ "$ref": "DeleteObjectRequest", |
+ "description": "Deletes a page or page element from the presentation." |
+ }, |
+ "updateParagraphStyle": { |
+ "$ref": "UpdateParagraphStyleRequest", |
+ "description": "Updates the styling of paragraphs within a Shape or Table." |
+ }, |
+ "duplicateObject": { |
+ "$ref": "DuplicateObjectRequest", |
+ "description": "Duplicates a slide or page element." |
+ }, |
+ "deleteTableColumn": { |
+ "$ref": "DeleteTableColumnRequest", |
+ "description": "Deletes a column from a table." |
+ }, |
"updateVideoProperties": { |
"$ref": "UpdateVideoPropertiesRequest", |
"description": "Updates the properties of a Video." |
@@ -2114,14 +2445,14 @@ |
"$ref": "UpdateImagePropertiesRequest", |
"description": "Updates the properties of an Image." |
}, |
- "insertTableRows": { |
- "$ref": "InsertTableRowsRequest", |
- "description": "Inserts rows into a table." |
- }, |
"createSlide": { |
"$ref": "CreateSlideRequest", |
"description": "Creates a new slide." |
}, |
+ "insertTableRows": { |
+ "$ref": "InsertTableRowsRequest", |
+ "description": "Inserts rows into a table." |
+ }, |
"updateLineProperties": { |
"$ref": "UpdateLinePropertiesRequest", |
"description": "Updates the properties of a Line." |
@@ -2166,29 +2497,13 @@ |
"$ref": "RefreshSheetsChartRequest", |
"description": "Refreshes a Google Sheets chart." |
}, |
- "createTable": { |
- "$ref": "CreateTableRequest", |
- "description": "Creates a new table." |
- }, |
"updateTableCellProperties": { |
"$ref": "UpdateTableCellPropertiesRequest", |
"description": "Updates the properties of a TableCell." |
}, |
- "deleteObject": { |
- "$ref": "DeleteObjectRequest", |
- "description": "Deletes a page or page element from the presentation." |
- }, |
- "updateParagraphStyle": { |
- "$ref": "UpdateParagraphStyleRequest", |
- "description": "Updates the styling of paragraphs within a Shape or Table." |
- }, |
- "deleteTableColumn": { |
- "$ref": "DeleteTableColumnRequest", |
- "description": "Deletes a column from a table." |
- }, |
- "duplicateObject": { |
- "$ref": "DuplicateObjectRequest", |
- "description": "Duplicates a slide or page element." |
+ "createTable": { |
+ "$ref": "CreateTableRequest", |
+ "description": "Creates a new table." |
} |
}, |
"type": "object" |
@@ -2197,10 +2512,6 @@ |
"description": "Update the properties of an Image.", |
"id": "UpdateImagePropertiesRequest", |
"properties": { |
- "objectId": { |
- "description": "The object ID of the image the updates are applied to.", |
- "type": "string" |
- }, |
"fields": { |
"description": "The fields that should be updated.\n\nAt least one field must be specified. The root `imageProperties` is\nimplied and should not be specified. A single `\"*\"` can be used as\nshort-hand for listing every field.\n\nFor example to update the image outline color, set `fields` to\n`\"outline.outlineFill.solidFill.color\"`.\n\nTo reset a property to its default value, include its field name in the\nfield mask but leave the field itself unset.", |
"format": "google-fieldmask", |
@@ -2209,6 +2520,10 @@ |
"imageProperties": { |
"$ref": "ImageProperties", |
"description": "The image properties to update." |
+ }, |
+ "objectId": { |
+ "description": "The object ID of the image the updates are applied to.", |
+ "type": "string" |
} |
}, |
"type": "object" |
@@ -2217,39 +2532,12 @@ |
"description": "Styles that apply to a whole paragraph.\n\nIf this text is contained in a shape with a parent placeholder, then these paragraph styles may be\ninherited from the parent. Which paragraph styles are inherited depend on the\nnesting level of lists:\n\n* A paragraph not in a list will inherit its paragraph style from the\n paragraph at the 0 nesting level of the list inside the parent placeholder.\n* A paragraph in a list will inherit its paragraph style from the paragraph\n at its corresponding nesting level of the list inside the parent\n placeholder.\n\nInherited paragraph styles are represented as unset fields in this message.", |
"id": "ParagraphStyle", |
"properties": { |
- "alignment": { |
- "description": "The text alignment for this paragraph.", |
- "enum": [ |
- "ALIGNMENT_UNSPECIFIED", |
- "START", |
- "CENTER", |
- "END", |
- "JUSTIFIED" |
- ], |
- "enumDescriptions": [ |
- "The paragraph alignment is inherited from the parent.", |
- "The paragraph is aligned to the start of the line. Left-aligned for\nLTR text, right-aligned otherwise.", |
- "The paragraph is centered.", |
- "The paragraph is aligned to the end of the line. Right-aligned for\nLTR text, left-aligned otherwise.", |
- "The paragraph is justified." |
- ], |
- "type": "string" |
- }, |
- "lineSpacing": { |
- "description": "The amount of space between lines, as a percentage of normal, where normal\nis represented as 100.0. If unset, the value is inherited from the parent.", |
- "format": "float", |
- "type": "number" |
- }, |
- "indentFirstLine": { |
- "$ref": "Dimension", |
- "description": "The amount of indentation for the start of the first line of the paragraph.\nIf unset, the value is inherited from the parent." |
- }, |
"spaceBelow": { |
"$ref": "Dimension", |
"description": "The amount of extra space above the paragraph. If unset, the value is\ninherited from the parent." |
}, |
"direction": { |
- "description": "The text direction of this paragraph. If unset, the value defaults to\nLEFT_TO_RIGHT\nsince text direction is not inherited.", |
+ "description": "The text direction of this paragraph. If unset, the value defaults to\nLEFT_TO_RIGHT since\ntext direction is not inherited.", |
"enum": [ |
"TEXT_DIRECTION_UNSPECIFIED", |
"LEFT_TO_RIGHT", |
@@ -2287,6 +2575,33 @@ |
"spaceAbove": { |
"$ref": "Dimension", |
"description": "The amount of extra space above the paragraph. If unset, the value is\ninherited from the parent." |
+ }, |
+ "alignment": { |
+ "description": "The text alignment for this paragraph.", |
+ "enum": [ |
+ "ALIGNMENT_UNSPECIFIED", |
+ "START", |
+ "CENTER", |
+ "END", |
+ "JUSTIFIED" |
+ ], |
+ "enumDescriptions": [ |
+ "The paragraph alignment is inherited from the parent.", |
+ "The paragraph is aligned to the start of the line. Left-aligned for\nLTR text, right-aligned otherwise.", |
+ "The paragraph is centered.", |
+ "The paragraph is aligned to the end of the line. Right-aligned for\nLTR text, left-aligned otherwise.", |
+ "The paragraph is justified." |
+ ], |
+ "type": "string" |
+ }, |
+ "lineSpacing": { |
+ "description": "The amount of space between lines, as a percentage of normal, where normal\nis represented as 100.0. If unset, the value is inherited from the parent.", |
+ "format": "float", |
+ "type": "number" |
+ }, |
+ "indentFirstLine": { |
+ "$ref": "Dimension", |
+ "description": "The amount of indentation for the start of the first line of the paragraph.\nIf unset, the value is inherited from the parent." |
} |
}, |
"type": "object" |
@@ -2314,39 +2629,10 @@ |
}, |
"type": "object" |
}, |
- "RefreshSheetsChartRequest": { |
- "description": "Refreshes an embedded Google Sheets chart by replacing it with the latest\nversion of the chart from Google Sheets.\n\nNOTE: Refreshing charts requires at least one of the spreadsheets.readonly,\nspreadsheets, drive.readonly, or drive OAuth scopes.", |
- "id": "RefreshSheetsChartRequest", |
- "properties": { |
- "objectId": { |
- "description": "The object ID of the chart to refresh.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
"Outline": { |
"description": "The outline of a PageElement.\n\nIf these fields are unset, they may be inherited from a parent placeholder\nif it exists. If there is no parent, the fields will default to the value\nused for new page elements created in the Slides editor, which may depend on\nthe page element kind.", |
"id": "Outline", |
"properties": { |
- "propertyState": { |
- "description": "The outline property state.\n\nUpdating the the outline on a page element will implicitly update this\nfield to`RENDERED`, unless another value is specified in the same request.\nTo have no outline on a page element, set this field to `NOT_RENDERED`. In\nthis case, any other outline fields set in the same request will be\nignored.", |
- "enum": [ |
- "RENDERED", |
- "NOT_RENDERED", |
- "INHERIT" |
- ], |
- "enumDescriptions": [ |
- "If a property's state is RENDERED, then the element has the corresponding\nproperty when rendered on a page. If the element is a placeholder shape as\ndetermined by the placeholder\nfield, and it inherits from a placeholder shape, the corresponding field\nmay be unset, meaning that the property value is inherited from a parent\nplaceholder. If the element does not inherit, then the field will contain\nthe rendered value. This is the default value.", |
- "If a property's state is NOT_RENDERED, then the element does not have the\ncorresponding property when rendered on a page. However, the field may\nstill be set so it can be inherited by child shapes. To remove a property\nfrom a rendered element, set its property_state to NOT_RENDERED.", |
- "If a property's state is INHERIT, then the property state uses the value of\ncorresponding `property_state` field on the parent shape. Elements that do\nnot inherit will never have an INHERIT property state." |
- ], |
- "type": "string" |
- }, |
- "outlineFill": { |
- "$ref": "OutlineFill", |
- "description": "The fill of the outline." |
- }, |
"weight": { |
"$ref": "Dimension", |
"description": "The thickness of the outline." |
@@ -2372,6 +2658,35 @@ |
"Alternating large dashes and dots. Corresponds to ECMA-376\nST_PresetLineDashVal value 'lgDashDot'." |
], |
"type": "string" |
+ }, |
+ "propertyState": { |
+ "description": "The outline property state.\n\nUpdating the the outline on a page element will implicitly update this\nfield to`RENDERED`, unless another value is specified in the same request.\nTo have no outline on a page element, set this field to `NOT_RENDERED`. In\nthis case, any other outline fields set in the same request will be\nignored.", |
+ "enum": [ |
+ "RENDERED", |
+ "NOT_RENDERED", |
+ "INHERIT" |
+ ], |
+ "enumDescriptions": [ |
+ "If a property's state is RENDERED, then the element has the corresponding\nproperty when rendered on a page. If the element is a placeholder shape as\ndetermined by the placeholder\nfield, and it inherits from a placeholder shape, the corresponding field\nmay be unset, meaning that the property value is inherited from a parent\nplaceholder. If the element does not inherit, then the field will contain\nthe rendered value. This is the default value.", |
+ "If a property's state is NOT_RENDERED, then the element does not have the\ncorresponding property when rendered on a page. However, the field may\nstill be set so it can be inherited by child shapes. To remove a property\nfrom a rendered element, set its property_state to NOT_RENDERED.", |
+ "If a property's state is INHERIT, then the property state uses the value of\ncorresponding `property_state` field on the parent shape. Elements that do\nnot inherit will never have an INHERIT property state." |
+ ], |
+ "type": "string" |
+ }, |
+ "outlineFill": { |
+ "$ref": "OutlineFill", |
+ "description": "The fill of the outline." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "RefreshSheetsChartRequest": { |
+ "description": "Refreshes an embedded Google Sheets chart by replacing it with the latest\nversion of the chart from Google Sheets.\n\nNOTE: Refreshing charts requires at least one of the spreadsheets.readonly,\nspreadsheets, drive.readonly, or drive OAuth scopes.", |
+ "id": "RefreshSheetsChartRequest", |
+ "properties": { |
+ "objectId": { |
+ "description": "The object ID of the chart to refresh.", |
+ "type": "string" |
} |
}, |
"type": "object" |
@@ -2467,6 +2782,13 @@ |
"description": "Creates a new slide.", |
"id": "CreateSlideRequest", |
"properties": { |
+ "placeholderIdMappings": { |
+ "description": "An optional list of object ID mappings from the placeholder(s) on the layout to the placeholder(s)\nthat will be created on the new slide from that specified layout. Can only\nbe used when `slide_layout_reference` is specified.", |
+ "items": { |
+ "$ref": "LayoutPlaceholderIdMapping" |
+ }, |
+ "type": "array" |
+ }, |
"slideLayoutReference": { |
"$ref": "LayoutReference", |
"description": "Layout reference of the slide to be inserted, based on the *current\nmaster*, which is one of the following:\n\n- The master of the previous slide index.\n- The master of the first slide, if the insertion_index is zero.\n- The first master in the presentation, if there are no slides.\n\nIf the LayoutReference is not found in the current master, a 400 bad\nrequest error is returned.\n\nIf you don't specify a layout reference, then the new slide will use the\npredefined layout `BLANK`." |
@@ -2479,13 +2801,6 @@ |
"description": "The optional zero-based index indicating where to insert the slides.\n\nIf you don't specify an index, the new slide is created at the end.", |
"format": "int32", |
"type": "integer" |
- }, |
- "placeholderIdMappings": { |
- "description": "An optional list of object ID mappings from the placeholder(s) on the layout to the placeholder(s)\nthat will be created on the new slide from that specified layout. Can only\nbe used when `slide_layout_reference` is specified.", |
- "items": { |
- "$ref": "LayoutPlaceholderIdMapping" |
- }, |
- "type": "array" |
} |
}, |
"type": "object" |
@@ -2503,7 +2818,7 @@ |
}, |
"writeControl": { |
"$ref": "WriteControl", |
- "description": "Provides control over how write requests are executed, such as\nconditionally updating the presentation." |
+ "description": "Provides control over how write requests are executed." |
} |
}, |
"type": "object" |
@@ -2512,19 +2827,19 @@ |
"description": "The general text content. The text must reside in a compatible shape (e.g.\ntext box or rectangle) or a table cell in a page.", |
"id": "TextContent", |
"properties": { |
- "textElements": { |
- "description": "The text contents broken down into its component parts, including styling\ninformation. This property is read-only.", |
- "items": { |
- "$ref": "TextElement" |
- }, |
- "type": "array" |
- }, |
"lists": { |
"additionalProperties": { |
"$ref": "List" |
}, |
"description": "The bulleted lists contained in this text, keyed by list ID.", |
"type": "object" |
+ }, |
+ "textElements": { |
+ "description": "The text contents broken down into its component parts, including styling\ninformation. This property is read-only.", |
+ "items": { |
+ "$ref": "TextElement" |
+ }, |
+ "type": "array" |
} |
}, |
"type": "object" |
@@ -2555,6 +2870,10 @@ |
"description": "Deletes bullets from all of the paragraphs that overlap with the given text\nindex range.\n\nThe nesting level of each paragraph will be visually preserved by adding\nindent to the start of the corresponding paragraph.", |
"id": "DeleteParagraphBulletsRequest", |
"properties": { |
+ "cellLocation": { |
+ "$ref": "TableCellLocation", |
+ "description": "The optional table cell location if the text to be modified is in a table\ncell. If present, the object_id must refer to a table." |
+ }, |
"objectId": { |
"description": "The object ID of the shape or table containing the text to delete bullets\nfrom.", |
"type": "string" |
@@ -2562,10 +2881,6 @@ |
"textRange": { |
"$ref": "Range", |
"description": "The range of text to delete bullets from, based on TextElement indexes." |
- }, |
- "cellLocation": { |
- "$ref": "TableCellLocation", |
- "description": "The optional table cell location if the text to be modified is in a table\ncell. If present, the object_id must refer to a table." |
} |
}, |
"type": "object" |
@@ -2574,13 +2889,13 @@ |
"description": "A TextElement kind that represents the beginning of a new paragraph.", |
"id": "ParagraphMarker", |
"properties": { |
- "bullet": { |
- "$ref": "Bullet", |
- "description": "The bullet for this paragraph. If not present, the paragraph does not\nbelong to a list." |
- }, |
"style": { |
"$ref": "ParagraphStyle", |
"description": "The paragraph's style" |
+ }, |
+ "bullet": { |
+ "$ref": "Bullet", |
+ "description": "The bullet for this paragraph. If not present, the paragraph does not\nbelong to a list." |
} |
}, |
"type": "object" |
@@ -2634,6 +2949,10 @@ |
"description": "The user-specified ID mapping for a placeholder that will be created on a\nslide from a specified layout.", |
"id": "LayoutPlaceholderIdMapping", |
"properties": { |
+ "objectId": { |
+ "description": "A user-supplied object ID for the placeholder identified above that to be\ncreated onto a slide.\n\nIf you specify an ID, it must be unique among all pages and page elements\nin the presentation. The ID must start with an alphanumeric character or an\nunderscore (matches regex `[a-zA-Z0-9_]`); remaining characters\nmay include those as well as a hyphen or colon (matches regex\n`[a-zA-Z0-9_-:]`).\nThe length of the ID must not be less than 5 or greater than 50.\n\nIf you don't specify an ID, a unique one is generated.", |
+ "type": "string" |
+ }, |
"layoutPlaceholder": { |
"$ref": "Placeholder", |
"description": "The placeholder on a layout that will be applied to a slide. Only type and index are needed. For example, a\npredefined `TITLE_AND_BODY` layout may usually have a TITLE placeholder\nwith index 0 and a BODY placeholder with index 0." |
@@ -2641,10 +2960,6 @@ |
"layoutPlaceholderObjectId": { |
"description": "The object ID of the placeholder on a layout that will be applied\nto a slide.", |
"type": "string" |
- }, |
- "objectId": { |
- "description": "A user-supplied object ID for the placeholder identified above that to be\ncreated onto a slide.\n\nIf you specify an ID, it must be unique among all pages and page elements\nin the presentation. The ID must start with an alphanumeric character or an\nunderscore (matches regex `[a-zA-Z0-9_]`); remaining characters\nmay include those as well as a hyphen or colon (matches regex\n`[a-zA-Z0-9_-:]`).\nThe length of the ID must not be less than 5 or greater than 50.\n\nIf you don't specify an ID, a unique one is generated.", |
- "type": "string" |
} |
}, |
"type": "object" |
@@ -2653,10 +2968,6 @@ |
"description": "Update the properties of a Shape.", |
"id": "UpdateShapePropertiesRequest", |
"properties": { |
- "shapeProperties": { |
- "$ref": "ShapeProperties", |
- "description": "The shape properties to update." |
- }, |
"fields": { |
"description": "The fields that should be updated.\n\nAt least one field must be specified. The root `shapeProperties` is\nimplied and should not be specified. A single `\"*\"` can be used as\nshort-hand for listing every field.\n\nFor example to update the shape background solid fill color, set `fields`\nto `\"shapeBackgroundFill.solidFill.color\"`.\n\nTo reset a property to its default value, include its field name in the\nfield mask but leave the field itself unset.", |
"format": "google-fieldmask", |
@@ -2665,6 +2976,10 @@ |
"objectId": { |
"description": "The object ID of the shape the updates are applied to.", |
"type": "string" |
+ }, |
+ "shapeProperties": { |
+ "$ref": "ShapeProperties", |
+ "description": "The shape properties to update." |
} |
}, |
"type": "object" |
@@ -2790,17 +3105,6 @@ |
}, |
"type": "object" |
}, |
- "CreateShapeResponse": { |
- "description": "The result of creating a shape.", |
- "id": "CreateShapeResponse", |
- "properties": { |
- "objectId": { |
- "description": "The object ID of the created shape.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
"RgbColor": { |
"description": "An RGB color.", |
"id": "RgbColor", |
@@ -2823,6 +3127,17 @@ |
}, |
"type": "object" |
}, |
+ "CreateShapeResponse": { |
+ "description": "The result of creating a shape.", |
+ "id": "CreateShapeResponse", |
+ "properties": { |
+ "objectId": { |
+ "description": "The object ID of the created shape.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
"CreateLineRequest": { |
"description": "Creates a line.", |
"id": "CreateLineRequest", |
@@ -3218,35 +3533,6 @@ |
}, |
"type": "object" |
}, |
- "TableCell": { |
- "description": "Properties and contents of each table cell.", |
- "id": "TableCell", |
- "properties": { |
- "location": { |
- "$ref": "TableCellLocation", |
- "description": "The location of the cell within the table." |
- }, |
- "rowSpan": { |
- "description": "Row span of the cell.", |
- "format": "int32", |
- "type": "integer" |
- }, |
- "columnSpan": { |
- "description": "Column span of the cell.", |
- "format": "int32", |
- "type": "integer" |
- }, |
- "text": { |
- "$ref": "TextContent", |
- "description": "The text content of the cell." |
- }, |
- "tableCellProperties": { |
- "$ref": "TableCellProperties", |
- "description": "The properties of the table cell." |
- } |
- }, |
- "type": "object" |
- }, |
"NestingLevel": { |
"description": "Contains properties describing the look and feel of a list bullet at a given\nlevel of nesting.", |
"id": "NestingLevel", |
@@ -3258,257 +3544,65 @@ |
}, |
"type": "object" |
}, |
- "UpdateLinePropertiesRequest": { |
- "description": "Updates the properties of a Line.", |
- "id": "UpdateLinePropertiesRequest", |
- "properties": { |
- "objectId": { |
- "description": "The object ID of the line the update is applied to.", |
- "type": "string" |
- }, |
- "lineProperties": { |
- "$ref": "LineProperties", |
- "description": "The line properties to update." |
- }, |
- "fields": { |
- "description": "The fields that should be updated.\n\nAt least one field must be specified. The root `lineProperties` is\nimplied and should not be specified. A single `\"*\"` can be used as\nshort-hand for listing every field.\n\nFor example to update the line solid fill color, set `fields` to\n`\"lineFill.solidFill.color\"`.\n\nTo reset a property to its default value, include its field name in the\nfield mask but leave the field itself unset.", |
- "format": "google-fieldmask", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "TableCellBackgroundFill": { |
- "description": "The table cell background fill.", |
- "id": "TableCellBackgroundFill", |
- "properties": { |
- "propertyState": { |
- "description": "The background fill property state.\n\nUpdating the the fill on a table cell will implicitly update this field\nto `RENDERED`, unless another value is specified in the same request. To\nhave no fill on a table cell, set this field to `NOT_RENDERED`. In this\ncase, any other fill fields set in the same request will be ignored.", |
- "enum": [ |
- "RENDERED", |
- "NOT_RENDERED", |
- "INHERIT" |
- ], |
- "enumDescriptions": [ |
- "If a property's state is RENDERED, then the element has the corresponding\nproperty when rendered on a page. If the element is a placeholder shape as\ndetermined by the placeholder\nfield, and it inherits from a placeholder shape, the corresponding field\nmay be unset, meaning that the property value is inherited from a parent\nplaceholder. If the element does not inherit, then the field will contain\nthe rendered value. This is the default value.", |
- "If a property's state is NOT_RENDERED, then the element does not have the\ncorresponding property when rendered on a page. However, the field may\nstill be set so it can be inherited by child shapes. To remove a property\nfrom a rendered element, set its property_state to NOT_RENDERED.", |
- "If a property's state is INHERIT, then the property state uses the value of\ncorresponding `property_state` field on the parent shape. Elements that do\nnot inherit will never have an INHERIT property state." |
- ], |
- "type": "string" |
- }, |
- "solidFill": { |
- "$ref": "SolidFill", |
- "description": "Solid color fill." |
- } |
- }, |
- "type": "object" |
- }, |
- "UpdateSlidesPositionRequest": { |
- "description": "Updates the position of slides in the presentation.", |
- "id": "UpdateSlidesPositionRequest", |
- "properties": { |
- "slideObjectIds": { |
- "description": "The IDs of the slides in the presentation that should be moved.\nThe slides in this list must be in existing presentation order, without\nduplicates.", |
- "items": { |
- "type": "string" |
- }, |
- "type": "array" |
- }, |
- "insertionIndex": { |
- "description": "The index where the slides should be inserted, based on the slide\narrangement before the move takes place. Must be between zero and the\nnumber of slides in the presentation, inclusive.", |
- "format": "int32", |
- "type": "integer" |
- } |
- }, |
- "type": "object" |
- }, |
- "UpdatePagePropertiesRequest": { |
- "description": "Updates the properties of a Page.", |
- "id": "UpdatePagePropertiesRequest", |
- "properties": { |
- "fields": { |
- "description": "The fields that should be updated.\n\nAt least one field must be specified. The root `pageProperties` is\nimplied and should not be specified. A single `\"*\"` can be used as\nshort-hand for listing every field.\n\nFor example to update the page background solid fill color, set `fields`\nto `\"pageBackgroundFill.solidFill.color\"`.\n\nTo reset a property to its default value, include its field name in the\nfield mask but leave the field itself unset.", |
- "format": "google-fieldmask", |
- "type": "string" |
- }, |
- "objectId": { |
- "description": "The object ID of the page the update is applied to.", |
- "type": "string" |
- }, |
- "pageProperties": { |
- "$ref": "PageProperties", |
- "description": "The page properties to update." |
- } |
- }, |
- "type": "object" |
- }, |
- "Group": { |
- "description": "A PageElement kind representing a\njoined collection of PageElements.", |
- "id": "Group", |
- "properties": { |
- "children": { |
- "description": "The collection of elements in the group. The minimum size of a group is 2.", |
- "items": { |
- "$ref": "PageElement" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "Placeholder": { |
- "description": "The placeholder information that uniquely identifies a placeholder shape.", |
- "id": "Placeholder", |
+ "TableCell": { |
+ "description": "Properties and contents of each table cell.", |
+ "id": "TableCell", |
"properties": { |
- "index": { |
- "description": "The index of the placeholder. If the same placeholder types are the present\nin the same page, they would have different index values.", |
- "format": "int32", |
- "type": "integer" |
+ "text": { |
+ "$ref": "TextContent", |
+ "description": "The text content of the cell." |
}, |
- "type": { |
- "description": "The type of the placeholder.", |
- "enum": [ |
- "NONE", |
- "BODY", |
- "CHART", |
- "CLIP_ART", |
- "CENTERED_TITLE", |
- "DIAGRAM", |
- "DATE_AND_TIME", |
- "FOOTER", |
- "HEADER", |
- "MEDIA", |
- "OBJECT", |
- "PICTURE", |
- "SLIDE_NUMBER", |
- "SUBTITLE", |
- "TABLE", |
- "TITLE", |
- "SLIDE_IMAGE" |
- ], |
- "enumDescriptions": [ |
- "Default value, signifies it is not a placeholder.", |
- "Body text.", |
- "Chart or graph.", |
- "Clip art image.", |
- "Title centered.", |
- "Diagram.", |
- "Date and time.", |
- "Footer text.", |
- "Header text.", |
- "Multimedia.", |
- "Any content type.", |
- "Picture.", |
- "Number of a slide.", |
- "Subtitle.", |
- "Table.", |
- "Slide title.", |
- "Slide image." |
- ], |
- "type": "string" |
+ "tableCellProperties": { |
+ "$ref": "TableCellProperties", |
+ "description": "The properties of the table cell." |
}, |
- "parentObjectId": { |
- "description": "The object ID of this shape's parent placeholder.\nIf unset, the parent placeholder shape does not exist, so the shape does\nnot inherit properties from any other shape.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "DuplicateObjectRequest": { |
- "description": "Duplicates a slide or page element.\n\nWhen duplicating a slide, the duplicate slide will be created immediately\nfollowing the specified slide. When duplicating a page element, the duplicate\nwill be placed on the same page at the same position as the original.", |
- "id": "DuplicateObjectRequest", |
- "properties": { |
- "objectIds": { |
- "additionalProperties": { |
- "type": "string" |
- }, |
- "description": "The object being duplicated may contain other objects, for example when\nduplicating a slide or a group page element. This map defines how the IDs\nof duplicated objects are generated: the keys are the IDs of the original\nobjects and its values are the IDs that will be assigned to the\ncorresponding duplicate object. The ID of the source object's duplicate\nmay be specified in this map as well, using the same value of the\n`object_id` field as a key and the newly desired ID as the value.\n\nAll keys must correspond to existing IDs in the presentation. All values\nmust be unique in the presentation and must start with an alphanumeric\ncharacter or an underscore (matches regex `[a-zA-Z0-9_]`); remaining\ncharacters may include those as well as a hyphen or colon (matches regex\n`[a-zA-Z0-9_-:]`). The length of the new ID must not be less than 5 or\ngreater than 50.\n\nIf any IDs of source objects are omitted from the map, a new random ID will\nbe assigned. If the map is empty or unset, all duplicate objects will\nreceive a new random ID.", |
- "type": "object" |
+ "location": { |
+ "$ref": "TableCellLocation", |
+ "description": "The location of the cell within the table." |
}, |
- "objectId": { |
- "description": "The ID of the object to duplicate.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "ReplaceAllTextRequest": { |
- "description": "Replaces all instances of text matching a criteria with replace text.", |
- "id": "ReplaceAllTextRequest", |
- "properties": { |
- "replaceText": { |
- "description": "The text that will replace the matched text.", |
- "type": "string" |
+ "rowSpan": { |
+ "description": "Row span of the cell.", |
+ "format": "int32", |
+ "type": "integer" |
}, |
- "containsText": { |
- "$ref": "SubstringMatchCriteria", |
- "description": "Finds text in a shape matching this substring." |
+ "columnSpan": { |
+ "description": "Column span of the cell.", |
+ "format": "int32", |
+ "type": "integer" |
} |
}, |
"type": "object" |
}, |
- "Page": { |
- "description": "A page in a presentation.", |
- "id": "Page", |
+ "UpdateLinePropertiesRequest": { |
+ "description": "Updates the properties of a Line.", |
+ "id": "UpdateLinePropertiesRequest", |
"properties": { |
"objectId": { |
- "description": "The object ID for this page. Object IDs used by\nPage and\nPageElement share the same namespace.", |
- "type": "string" |
- }, |
- "revisionId": { |
- "description": "The revision ID of the presentation containing this page. Can be used in\nupdate requests to assert that the presentation revision hasn't changed\nsince the last read operation. Only populated if the user has edit access\nto the presentation.\n\nThe format of the revision ID may change over time, so it should be treated\nopaquely. A returned revision ID is only guaranteed to be valid for 24\nhours after it has been returned and cannot be shared across\nusers. Callers can assume that if two revision IDs are equal then the\npresentation has not changed.", |
+ "description": "The object ID of the line the update is applied to.", |
"type": "string" |
}, |
- "layoutProperties": { |
- "$ref": "LayoutProperties", |
- "description": "Layout specific properties. Only set if page_type = LAYOUT." |
- }, |
- "pageElements": { |
- "description": "The page elements rendered on the page.", |
- "items": { |
- "$ref": "PageElement" |
- }, |
- "type": "array" |
+ "lineProperties": { |
+ "$ref": "LineProperties", |
+ "description": "The line properties to update." |
}, |
- "pageType": { |
- "description": "The type of the page.", |
- "enum": [ |
- "SLIDE", |
- "MASTER", |
- "LAYOUT", |
- "NOTES", |
- "NOTES_MASTER" |
- ], |
- "enumDescriptions": [ |
- "A slide page.", |
- "A master slide page.", |
- "A layout page.", |
- "A notes page.", |
- "A notes master page." |
- ], |
+ "fields": { |
+ "description": "The fields that should be updated.\n\nAt least one field must be specified. The root `lineProperties` is\nimplied and should not be specified. A single `\"*\"` can be used as\nshort-hand for listing every field.\n\nFor example to update the line solid fill color, set `fields` to\n`\"lineFill.solidFill.color\"`.\n\nTo reset a property to its default value, include its field name in the\nfield mask but leave the field itself unset.", |
+ "format": "google-fieldmask", |
"type": "string" |
- }, |
- "notesProperties": { |
- "$ref": "NotesProperties", |
- "description": "Notes specific properties. Only set if page_type = NOTES." |
- }, |
- "pageProperties": { |
- "$ref": "PageProperties", |
- "description": "The properties of the page." |
- }, |
- "slideProperties": { |
- "$ref": "SlideProperties", |
- "description": "Slide specific properties. Only set if page_type = SLIDE." |
} |
}, |
"type": "object" |
}, |
- "ShapeBackgroundFill": { |
- "description": "The shape background fill.", |
- "id": "ShapeBackgroundFill", |
+ "TableCellBackgroundFill": { |
+ "description": "The table cell background fill.", |
+ "id": "TableCellBackgroundFill", |
"properties": { |
+ "solidFill": { |
+ "$ref": "SolidFill", |
+ "description": "Solid color fill." |
+ }, |
"propertyState": { |
- "description": "The background fill property state.\n\nUpdating the the fill on a shape will implicitly update this field to\n`RENDERED`, unless another value is specified in the same request. To\nhave no fill on a shape, set this field to `NOT_RENDERED`. In this case,\nany other fill fields set in the same request will be ignored.", |
+ "description": "The background fill property state.\n\nUpdating the the fill on a table cell will implicitly update this field\nto `RENDERED`, unless another value is specified in the same request. To\nhave no fill on a table cell, set this field to `NOT_RENDERED`. In this\ncase, any other fill fields set in the same request will be ignored.", |
"enum": [ |
"RENDERED", |
"NOT_RENDERED", |
@@ -3520,357 +3614,263 @@ |
"If a property's state is INHERIT, then the property state uses the value of\ncorresponding `property_state` field on the parent shape. Elements that do\nnot inherit will never have an INHERIT property state." |
], |
"type": "string" |
- }, |
- "solidFill": { |
- "$ref": "SolidFill", |
- "description": "Solid color fill." |
} |
}, |
"type": "object" |
}, |
- "CropProperties": { |
- "description": "The crop properties of an object enclosed in a container. For example, an\nImage.\n\nThe crop properties is represented by the offsets of four edges which define\na crop rectangle. The offsets are measured in percentage from the\ncorresponding edges of the object's original bounding rectangle towards\ninside, relative to the object's original dimensions.\n\n- If the offset is in the interval (0, 1), the corresponding edge of crop\nrectangle is positioned inside of the object's original bounding rectangle.\n- If the offset is negative or greater than 1, the corresponding edge of crop\nrectangle is positioned outside of the object's original bounding rectangle.\n- If the left edge of the crop rectangle is on the right side of its right\nedge, the object will be flipped horizontally.\n- If the top edge of the crop rectangle is below its bottom edge, the object\nwill be flipped vertically.\n- If all offsets and rotation angle is 0, the object is not cropped.\n\nAfter cropping, the content in the crop rectangle will be stretched to fit\nits container.", |
- "id": "CropProperties", |
+ "UpdateSlidesPositionRequest": { |
+ "description": "Updates the position of slides in the presentation.", |
+ "id": "UpdateSlidesPositionRequest", |
"properties": { |
- "topOffset": { |
- "description": "The offset specifies the top edge of the crop rectangle that is located\nbelow the original bounding rectangle top edge, relative to the object's\noriginal height.", |
- "format": "float", |
- "type": "number" |
- }, |
- "leftOffset": { |
- "description": "The offset specifies the left edge of the crop rectangle that is located to\nthe right of the original bounding rectangle left edge, relative to the\nobject's original width.", |
- "format": "float", |
- "type": "number" |
- }, |
- "rightOffset": { |
- "description": "The offset specifies the right edge of the crop rectangle that is located\nto the left of the original bounding rectangle right edge, relative to the\nobject's original width.", |
- "format": "float", |
- "type": "number" |
- }, |
- "bottomOffset": { |
- "description": "The offset specifies the bottom edge of the crop rectangle that is located\nabove the original bounding rectangle bottom edge, relative to the object's\noriginal height.", |
- "format": "float", |
- "type": "number" |
+ "slideObjectIds": { |
+ "description": "The IDs of the slides in the presentation that should be moved.\nThe slides in this list must be in existing presentation order, without\nduplicates.", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "type": "array" |
}, |
- "angle": { |
- "description": "The rotation angle of the crop window around its center, in radians.\nRotation angle is applied after the offset.", |
- "format": "float", |
- "type": "number" |
+ "insertionIndex": { |
+ "description": "The index where the slides should be inserted, based on the slide\narrangement before the move takes place. Must be between zero and the\nnumber of slides in the presentation, inclusive.", |
+ "format": "int32", |
+ "type": "integer" |
} |
}, |
"type": "object" |
}, |
- "ReplaceAllShapesWithSheetsChartRequest": { |
- "description": "Replaces all shapes that match the given criteria with the provided Google\nSheets chart. The chart will be scaled and centered to fit within the bounds\nof the original shape.\n\nNOTE: Replacing shapes with a chart requires at least one of the\nspreadsheets.readonly, spreadsheets, drive.readonly, or drive OAuth scopes.", |
- "id": "ReplaceAllShapesWithSheetsChartRequest", |
+ "UpdatePagePropertiesRequest": { |
+ "description": "Updates the properties of a Page.", |
+ "id": "UpdatePagePropertiesRequest", |
"properties": { |
- "spreadsheetId": { |
- "description": "The ID of the Google Sheets spreadsheet that contains the chart.", |
+ "fields": { |
+ "description": "The fields that should be updated.\n\nAt least one field must be specified. The root `pageProperties` is\nimplied and should not be specified. A single `\"*\"` can be used as\nshort-hand for listing every field.\n\nFor example to update the page background solid fill color, set `fields`\nto `\"pageBackgroundFill.solidFill.color\"`.\n\nTo reset a property to its default value, include its field name in the\nfield mask but leave the field itself unset.", |
+ "format": "google-fieldmask", |
"type": "string" |
}, |
- "linkingMode": { |
- "description": "The mode with which the chart is linked to the source spreadsheet. When\nnot specified, the chart will be an image that is not linked.", |
- "enum": [ |
- "NOT_LINKED_IMAGE", |
- "LINKED" |
- ], |
- "enumDescriptions": [ |
- "The chart is not associated with the source spreadsheet and cannot be\nupdated. A chart that is not linked will be inserted as an image.", |
- "Linking the chart allows it to be updated, and other collaborators will\nsee a link to the spreadsheet." |
- ], |
+ "objectId": { |
+ "description": "The object ID of the page the update is applied to.", |
"type": "string" |
}, |
- "containsText": { |
- "$ref": "SubstringMatchCriteria", |
- "description": "The criteria that the shapes must match in order to be replaced. The\nrequest will replace all of the shapes that contain the given text." |
- }, |
- "chartId": { |
- "description": "The ID of the specific chart in the Google Sheets spreadsheet.", |
- "format": "int32", |
- "type": "integer" |
+ "pageProperties": { |
+ "$ref": "PageProperties", |
+ "description": "The page properties to update." |
} |
}, |
"type": "object" |
}, |
- "ColorStop": { |
- "description": "A color and position in a gradient band.", |
- "id": "ColorStop", |
+ "Group": { |
+ "description": "A PageElement kind representing a\njoined collection of PageElements.", |
+ "id": "Group", |
"properties": { |
- "alpha": { |
- "description": "The alpha value of this color in the gradient band. Defaults to 1.0,\nfully opaque.", |
- "format": "float", |
- "type": "number" |
- }, |
- "position": { |
- "description": "The relative position of the color stop in the gradient band measured\nin percentage. The value should be in the interval [0.0, 1.0].", |
- "format": "float", |
- "type": "number" |
- }, |
- "color": { |
- "$ref": "OpaqueColor", |
- "description": "The color of the gradient stop." |
+ "children": { |
+ "description": "The collection of elements in the group. The minimum size of a group is 2.", |
+ "items": { |
+ "$ref": "PageElement" |
+ }, |
+ "type": "array" |
} |
}, |
"type": "object" |
}, |
- "Range": { |
- "description": "Specifies a contiguous range of an indexed collection, such as characters in\ntext.", |
- "id": "Range", |
+ "Placeholder": { |
+ "description": "The placeholder information that uniquely identifies a placeholder shape.", |
+ "id": "Placeholder", |
"properties": { |
- "type": { |
- "description": "The type of range.", |
- "enum": [ |
- "RANGE_TYPE_UNSPECIFIED", |
- "FIXED_RANGE", |
- "FROM_START_INDEX", |
- "ALL" |
- ], |
- "enumDescriptions": [ |
- "Unspecified range type. This value must not be used.", |
- "A fixed range. Both the `start_index` and\n`end_index` must be specified.", |
- "Starts the range at `start_index` and continues until the\nend of the collection. The `end_index` must not be specified.", |
- "Sets the range to be the whole length of the collection. Both the\n`start_index` and the `end_index` must not be\nspecified." |
- ], |
- "type": "string" |
- }, |
- "startIndex": { |
- "description": "The optional zero-based index of the beginning of the collection.\nRequired for `SPECIFIC_RANGE` and `FROM_START_INDEX` ranges.", |
- "format": "int32", |
- "type": "integer" |
- }, |
- "endIndex": { |
- "description": "The optional zero-based index of the end of the collection.\nRequired for `SPECIFIC_RANGE` delete mode.", |
+ "index": { |
+ "description": "The index of the placeholder. If the same placeholder types are present in\nthe same page, they would have different index values.", |
"format": "int32", |
"type": "integer" |
- } |
- }, |
- "type": "object" |
- }, |
- "CreateVideoRequest": { |
- "description": "Creates a video.", |
- "id": "CreateVideoRequest", |
- "properties": { |
- "objectId": { |
- "description": "A user-supplied object ID.\n\nIf you specify an ID, it must be unique among all pages and page elements\nin the presentation. The ID must start with an alphanumeric character or an\nunderscore (matches regex `[a-zA-Z0-9_]`); remaining characters\nmay include those as well as a hyphen or colon (matches regex\n`[a-zA-Z0-9_-:]`).\nThe length of the ID must not be less than 5 or greater than 50.\n\nIf you don't specify an ID, a unique one is generated.", |
- "type": "string" |
}, |
- "source": { |
- "description": "The video source.", |
+ "type": { |
+ "description": "The type of the placeholder.", |
"enum": [ |
- "SOURCE_UNSPECIFIED", |
- "YOUTUBE" |
+ "NONE", |
+ "BODY", |
+ "CHART", |
+ "CLIP_ART", |
+ "CENTERED_TITLE", |
+ "DIAGRAM", |
+ "DATE_AND_TIME", |
+ "FOOTER", |
+ "HEADER", |
+ "MEDIA", |
+ "OBJECT", |
+ "PICTURE", |
+ "SLIDE_NUMBER", |
+ "SUBTITLE", |
+ "TABLE", |
+ "TITLE", |
+ "SLIDE_IMAGE" |
], |
"enumDescriptions": [ |
- "The video source is unspecified.", |
- "The video source is YouTube." |
+ "Default value, signifies it is not a placeholder.", |
+ "Body text.", |
+ "Chart or graph.", |
+ "Clip art image.", |
+ "Title centered.", |
+ "Diagram.", |
+ "Date and time.", |
+ "Footer text.", |
+ "Header text.", |
+ "Multimedia.", |
+ "Any content type.", |
+ "Picture.", |
+ "Number of a slide.", |
+ "Subtitle.", |
+ "Table.", |
+ "Slide title.", |
+ "Slide image." |
], |
"type": "string" |
}, |
- "elementProperties": { |
- "$ref": "PageElementProperties", |
- "description": "The element properties for the video." |
- }, |
- "id": { |
- "description": "The video source's unique identifier for this video.\n\ne.g. For YouTube video https://www.youtube.com/watch?v=7U3axjORYZ0,\nthe ID is 7U3axjORYZ0.", |
+ "parentObjectId": { |
+ "description": "The object ID of this shape's parent placeholder.\nIf unset, the parent placeholder shape does not exist, so the shape does\nnot inherit properties from any other shape.", |
"type": "string" |
} |
}, |
"type": "object" |
}, |
- "DuplicateObjectResponse": { |
- "description": "The response of duplicating an object.", |
- "id": "DuplicateObjectResponse", |
+ "DuplicateObjectRequest": { |
+ "description": "Duplicates a slide or page element.\n\nWhen duplicating a slide, the duplicate slide will be created immediately\nfollowing the specified slide. When duplicating a page element, the duplicate\nwill be placed on the same page at the same position as the original.", |
+ "id": "DuplicateObjectRequest", |
"properties": { |
+ "objectIds": { |
+ "additionalProperties": { |
+ "type": "string" |
+ }, |
+ "description": "The object being duplicated may contain other objects, for example when\nduplicating a slide or a group page element. This map defines how the IDs\nof duplicated objects are generated: the keys are the IDs of the original\nobjects and its values are the IDs that will be assigned to the\ncorresponding duplicate object. The ID of the source object's duplicate\nmay be specified in this map as well, using the same value of the\n`object_id` field as a key and the newly desired ID as the value.\n\nAll keys must correspond to existing IDs in the presentation. All values\nmust be unique in the presentation and must start with an alphanumeric\ncharacter or an underscore (matches regex `[a-zA-Z0-9_]`); remaining\ncharacters may include those as well as a hyphen or colon (matches regex\n`[a-zA-Z0-9_-:]`). The length of the new ID must not be less than 5 or\ngreater than 50.\n\nIf any IDs of source objects are omitted from the map, a new random ID will\nbe assigned. If the map is empty or unset, all duplicate objects will\nreceive a new random ID.", |
+ "type": "object" |
+ }, |
"objectId": { |
- "description": "The ID of the new duplicate object.", |
+ "description": "The ID of the object to duplicate.", |
"type": "string" |
} |
}, |
"type": "object" |
}, |
- "ReplaceAllShapesWithImageRequest": { |
- "description": "Replaces all shapes that match the given criteria with the provided image.", |
- "id": "ReplaceAllShapesWithImageRequest", |
+ "ReplaceAllTextRequest": { |
+ "description": "Replaces all instances of text matching a criteria with replace text.", |
+ "id": "ReplaceAllTextRequest", |
"properties": { |
- "imageUrl": { |
- "description": "The image URL.\n\nThe image is fetched once at insertion time and a copy is stored for\ndisplay inside the presentation. Images must be less than 50MB in size,\ncannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF\nformat.", |
- "type": "string" |
- }, |
- "replaceMethod": { |
- "description": "The replace method.", |
- "enum": [ |
- "CENTER_INSIDE", |
- "CENTER_CROP" |
- ], |
- "enumDescriptions": [ |
- "Scales and centers the image to fit within the bounds of the original\nshape and maintains the image's aspect ratio. The rendered size of the\nimage may be smaller than the size of the shape. This is the default\nmethod when one is not specified.", |
- "Scales and centers the image to fill the bounds of the original shape.\nThe image may be cropped in order to fill the shape. The rendered size of\nthe image will be the same as that of the original shape." |
- ], |
+ "replaceText": { |
+ "description": "The text that will replace the matched text.", |
"type": "string" |
}, |
"containsText": { |
"$ref": "SubstringMatchCriteria", |
- "description": "If set, this request will replace all of the shapes that contain the\ngiven text." |
+ "description": "Finds text in a shape matching this substring." |
} |
}, |
"type": "object" |
}, |
- "Shadow": { |
- "description": "The shadow properties of a page element.\n\nIf these fields are unset, they may be inherited from a parent placeholder\nif it exists. If there is no parent, the fields will default to the value\nused for new page elements created in the Slides editor, which may depend on\nthe page element kind.", |
- "id": "Shadow", |
+ "Page": { |
+ "description": "A page in a presentation.", |
+ "id": "Page", |
"properties": { |
- "alpha": { |
- "description": "The alpha of the shadow's color, from 0.0 to 1.0.", |
- "format": "float", |
- "type": "number" |
+ "slideProperties": { |
+ "$ref": "SlideProperties", |
+ "description": "Slide specific properties. Only set if page_type = SLIDE." |
}, |
- "color": { |
- "$ref": "OpaqueColor", |
- "description": "The shadow color value." |
+ "pageProperties": { |
+ "$ref": "PageProperties", |
+ "description": "The properties of the page." |
}, |
- "rotateWithShape": { |
- "description": "Whether the shadow should rotate with the shape.", |
- "type": "boolean" |
+ "objectId": { |
+ "description": "The object ID for this page. Object IDs used by\nPage and\nPageElement share the same namespace.", |
+ "type": "string" |
}, |
- "propertyState": { |
- "description": "The shadow property state.\n\nUpdating the the shadow on a page element will implicitly update this field\nto `RENDERED`, unless another value is specified in the same request. To\nhave no shadow on a page element, set this field to `NOT_RENDERED`. In this\ncase, any other shadow fields set in the same request will be ignored.", |
- "enum": [ |
- "RENDERED", |
- "NOT_RENDERED", |
- "INHERIT" |
- ], |
- "enumDescriptions": [ |
- "If a property's state is RENDERED, then the element has the corresponding\nproperty when rendered on a page. If the element is a placeholder shape as\ndetermined by the placeholder\nfield, and it inherits from a placeholder shape, the corresponding field\nmay be unset, meaning that the property value is inherited from a parent\nplaceholder. If the element does not inherit, then the field will contain\nthe rendered value. This is the default value.", |
- "If a property's state is NOT_RENDERED, then the element does not have the\ncorresponding property when rendered on a page. However, the field may\nstill be set so it can be inherited by child shapes. To remove a property\nfrom a rendered element, set its property_state to NOT_RENDERED.", |
- "If a property's state is INHERIT, then the property state uses the value of\ncorresponding `property_state` field on the parent shape. Elements that do\nnot inherit will never have an INHERIT property state." |
- ], |
+ "revisionId": { |
+ "description": "The revision ID of the presentation containing this page. Can be used in\nupdate requests to assert that the presentation revision hasn't changed\nsince the last read operation. Only populated if the user has edit access\nto the presentation.\n\nThe format of the revision ID may change over time, so it should be treated\nopaquely. A returned revision ID is only guaranteed to be valid for 24\nhours after it has been returned and cannot be shared across users. If the\nrevision ID is unchanged between calls, then the presentation has not\nchanged. Conversely, a changed ID (for the same presentation and user)\nusually means the presentation has been updated; however, a changed ID can\nalso be due to internal factors such as ID format changes.", |
"type": "string" |
}, |
- "blurRadius": { |
- "$ref": "Dimension", |
- "description": "The radius of the shadow blur. The larger the radius, the more diffuse the\nshadow becomes." |
+ "layoutProperties": { |
+ "$ref": "LayoutProperties", |
+ "description": "Layout specific properties. Only set if page_type = LAYOUT." |
}, |
- "transform": { |
- "$ref": "AffineTransform", |
- "description": "Transform that encodes the translate, scale, and skew of the shadow,\nrelative to the alignment position." |
+ "notesProperties": { |
+ "$ref": "NotesProperties", |
+ "description": "Notes specific properties. Only set if page_type = NOTES." |
}, |
- "type": { |
- "description": "The type of the shadow.", |
+ "pageType": { |
+ "description": "The type of the page.", |
"enum": [ |
- "SHADOW_TYPE_UNSPECIFIED", |
- "OUTER" |
+ "SLIDE", |
+ "MASTER", |
+ "LAYOUT", |
+ "NOTES", |
+ "NOTES_MASTER" |
], |
"enumDescriptions": [ |
- "Unspecified shadow type.", |
- "Outer shadow." |
+ "A slide page.", |
+ "A master slide page.", |
+ "A layout page.", |
+ "A notes page.", |
+ "A notes master page." |
], |
"type": "string" |
}, |
- "alignment": { |
- "description": "The alignment point of the shadow, that sets the origin for translate,\nscale and skew of the shadow.", |
- "enum": [ |
- "RECTANGLE_POSITION_UNSPECIFIED", |
- "TOP_LEFT", |
- "TOP_CENTER", |
- "TOP_RIGHT", |
- "LEFT_CENTER", |
- "CENTER", |
- "RIGHT_CENTER", |
- "BOTTOM_LEFT", |
- "BOTTOM_CENTER", |
- "BOTTOM_RIGHT" |
- ], |
- "enumDescriptions": [ |
- "Unspecified.", |
- "Top left.", |
- "Top center.", |
- "Top right.", |
- "Left center.", |
- "Center.", |
- "Right center.", |
- "Bottom left.", |
- "Bottom center.", |
- "Bottom right." |
- ], |
- "type": "string" |
+ "pageElements": { |
+ "description": "The page elements rendered on the page.", |
+ "items": { |
+ "$ref": "PageElement" |
+ }, |
+ "type": "array" |
} |
}, |
"type": "object" |
}, |
- "DeleteTableRowRequest": { |
- "description": "Deletes a row from a table.", |
- "id": "DeleteTableRowRequest", |
+ "ShapeBackgroundFill": { |
+ "description": "The shape background fill.", |
+ "id": "ShapeBackgroundFill", |
"properties": { |
- "cellLocation": { |
- "$ref": "TableCellLocation", |
- "description": "The reference table cell location from which a row will be deleted.\n\nThe row this cell spans will be deleted. If this is a merged cell, multiple\nrows will be deleted. If no rows remain in the table after this deletion,\nthe whole table is deleted." |
+ "solidFill": { |
+ "$ref": "SolidFill", |
+ "description": "Solid color fill." |
}, |
- "tableObjectId": { |
- "description": "The table to delete rows from.", |
+ "propertyState": { |
+ "description": "The background fill property state.\n\nUpdating the the fill on a shape will implicitly update this field to\n`RENDERED`, unless another value is specified in the same request. To\nhave no fill on a shape, set this field to `NOT_RENDERED`. In this case,\nany other fill fields set in the same request will be ignored.", |
+ "enum": [ |
+ "RENDERED", |
+ "NOT_RENDERED", |
+ "INHERIT" |
+ ], |
+ "enumDescriptions": [ |
+ "If a property's state is RENDERED, then the element has the corresponding\nproperty when rendered on a page. If the element is a placeholder shape as\ndetermined by the placeholder\nfield, and it inherits from a placeholder shape, the corresponding field\nmay be unset, meaning that the property value is inherited from a parent\nplaceholder. If the element does not inherit, then the field will contain\nthe rendered value. This is the default value.", |
+ "If a property's state is NOT_RENDERED, then the element does not have the\ncorresponding property when rendered on a page. However, the field may\nstill be set so it can be inherited by child shapes. To remove a property\nfrom a rendered element, set its property_state to NOT_RENDERED.", |
+ "If a property's state is INHERIT, then the property state uses the value of\ncorresponding `property_state` field on the parent shape. Elements that do\nnot inherit will never have an INHERIT property state." |
+ ], |
"type": "string" |
} |
}, |
"type": "object" |
}, |
- "Bullet": { |
- "description": "Describes the bullet of a paragraph.", |
- "id": "Bullet", |
+ "CropProperties": { |
+ "description": "The crop properties of an object enclosed in a container. For example, an\nImage.\n\nThe crop properties is represented by the offsets of four edges which define\na crop rectangle. The offsets are measured in percentage from the\ncorresponding edges of the object's original bounding rectangle towards\ninside, relative to the object's original dimensions.\n\n- If the offset is in the interval (0, 1), the corresponding edge of crop\nrectangle is positioned inside of the object's original bounding rectangle.\n- If the offset is negative or greater than 1, the corresponding edge of crop\nrectangle is positioned outside of the object's original bounding rectangle.\n- If the left edge of the crop rectangle is on the right side of its right\nedge, the object will be flipped horizontally.\n- If the top edge of the crop rectangle is below its bottom edge, the object\nwill be flipped vertically.\n- If all offsets and rotation angle is 0, the object is not cropped.\n\nAfter cropping, the content in the crop rectangle will be stretched to fit\nits container.", |
+ "id": "CropProperties", |
"properties": { |
- "glyph": { |
- "description": "The rendered bullet glyph for this paragraph.", |
- "type": "string" |
+ "leftOffset": { |
+ "description": "The offset specifies the left edge of the crop rectangle that is located to\nthe right of the original bounding rectangle left edge, relative to the\nobject's original width.", |
+ "format": "float", |
+ "type": "number" |
}, |
- "nestingLevel": { |
- "description": "The nesting level of this paragraph in the list.", |
- "format": "int32", |
- "type": "integer" |
+ "rightOffset": { |
+ "description": "The offset specifies the right edge of the crop rectangle that is located\nto the left of the original bounding rectangle right edge, relative to the\nobject's original width.", |
+ "format": "float", |
+ "type": "number" |
}, |
- "bulletStyle": { |
- "$ref": "TextStyle", |
- "description": "The paragraph specific text style applied to this bullet." |
+ "bottomOffset": { |
+ "description": "The offset specifies the bottom edge of the crop rectangle that is located\nabove the original bounding rectangle bottom edge, relative to the object's\noriginal height.", |
+ "format": "float", |
+ "type": "number" |
}, |
- "listId": { |
- "description": "The ID of the list this paragraph belongs to.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "OutlineFill": { |
- "description": "The fill of the outline.", |
- "id": "OutlineFill", |
- "properties": { |
- "solidFill": { |
- "$ref": "SolidFill", |
- "description": "Solid color fill." |
- } |
- }, |
- "type": "object" |
- }, |
- "TableCellLocation": { |
- "description": "A location of a single table cell within a table.", |
- "id": "TableCellLocation", |
- "properties": { |
- "rowIndex": { |
- "description": "The 0-based row index.", |
- "format": "int32", |
- "type": "integer" |
+ "angle": { |
+ "description": "The rotation angle of the crop window around its center, in radians.\nRotation angle is applied after the offset.", |
+ "format": "float", |
+ "type": "number" |
}, |
- "columnIndex": { |
- "description": "The 0-based column index.", |
- "format": "int32", |
- "type": "integer" |
- } |
- }, |
- "type": "object" |
- }, |
- "CreateLineResponse": { |
- "description": "The result of creating a line.", |
- "id": "CreateLineResponse", |
- "properties": { |
- "objectId": { |
- "description": "The object ID of the created line.", |
- "type": "string" |
+ "topOffset": { |
+ "description": "The offset specifies the top edge of the crop rectangle that is located\nbelow the original bounding rectangle top edge, relative to the object's\noriginal height.", |
+ "format": "float", |
+ "type": "number" |
} |
}, |
"type": "object" |