• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-python-sdk-gen / 16346665995

17 Jul 2025 01:37PM UTC coverage: 92.229% (-0.4%) from 92.63%
16346665995

Pull #646

github

web-flow
Merge 7dece9744 into 64069db8d
Pull Request #646: fix: Error at 'Create metadata instance on file' box/box-openapi#393 (box/box-openapi#539)

154 of 228 new or added lines in 22 files covered. (67.54%)

25 existing lines in 2 files now uncovered.

12937 of 14027 relevant lines covered (92.23%)

0.92 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/box_sdk_gen/schemas/v2025_r0/hub_item_operation_v2025_r0.py
1
from enum import Enum
1✔
2

3
from typing import Union
1✔
4

5
from box_sdk_gen.internal.base_object import BaseObject
1✔
6

7
from box_sdk_gen.schemas.v2025_r0.file_reference_v2025_r0 import FileReferenceV2025R0
1✔
8

9
from box_sdk_gen.schemas.v2025_r0.folder_reference_v2025_r0 import (
1✔
10
    FolderReferenceV2025R0,
11
)
12

13
from box_sdk_gen.schemas.v2025_r0.weblink_reference_v2025_r0 import (
1✔
14
    WeblinkReferenceV2025R0,
15
)
16

17
from box_sdk_gen.box.errors import BoxSDKError
1✔
18

19

20
class HubItemOperationV2025R0ActionField(str, Enum):
1✔
21
    ADD = 'add'
1✔
22
    REMOVE = 'remove'
1✔
23

24

25
class HubItemOperationV2025R0(BaseObject):
1✔
26
    def __init__(
1✔
27
        self,
28
        action: HubItemOperationV2025R0ActionField,
29
        item: Union[
30
            FileReferenceV2025R0, FolderReferenceV2025R0, WeblinkReferenceV2025R0
31
        ],
32
        **kwargs
33
    ):
34
        """
35
        :param action: The action to perform on a Hub item.
36
        :type action: HubItemOperationV2025R0ActionField
37
        :param item: Reference to an item that can be added to a Hub.
38
        :type item: Union[FileReferenceV2025R0, FolderReferenceV2025R0, WeblinkReferenceV2025R0]
39
        """
NEW
40
        super().__init__(**kwargs)
×
NEW
41
        self.action = action
×
NEW
42
        self.item = item
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc