ResellerGetRequest22V2
Bases: OCIRequest
Get the profile for a reseller. The response is either ResellerGetResponse22V2 or ErrorResponse.
Attributes:
reseller_id (Optional[str]):
reseller_external_id (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class ResellerGetRequest22V2(OCIRequest):
"""Get the profile for a reseller.
The response is either ResellerGetResponse22V2 or ErrorResponse.
Attributes:
reseller_id (Optional[str]):
reseller_external_id (Optional[str]):
"""
reseller_id: Optional[str] = field(default=None, metadata={"alias": "resellerId"})
reseller_external_id: Optional[str] = field(
default=None, metadata={"alias": "resellerExternalId"}
)
|
Responses
Bases: OCIDataResponse
Response to the ResellerGetRequest22V2.
Attributes:
reseller_name (Optional[str]):
reseller_id (str):
reseller_external_id (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class ResellerGetResponse22V2(OCIDataResponse):
"""Response to the ResellerGetRequest22V2.
Attributes:
reseller_name (Optional[str]):
reseller_id (str):
reseller_external_id (Optional[str]):
"""
reseller_name: Optional[str] = field(
default=None, metadata={"alias": "resellerName"}
)
reseller_id: str = field(metadata={"alias": "resellerId"})
reseller_external_id: Optional[str] = field(
default=None, metadata={"alias": "resellerExternalId"}
)
|
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 ResellerGetRequest22V2
client = Client()
command = ResellerGetRequest22V2(
reseller_id=...,
reseller_external_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("ResellerGetRequest22V2",
reseller_id=...,
reseller_external_id=...,
)
print(response)