UserAnnouncementFileDeleteListRequest
Bases: OCIRequest
Delete one or more announcements from the user announcement repository
The following elements are only used in AS data mode and ignored in XS data mode:
announcementFileExternalId
The response is either a SuccessResponse or an ErrorResponse.
Attributes:
user_id (str):
announcement_file_key (Optional[List[AnnouncementFileKey]]):
announcement_file_external_id (Optional[List[str]]):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class UserAnnouncementFileDeleteListRequest(OCIRequest):
"""Delete one or more announcements from the user announcement repository
The following elements are only used in AS data mode and ignored in XS data mode:
announcementFileExternalId
The response is either a SuccessResponse or an ErrorResponse.
Attributes:
user_id (str):
announcement_file_key (Optional[List[AnnouncementFileKey]]):
announcement_file_external_id (Optional[List[str]]):
"""
user_id: str = field(metadata={"alias": "userId"})
announcement_file_key: Optional[List[AnnouncementFileKey]] = field(
default=None, metadata={"alias": "announcementFileKey"}
)
announcement_file_external_id: Optional[List[str]] = field(
default=None, metadata={"alias": "announcementFileExternalId"}
)
|
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 UserAnnouncementFileDeleteListRequest
client = Client()
command = UserAnnouncementFileDeleteListRequest(
user_id=...,
announcement_file_key=...,
announcement_file_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("UserAnnouncementFileDeleteListRequest",
user_id=...,
announcement_file_key=...,
announcement_file_external_id=...,
)
print(response)