Skip to content

ConsolidatedUserServiceAssignment

Bases: OCIType

Assign a user service. If the service has not been authorized to the group, it will be authorized. The authorizedQuantity will be used at the group level if provided; otherwise, the service quantity will be set to unlimited. The command will fail if the authorized quantity set at the service provider level is insufficient.

Attributes:

user_service_name (str):

authorized_quantity (Optional[UnboundedPositiveInt]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ConsolidatedUserServiceAssignment(OCIType):
    """Assign a user service. If the service has not been authorized to the group, it will be authorized.
        The authorizedQuantity will be used at the group level if provided; otherwise, the service quantity will be set to unlimited.
        The command will fail if the authorized quantity set at the service provider level is insufficient.

    Attributes:

        user_service_name (str):

        authorized_quantity (Optional[UnboundedPositiveInt]):

    """

    user_service_name: str = field(metadata={"alias": "userServiceName"})

    authorized_quantity: Optional[UnboundedPositiveInt] = field(
        default=None, metadata={"alias": "authorizedQuantity"}
    )