Skip to content

SystemServiceAttributeDefaultGetListRequest

Bases: OCIRequest

Request to get the default attributes for a service that are used when assigning the feature. The response is either a SystemServiceAttributeDefaultGetListResponse or an ErrorResponse.

Attributes:

service_name (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemServiceAttributeDefaultGetListRequest(OCIRequest):
    """Request to get the default attributes for a service that are used when assigning the feature.
        The response is either a SystemServiceAttributeDefaultGetListResponse or an ErrorResponse.

    Attributes:

        service_name (str):

    """

    service_name: str = field(metadata={"alias": "serviceName"})

Responses

Bases: OCIDataResponse

Response to SystemServiceAttributeDefaultGetListRequest. Contains an array Service Attribute entries.

Attributes:

service_attribute_entry (List[ServiceAttributeEntryRead]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemServiceAttributeDefaultGetListResponse(OCIDataResponse):
    """Response to SystemServiceAttributeDefaultGetListRequest.
        Contains an array Service Attribute entries.

    Attributes:

        service_attribute_entry (List[ServiceAttributeEntryRead]):

    """

    service_attribute_entry: List[ServiceAttributeEntryRead] = field(
        metadata={"alias": "serviceAttributeEntry"}
    )

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 SystemServiceAttributeDefaultGetListRequest

client = Client()

command = SystemServiceAttributeDefaultGetListRequest(
    service_name=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemServiceAttributeDefaultGetListRequest",
    service_name=...,
)

print(response)