Skip to content

ServiceProviderPreferredCarrierDeleteRequest

Bases: OCIRequest

Delete the country code preferred carriers for a service provider or enterprise. Note that this is different from unassigning all 3 types of carriers with the ServiceProviderPreferredCarrierModifyRequest. The response is either a SuccessResponse or an ErrorResponse. An ErrorResponse will be returned if the country code preferred carriers were never added or were already deleted.

Attributes:

service_provider_id (str):

country_code (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderPreferredCarrierDeleteRequest(OCIRequest):
    """Delete the country code preferred carriers for a service provider or enterprise.
        Note that this is different from unassigning all 3 types of carriers with
        the ServiceProviderPreferredCarrierModifyRequest.
        The response is either a SuccessResponse or an ErrorResponse.
        An ErrorResponse will be returned if the country code preferred carriers were never added or
        were already deleted.

    Attributes:

        service_provider_id (str):

        country_code (str):

    """

    service_provider_id: str = field(metadata={"alias": "serviceProviderId"})

    country_code: str = field(metadata={"alias": "countryCode"})

Responses

Bases: OCIResponse

Source code in src/mercury_ocip_fast/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

Bases: OCIResponse

Source 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

Bases: OCIResponse

Source 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 ServiceProviderPreferredCarrierDeleteRequest

client = Client()

command = ServiceProviderPreferredCarrierDeleteRequest(
    service_provider_id=...,
    country_code=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("ServiceProviderPreferredCarrierDeleteRequest",
    service_provider_id=...,
    country_code=...,
)

print(response)