Skip to content

SystemNetworkClassOfServiceGetAssignedServiceProviderListRequest

Bases: OCIRequest

Request a list of service providers that have a given Network Class of Service assigned. The response is either a SystemNetworkClassOfServiceGetAssignedServiceProviderListResponse or ErrorResponse.

Attributes:

name (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemNetworkClassOfServiceGetAssignedServiceProviderListRequest(OCIRequest):
    """Request a list of service providers that have a given Network Class
        of Service assigned.
        The response is either a
        SystemNetworkClassOfServiceGetAssignedServiceProviderListResponse or
        ErrorResponse.

    Attributes:

        name (str):

    """

    name: str = field(metadata={"alias": "name"})

Responses

Bases: OCIDataResponse

Response to the SystemNetworkClassOfServiceGetAssignedServiceProviderListRequest. The response contains a table of all Service Providers that have the given Network Class of Service assigned. The column headings are "Service Provider Id", "Service Provider Name" and "Is Enterprise".

Attributes:

service_provider_table (OCITable):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemNetworkClassOfServiceGetAssignedServiceProviderListResponse(
    OCIDataResponse
):
    """Response to the
        SystemNetworkClassOfServiceGetAssignedServiceProviderListRequest.
        The response contains a table of all Service Providers that have
        the given Network Class of Service assigned. The column headings are
        \"Service Provider Id\", \"Service Provider Name\" and \"Is Enterprise\".

    Attributes:

        service_provider_table (OCITable):

    """

    service_provider_table: OCITable = field(metadata={"alias": "serviceProviderTable"})

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 SystemNetworkClassOfServiceGetAssignedServiceProviderListRequest

client = Client()

command = SystemNetworkClassOfServiceGetAssignedServiceProviderListRequest(
    name=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemNetworkClassOfServiceGetAssignedServiceProviderListRequest",
    name=...,
)

print(response)