GroupFindMeFollowMeAddInstanceRequest
Bases: OCIRequest
Add a Find-me/Follow-me instance to a group. The domain is required in the serviceUserId. The response is either SuccessResponse or ErrorResponse.
Attributes:
service_provider_id (str):
group_id (str):
service_user_id (str):
service_instance_profile (ServiceInstanceAddProfile):
network_class_of_service (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class GroupFindMeFollowMeAddInstanceRequest(OCIRequest):
"""Add a Find-me/Follow-me instance to a group.
The domain is required in the serviceUserId.
The response is either SuccessResponse or ErrorResponse.
Attributes:
service_provider_id (str):
group_id (str):
service_user_id (str):
service_instance_profile (ServiceInstanceAddProfile):
network_class_of_service (Optional[str]):
"""
service_provider_id: str = field(metadata={"alias": "serviceProviderId"})
group_id: str = field(metadata={"alias": "groupId"})
service_user_id: str = field(metadata={"alias": "serviceUserId"})
service_instance_profile: ServiceInstanceAddProfile = field(
metadata={"alias": "serviceInstanceProfile"}
)
network_class_of_service: Optional[str] = field(
default=None, metadata={"alias": "networkClassOfService"}
)
|
Responses
Bases: OCIResponseSource code in src/mercury_ocip_fast/commands/base_command.py
| class SuccessResponse(OCIResponse):
pass
|
Bases: OCIResponseSource 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 GroupFindMeFollowMeAddInstanceRequest
client = Client()
command = GroupFindMeFollowMeAddInstanceRequest(
service_provider_id=...,
group_id=...,
service_user_id=...,
service_instance_profile=...,
network_class_of_service=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip_fast.client import Client
client = Client()
response = client.raw_command("GroupFindMeFollowMeAddInstanceRequest",
service_provider_id=...,
group_id=...,
service_user_id=...,
service_instance_profile=...,
network_class_of_service=...,
)
print(response)