ServiceProviderAdminAddRequest14
Bases: OCIRequest
Add a service provider administrator. The response is either a SuccessResponse or an ErrorResponse.
Attributes:
service_provider_id (str):
user_id (str):
first_name (Optional[str]):
last_name (Optional[str]):
password (Optional[str]):
language (Optional[str]):
administrator_type (str):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class ServiceProviderAdminAddRequest14(OCIRequest):
"""Add a service provider administrator.
The response is either a SuccessResponse or an ErrorResponse.
Attributes:
service_provider_id (str):
user_id (str):
first_name (Optional[str]):
last_name (Optional[str]):
password (Optional[str]):
language (Optional[str]):
administrator_type (str):
"""
service_provider_id: str = field(metadata={"alias": "serviceProviderId"})
user_id: str = field(metadata={"alias": "userId"})
first_name: Optional[str] = field(default=None, metadata={"alias": "firstName"})
last_name: Optional[str] = field(default=None, metadata={"alias": "lastName"})
password: Optional[str] = field(default=None, metadata={"alias": "password"})
language: Optional[str] = field(default=None, metadata={"alias": "language"})
administrator_type: str = field(metadata={"alias": "administratorType"})
|
Responses
Bases: OCIResponseSource code in src/mercury_ocip_fast/commands/base_command.py
| class SuccessResponse(OCIResponse):
pass
|
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 ServiceProviderAdminAddRequest14
client = Client()
command = ServiceProviderAdminAddRequest14(
service_provider_id=...,
user_id=...,
first_name=...,
last_name=...,
password=...,
language=...,
administrator_type=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip_fast.client import Client
client = Client()
response = client.raw_command("ServiceProviderAdminAddRequest14",
service_provider_id=...,
user_id=...,
first_name=...,
last_name=...,
password=...,
language=...,
administrator_type=...,
)
print(response)