<button class="button button-with-icon cloud-select-dropdown__button button-primary" aria-haspopup="true">On-premises or any cloud edition v1.15</button>

- [SAP BTP edition v1.1](https://docs.cloud.google.com/sap/docs/abap-sdk/btp/latest/reference/googcl_docs_v1.md.txt)
- [On-premises or any cloud edition v1.15](https://docs.cloud.google.com/sap/docs/abap-sdk/on-premises-or-any-cloud/latest/reference/googcl_docs_v1.md.txt)

## Class

```abap
/GOOG/CL_DOCS_V1
```

- Inheriting from:`/GOOG/CL_HTTP_CLIENT`
- Description:`Google Docs API v1`

For general information about a class in ABAP SDK for Google Cloud, see [API client stub](https://docs.cloud.google.com/sap/docs/abap-sdk/latest/developer#client_stub).

## Types

| Type | Description | Visibility |
|---|---|---|
| `TY_001` | `AutoText` | PUBLIC |
| `TY_002` | `Background` | PUBLIC |
| `TY_003` | `BackgroundSuggestionState` | PUBLIC |
| `TY_004` | `BatchUpdateDocumentRequest` | PUBLIC |
| `TY_005` | `BatchUpdateDocumentResponse` | PUBLIC |
| `TY_006` | `Body` | PUBLIC |
| `TY_007` | `Bullet` | PUBLIC |
| `TY_008` | `BulletSuggestionState` | PUBLIC |
| `TY_009` | `Color` | PUBLIC |
| `TY_010` | `ColumnBreak` | PUBLIC |
| `TY_011` | `CreateFooterRequest` | PUBLIC |
| `TY_012` | `CreateFooterResponse` | PUBLIC |
| `TY_013` | `CreateFootnoteRequest` | PUBLIC |
| `TY_014` | `CreateFootnoteResponse` | PUBLIC |
| `TY_015` | `CreateHeaderRequest` | PUBLIC |
| `TY_016` | `CreateHeaderResponse` | PUBLIC |
| `TY_017` | `CreateNamedRangeRequest` | PUBLIC |
| `TY_018` | `CreateNamedRangeResponse` | PUBLIC |
| `TY_019` | `CreateParagraphBulletsRequest` | PUBLIC |
| `TY_020` | `CropProperties` | PUBLIC |
| `TY_021` | `CropPropertiesSuggestionState` | PUBLIC |
| `TY_022` | `DeleteContentRangeRequest` | PUBLIC |
| `TY_023` | `DeleteFooterRequest` | PUBLIC |
| `TY_024` | `DeleteHeaderRequest` | PUBLIC |
| `TY_025` | `DeleteNamedRangeRequest` | PUBLIC |
| `TY_026` | `DeleteParagraphBulletsRequest` | PUBLIC |
| `TY_027` | `DeletePositionedObjectRequest` | PUBLIC |
| `TY_028` | `DeleteTableColumnRequest` | PUBLIC |
| `TY_029` | `DeleteTableRowRequest` | PUBLIC |
| `TY_030` | `Dimension` | PUBLIC |
| `TY_031` | `Document` | PUBLIC |
| `TY_032` | `DocumentStyle` | PUBLIC |
| `TY_033` | `DocumentStyleSuggestionState` | PUBLIC |
| `TY_036` | `EmbeddedObject` | PUBLIC |
| `TY_037` | `EmbeddedObjectBorder` | PUBLIC |
| `TY_038` | `EmbeddedObjectBorderSuggestionState` | PUBLIC |
| `TY_039` | `EmbeddedObjectSuggestionState` | PUBLIC |
| `TY_040` | `EndOfSegmentLocation` | PUBLIC |
| `TY_041` | `Equation` | PUBLIC |
| `TY_042` | `Footer` | PUBLIC |
| `TY_043` | `Footnote` | PUBLIC |
| `TY_044` | `FootnoteReference` | PUBLIC |
| `TY_045` | `Header` | PUBLIC |
| `TY_046` | `HorizontalRule` | PUBLIC |
| `TY_047` | `ImageProperties` | PUBLIC |
| `TY_048` | `ImagePropertiesSuggestionState` | PUBLIC |
| `TY_049` | `InlineObject` | PUBLIC |
| `TY_050` | `InlineObjectElement` | PUBLIC |
| `TY_051` | `InlineObjectProperties` | PUBLIC |
| `TY_052` | `InlineObjectPropertiesSuggestionState` | PUBLIC |
| `TY_053` | `InsertInlineImageRequest` | PUBLIC |
| `TY_054` | `InsertInlineImageResponse` | PUBLIC |
| `TY_055` | `InsertInlineSheetsChartResponse` | PUBLIC |
| `TY_056` | `InsertPageBreakRequest` | PUBLIC |
| `TY_057` | `InsertSectionBreakRequest` | PUBLIC |
| `TY_058` | `InsertTableColumnRequest` | PUBLIC |
| `TY_059` | `InsertTableRequest` | PUBLIC |
| `TY_060` | `InsertTableRowRequest` | PUBLIC |
| `TY_061` | `InsertTextRequest` | PUBLIC |
| `TY_062` | `Link` | PUBLIC |
| `TY_063` | `LinkedContentReference` | PUBLIC |
| `TY_064` | `LinkedContentReferenceSuggestionState` | PUBLIC |
| `TY_065` | `List` | PUBLIC |
| `TY_066` | `ListProperties` | PUBLIC |
| `TY_067` | `ListPropertiesSuggestionState` | PUBLIC |
| `TY_068` | `Location` | PUBLIC |
| `TY_069` | `MergeTableCellsRequest` | PUBLIC |
| `TY_070` | `NamedRange` | PUBLIC |
| `TY_071` | `NamedRanges` | PUBLIC |
| `TY_072` | `NamedStyle` | PUBLIC |
| `TY_073` | `NamedStyleSuggestionState` | PUBLIC |
| `TY_074` | `NamedStyles` | PUBLIC |
| `TY_075` | `NamedStylesSuggestionState` | PUBLIC |
| `TY_076` | `NestingLevel` | PUBLIC |
| `TY_077` | `NestingLevelSuggestionState` | PUBLIC |
| `TY_078` | `ObjectReferences` | PUBLIC |
| `TY_079` | `OptionalColor` | PUBLIC |
| `TY_080` | `PageBreak` | PUBLIC |
| `TY_081` | `Paragraph` | PUBLIC |
| `TY_082` | `ParagraphBorder` | PUBLIC |
| `TY_083` | `ParagraphElement` | PUBLIC |
| `TY_084` | `ParagraphStyle` | PUBLIC |
| `TY_085` | `ParagraphStyleSuggestionState` | PUBLIC |
| `TY_086` | `Person` | PUBLIC |
| `TY_087` | `PersonProperties` | PUBLIC |
| `TY_088` | `PinTableHeaderRowsRequest` | PUBLIC |
| `TY_089` | `PositionedObject` | PUBLIC |
| `TY_090` | `PositionedObjectPositioning` | PUBLIC |
| `TY_091` | `PositionedObjectPositioningSuggestionState` | PUBLIC |
| `TY_092` | `PositionedObjectProperties` | PUBLIC |
| `TY_093` | `PositionedObjectPropertiesSuggestionState` | PUBLIC |
| `TY_094` | `Range` | PUBLIC |
| `TY_095` | `ReplaceAllTextRequest` | PUBLIC |
| `TY_096` | `ReplaceAllTextResponse` | PUBLIC |
| `TY_097` | `ReplaceImageRequest` | PUBLIC |
| `TY_098` | `ReplaceNamedRangeContentRequest` | PUBLIC |
| `TY_099` | `Request` | PUBLIC |
| `TY_100` | `Response` | PUBLIC |
| `TY_101` | `RgbColor` | PUBLIC |
| `TY_102` | `RichLink` | PUBLIC |
| `TY_103` | `RichLinkProperties` | PUBLIC |
| `TY_104` | `SectionBreak` | PUBLIC |
| `TY_105` | `SectionColumnProperties` | PUBLIC |
| `TY_106` | `SectionStyle` | PUBLIC |
| `TY_107` | `Shading` | PUBLIC |
| `TY_108` | `ShadingSuggestionState` | PUBLIC |
| `TY_109` | `SheetsChartReference` | PUBLIC |
| `TY_110` | `SheetsChartReferenceSuggestionState` | PUBLIC |
| `TY_111` | `Size` | PUBLIC |
| `TY_112` | `SizeSuggestionState` | PUBLIC |
| `TY_113` | `StructuralElement` | PUBLIC |
| `TY_114` | `SubstringMatchCriteria` | PUBLIC |
| `TY_115` | `SuggestedBullet` | PUBLIC |
| `TY_116` | `SuggestedDocumentStyle` | PUBLIC |
| `TY_117` | `SuggestedInlineObjectProperties` | PUBLIC |
| `TY_118` | `SuggestedListProperties` | PUBLIC |
| `TY_119` | `SuggestedNamedStyles` | PUBLIC |
| `TY_120` | `SuggestedParagraphStyle` | PUBLIC |
| `TY_121` | `SuggestedPositionedObjectProperties` | PUBLIC |
| `TY_124` | `SuggestedTextStyle` | PUBLIC |
| `TY_125` | `TabStop` | PUBLIC |
| `TY_128` | `TableCellBorder` | PUBLIC |
| `TY_129` | `TableCellLocation` | PUBLIC |
| `TY_130` | `TableCellStyle` | PUBLIC |
| `TY_132` | `TableColumnProperties` | PUBLIC |
| `TY_134` | `TableRange` | PUBLIC |
| `TY_136` | `TableRowStyle` | PUBLIC |
| `TY_139` | `TextRun` | PUBLIC |
| `TY_140` | `TextStyle` | PUBLIC |
| `TY_141` | `TextStyleSuggestionState` | PUBLIC |
| `TY_142` | `UnmergeTableCellsRequest` | PUBLIC |
| `TY_143` | `UpdateDocumentStyleRequest` | PUBLIC |
| `TY_144` | `UpdateParagraphStyleRequest` | PUBLIC |
| `TY_145` | `UpdateSectionStyleRequest` | PUBLIC |
| `TY_146` | `UpdateTableCellStyleRequest` | PUBLIC |
| `TY_147` | `UpdateTableColumnPropertiesRequest` | PUBLIC |
| `TY_148` | `UpdateTableRowStyleRequest` | PUBLIC |
| `TY_149` | `UpdateTextStyleRequest` | PUBLIC |
| `TY_150` | `WeightedFontFamily` | PUBLIC |
| `TY_151` | `WriteControl` | PUBLIC |
| `TY_152` | `BookmarkLink` | PUBLIC |
| `TY_153` | `DocumentTab` | PUBLIC |
| `TY_154` | `HeadingLink` | PUBLIC |
| `TY_155` | `Tab` | PUBLIC |
| `TY_156` | `TabProperties` | PUBLIC |
| `TY_157` | `TabsCriteria` | PUBLIC |
| `TY_T_070` | `NamedRange` | PUBLIC |
| `TY_T_072` | `NamedStyle` | PUBLIC |
| `TY_T_073` | `NamedStyleSuggestionState` | PUBLIC |
| `TY_T_076` | `NestingLevel` | PUBLIC |
| `TY_T_077` | `NestingLevelSuggestionState` | PUBLIC |
| `TY_T_083` | `ParagraphElement` | PUBLIC |
| `TY_T_094` | `Range` | PUBLIC |
| `TY_T_099` | `Request` | PUBLIC |
| `TY_T_100` | `Response` | PUBLIC |
| `TY_T_105` | `SectionColumnProperties` | PUBLIC |
| `TY_T_113` | `StructuralElement` | PUBLIC |
| `TY_T_125` | `TabStop` | PUBLIC |
| `TY_T_155` | `Tab` | PUBLIC |
| `TY_T_INT4` | `Table of Integers` | PUBLIC |
| `TY_T_STRING` | `Table of Strings` | PUBLIC |

## Constants

| Name | Type | Description | Value | Visibility |
|---|---|---|---|---|
| `C_CLOUD_VERSION` | `/GOOG/SDK_VERSION` | Lowest Cloud Version | 1.0 | PUBLIC |
| `C_ON_PREM_VERSION` | `/GOOG/SDK_VERSION` | Lowest On-premises Version | 1.5 | PUBLIC |
| `C_PATH_PREFIX` | `STRING` | API Path Prefix |   | PUBLIC |
| `C_REVISION_DATE` | `DATUM` | Discovery Document revision Date | 20250306 | PUBLIC |
| `C_ROOT_URL` | `STRING` | API Root URL | https://docs.googleapis.com | PUBLIC |
| `C_SERVICE_NAME` | `/GOOG/SERVICE_NAME` | Google Service Name | docs:v1 | PUBLIC |
| `C_SUPPORTED_AUTH` | `/GOOG/SUPP_AUTH` | Supported Auth Types | OOIJWW | PUBLIC |

## Methods

For general information about a method in ABAP SDK for Google Cloud, see [API method](https://docs.cloud.google.com/sap/docs/abap-sdk/latest/developer#api_method).

### CONSTRUCTOR

- Description: Constructor
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_KEY_NAME` | IMPORTING | `/GOOG/KEYNAME` | Google Cloud Key Name |
| `IV_LOG_OBJ` | IMPORTING | `BALOBJ_D` | Application log: Object name (Application code) |
| `IV_LOG_SUBOBJ` | IMPORTING | `BALSUBOBJ` | Application Log: Subobject |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### BATCH_UPDATE_DOCUMENTS

- Description: docs.documents.batchUpdate
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_DOCUMENT_ID` | IMPORTING | `STRING` | documentId |
| `IS_INPUT` | IMPORTING | `TY_004` | BatchUpdateDocumentRequest |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_005` | BatchUpdateDocumentResponse |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### CREATE_DOCUMENTS

- Description: docs.documents.create
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IS_INPUT` | IMPORTING | `TY_031` | Document |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_031` | Document |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### GET_DOCUMENTS

- Description: docs.documents.get
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_Q_INCLUDETABSCONTENT` | IMPORTING | `STRING` | includeTabsContent |
| `IV_Q_SUGGESTIONSVIEWMODE` | IMPORTING | `STRING` | suggestionsViewMode |
| `IV_P_DOCUMENT_ID` | IMPORTING | `STRING` | documentId |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_031` | Document |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### CLOSE

- Description: Close Connection
- Visibility: PUBLIC