googleapis / googleapis/google-api-ruby-client
Insert table request is not able to copy already created table and paste it in another doc
- Lenguaje dominante
- Ruby
- Estrellas
- 2.9k
- Forks
- 888
- Merge medio
- 6 min
- PR fusionados (30 d)
- 218
Descripción
`requests = [
Google::Apis::DocsV1::Request.new(
insert_table: {
table: **table**, (Its not working, is it the right syntax?)
end_of_segment_location: {
segment_id: ''
}
}
)
]
# Execute the batch update request
batch_update_request = Google::Apis::DocsV1::BatchUpdateDocumentRequest.new(
requests: requests
)
response = docs_service.batch_update_document(doc_id, batch_update_request)
requests = [
Google::Apis::DocsV1::Request.new(
insert_table: {
table: table,
end_of_segment_location: {
segment_id: ''
}
}
)
]
request = Google::Apis::DocsV1::Request.new(
insert_table: {
rows: 3, # Number of rows in the table
columns: 4, # Number of columns in the table
end_of_segment_location: {
segment_id: "" # Segment ID if applicable
}
}
)
I tried the above code as well but instead of copying the existing table, it creates a new one with broader width and no data present`
Guía de contribución
Línea de trabajo
Comienza revisando los ejemplos de Google::Apis::DocsV1::Request y la llamada batch_update_document mostrados en el issue, y luego compara los campos de insert_table con el esquema de solicitudes de la Google Docs API. Determina si este client request admite copiar una tabla existente; se considera terminado cuando se documenta la forma válida de la solicitud o se confirma la limitación de la API.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- ruby
- Área
- api
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100