microsoftgraph / microsoftgraph/msgraph-sdk-python
WorkbookTableColumn doesn't accept "values"
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 630
- Fork
- 96
- Merge trung bình
- 15 giờ 20 phút
- Pull request đã merge (30 ngày)
- 3
Mô tả
Describe the bug
Using same syntax than in this code snippet from documentation gives error: "TypeError: WorkbookTableColumn.init() got an unexpected keyword argument 'values'"
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.workbook_table_column import WorkbookTableColumn
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = WorkbookTableColumn(
id = "99",
name = "name-value",
index = 99,
values = "values-value",
)
result = await graph_client.drives.by_drive_id('drive-id').items.by_drive_item_id('driveItem-id').workbook.tables.by_workbook_table_id('workbookTable-id').columns.post(request_body)
I can run the code without "values".
Expected behavior
I want to add also values similar to what I can via Graph Expoler.
How to reproduce
Try to add column to Excel with values.
SDK Version
1.7.0
Latest version known to work for scenario above?
No response
Known Workarounds
Using Graph Explorer
Debug output
Click to expand log
```request_body = WorkbookTableColumn(
TypeError: WorkbookTableColumn.init() got an unexpected keyword argument 'values'
</details>
### Configuration
WSL
### Other information
_No response_
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách tìm định nghĩa WorkbookTableColumn được Python SDK sử dụng và so sánh các trường được constructor của nó chấp nhận với đoạn trích tài liệu dành cho SDK version 1.7.0. Tái hiện request có và không có giá trị, sau đó xác minh rằng có thể tạo một cột có giá trị như được nêu trong issue.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- api
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100