Skip to content

ServiceProviderGetDefaultRequest

Bases: OCIRequest

Request the default profile for a service provider or enterprise. The response is either a ServiceProviderGetDefaultResponse or an ErrorResponse.

Attributes:

Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderGetDefaultRequest(OCIRequest):
    """Request the default profile for a service provider or enterprise.
        The response is either a ServiceProviderGetDefaultResponse or an ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to the ServiceProviderGetDefaultRequest. All values are default values for a service provider or enterprise's profile.

Attributes:

is_enterprise (bool):

default_domain (Optional[str]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderGetDefaultResponse(OCIDataResponse):
    """Response to the ServiceProviderGetDefaultRequest. All values are default values for
        a service provider or enterprise's profile.

    Attributes:

        is_enterprise (bool):

        default_domain (Optional[str]):

    """

    is_enterprise: bool = field(metadata={"alias": "isEnterprise"})

    default_domain: Optional[str] = field(
        default=None, metadata={"alias": "defaultDomain"}
    )

Bases: OCIResponse

Source code in src/mercury_ocip/commands/base_command.py
class ErrorResponse(OCIResponse):
    errorCode: Optional[int] = None
    summary: str
    summaryEnglish: str
    detail: Optional[str] = None

Example Usage

from mercury_ocip.client import Client
from mercury_ocip.commands import ServiceProviderGetDefaultRequest

client = Client()

command = ServiceProviderGetDefaultRequest()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("ServiceProviderGetDefaultRequest")

print(response)