Skip to content

SystemDeviceManagementTagSetAddRequest

Bases: OCIRequest

Request to add a static configuration tag set. When the optional element resellerId is specified, the tag set created is at reseller level. Tag set name should be unique through out the system including all the reseller level tag sets. The response is either a SuccessResponse or an ErrorResponse.

The following elements are only used in AS data mode and ignored in the XS data mode:
  resellerId

Attributes:

tag_set_name (str):

reseller_id (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemDeviceManagementTagSetAddRequest(OCIRequest):
    """Request to add a static configuration tag set.
        When the optional element resellerId is specified, the tag set created is at reseller level. Tag set name
        should be unique through out the system including all the reseller level tag sets.
        The response is either a SuccessResponse or an ErrorResponse.

        The following elements are only used in AS data mode and ignored in the XS data mode:
          resellerId

    Attributes:

        tag_set_name (str):

        reseller_id (Optional[str]):

    """

    tag_set_name: str = field(metadata={"alias": "tagSetName"})

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

Responses

Bases: OCIResponse

Source code in src/mercury_ocip_fast/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

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 SystemDeviceManagementTagSetAddRequest

client = Client()

command = SystemDeviceManagementTagSetAddRequest(
    tag_set_name=...,
    reseller_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("SystemDeviceManagementTagSetAddRequest",
    tag_set_name=...,
    reseller_id=...,
)

print(response)