Skip to content

ServiceProviderServiceGetAuthorizationListRequest

Bases: OCIRequest

Requests the service provider's service authorization status. The response is either ServiceProviderServiceGetAuthorizationListResponse or ErrorResponse.

Attributes:

service_provider_id (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderServiceGetAuthorizationListRequest(OCIRequest):
    """Requests the service provider's service authorization status.
        The response is either ServiceProviderServiceGetAuthorizationListResponse or ErrorResponse.

    Attributes:

        service_provider_id (str):

    """

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

Responses

Bases: OCIDataResponse

Response to ServiceProviderServiceGetAuthorizationListRequest. Contains two tables, one for the group services and one for the user services. The Group Service table has column headings: "Service Name", "Authorized", "Assigned", "Limited", "Quantity", "Allocated", "Licensed", "Service Pack Allocation" The User Service table has column headings: "Service Name", "Authorized", "Assigned", "Limited", "Quantity", "Allocated", "Licensed", "Service Pack Allocation", "User Assignable", "Service Pack Assignable".

Attributes:

group_services_authorization_table (OCITable):

user_services_authorization_table (OCITable):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderServiceGetAuthorizationListResponse(OCIDataResponse):
    """Response to ServiceProviderServiceGetAuthorizationListRequest.
        Contains two tables, one for the group services and one for the user services.
        The Group Service table has column headings:
        \"Service Name\", \"Authorized\", \"Assigned\", \"Limited\", \"Quantity\", \"Allocated\", \"Licensed\", \"Service Pack Allocation\"
        The User Service table has column headings:
        \"Service Name\", \"Authorized\", \"Assigned\", \"Limited\", \"Quantity\", \"Allocated\", \"Licensed\", \"Service Pack Allocation\", \"User Assignable\", \"Service Pack Assignable\".

    Attributes:

        group_services_authorization_table (OCITable):

        user_services_authorization_table (OCITable):

    """

    group_services_authorization_table: OCITable = field(
        metadata={"alias": "groupServicesAuthorizationTable"}
    )

    user_services_authorization_table: OCITable = field(
        metadata={"alias": "userServicesAuthorizationTable"}
    )

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 ServiceProviderServiceGetAuthorizationListRequest

client = Client()

command = ServiceProviderServiceGetAuthorizationListRequest(
    service_provider_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("ServiceProviderServiceGetAuthorizationListRequest",
    service_provider_id=...,
)

print(response)