ResellerCollaborateGetRequest
Bases: OCIRequest
Request the reseller level data associated with Collaborate. The response is either a ResellerCollaborateGetResponse or an ErrorResponse.
Attributes:
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class ResellerCollaborateGetRequest(OCIRequest):
"""Request the reseller level data associated with Collaborate.
The response is either a ResellerCollaborateGetResponse or an
ErrorResponse.
Attributes:
reseller_id (str):
"""
reseller_id: str = field(metadata={"alias": "resellerId"})
|
Responses
Bases: OCIDataResponse
Response to ResellerCollaborateGetRequest.
Attributes:
collaborate_from_address (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class ResellerCollaborateGetResponse(OCIDataResponse):
"""Response to ResellerCollaborateGetRequest.
Attributes:
collaborate_from_address (Optional[str]):
"""
collaborate_from_address: Optional[str] = field(
default=None, metadata={"alias": "collaborateFromAddress"}
)
|
Bases: OCIResponseSource code in src/mercury_ocip_fast/commands/base_command.py
| class ErrorResponse(OCIResponse):
errorCode: Optional[int] = None
summary: str
summaryEnglish: str
detail: Optional[str] = None
|
Example Usage
from mercury_ocip_fast.client import Client
from mercury_ocip_fast.commands import ResellerCollaborateGetRequest
client = Client()
command = ResellerCollaborateGetRequest(
reseller_id=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip_fast.client import Client
client = Client()
response = client.raw_command("ResellerCollaborateGetRequest",
reseller_id=...,
)
print(response)