WorkbookTableColumn doesn't accept "values"

Đang mở
#896 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
api

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.

Mô tả

area:documentation type:bug
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_
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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoftgraph/msgraph-sdk-python

Tất cả issue của microsoftgraph/msgraph-sdk-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.