Bases: OCIRequest
Request to get the custom configuration tag set defined at the access device. The response is either ServiceProviderAccessDeviceTagSetGetResponse or ErrorResponse.
Attributes:
service_provider_id (str):
device_name (str):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class ServiceProviderAccessDeviceTagSetGetRequest(OCIRequest):
"""Request to get the custom configuration tag set defined at the access device.
The response is either ServiceProviderAccessDeviceTagSetGetResponse or ErrorResponse.
Attributes:
service_provider_id (str):
device_name (str):
"""
service_provider_id: str = field(metadata={"alias": "serviceProviderId"})
device_name: str = field(metadata={"alias": "deviceName"})
|
Responses
Bases: OCIDataResponse
Response to ServiceProviderAccessDeviceTagSetGetRequest. The response includes a tag set name defined in the access device.
Attributes:
tag_set_name (Optional[str]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class ServiceProviderAccessDeviceTagSetGetResponse(OCIDataResponse):
"""Response to ServiceProviderAccessDeviceTagSetGetRequest.
The response includes a tag set name defined in the access device.
Attributes:
tag_set_name (Optional[str]):
"""
tag_set_name: Optional[str] = field(default=None, metadata={"alias": "tagSetName"})
|
Bases: OCIResponseSource 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 ServiceProviderAccessDeviceTagSetGetRequest
client = Client()
command = ServiceProviderAccessDeviceTagSetGetRequest(
service_provider_id=...,
device_name=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("ServiceProviderAccessDeviceTagSetGetRequest",
service_provider_id=...,
device_name=...,
)
print(response)