diff --git a/README.md b/README.md
index 59054baefd..f7510dadc5 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@ If you intend to use the [`MLModel` service](https://python.viam.dev/autoapi/via
`pip install 'viam-sdk[mlmodel]'`
You can also run this command on an existing Python SDK install to add support for the ML model service.
-See the [ML (machine learning) model service](https://docs.viam.com/data-ai/ai/deploy/) documentation for more information.
+See the [ML (machine learning) model service](https://docs.viam.com/vision/deploy-and-maintain/deploy-from-registry/) documentation for more information.
### Upgrading
diff --git a/examples/complex_module/README.md b/examples/complex_module/README.md
index f62141170c..20a04e8a1b 100644
--- a/examples/complex_module/README.md
+++ b/examples/complex_module/README.md
@@ -2,13 +2,13 @@
This example goes through how to create custom modular resources using Viam's python SDK, and how to connect it to a Robot.
-This is a limited document. For a more in-depth understanding of modules, see the [documentation](https://docs.viam.com/operate/get-started/other-hardware/).
+This is a limited document. For a more in-depth understanding of modules, see the [documentation](https://docs.viam.com/build-modules/write-a-driver-module/).
## Purpose
Modular resources allow you to define custom components and services, and add them to your robot. Viam ships with many component types, but you're not limited to only using those types -- you can create your own using modules.
-For more information, see the [documentation](https://docs.viam.com/operate/get-started/other-hardware/). For a simpler example, take a look at the [simple module example](https://github.com/viamrobotics/viam-python-sdk/tree/main/examples/simple_module), which only contains one custom resource model in one file.
+For more information, see the [documentation](https://docs.viam.com/build-modules/write-a-driver-module/). For a simpler example, take a look at the [simple module example](https://github.com/viamrobotics/viam-python-sdk/tree/main/examples/simple_module), which only contains one custom resource model in one file.
For a fully fleshed-out example of a Python module that uses Github CI to upload to the Viam Registry, take a look at [python-example-module](https://github.com/viam-labs/python-example-module). For an example that uses Docker to manage dependencies, take a look at [python-container-module](https://github.com/viamrobotics/python-container-module). For a list of example modules in different Viam SDKs, take a look [here](https://github.com/viamrobotics/upload-module/#example-repos).
@@ -18,7 +18,7 @@ The definition of the new resources are in the `src` directory. Within this dire
The `proto` directory contains the `gizmo.proto` and `summation.proto` definitions of all the message types and calls that can be made to the Gizmo component and Summation service. It also has the compiled python output of the protobuf definition.
-The `gizmo` directory contains all the necessary definitions for creating a custom `Gizmo` component type. The `api.py` file defines what a `Gizmo` can do (mirroring the `proto` definition), implements the gRPC `GizmoService` for receiving calls, and the gRPC `GizmoClient` for making calls. See [Design your module](https://docs.viam.com/operate/get-started/other-hardware/#design-your-module) for more info on how to choose an API. The `my_gizmo.py` file in contains the unique implementation of a `Gizmo`. This is defined as a specific `Model`. This implementation uses the `validate_config` function to specify an implicit dependency on a `motor` by default and throw an error if there is an `invalid` attribute.
+The `gizmo` directory contains all the necessary definitions for creating a custom `Gizmo` component type. The `api.py` file defines what a `Gizmo` can do (mirroring the `proto` definition), implements the gRPC `GizmoService` for receiving calls, and the gRPC `GizmoClient` for making calls. See [Design your module](https://docs.viam.com/build-modules/write-a-driver-module/) for more info on how to choose an API. The `my_gizmo.py` file in contains the unique implementation of a `Gizmo`. This is defined as a specific `Model`. This implementation uses the `validate_config` function to specify an implicit dependency on a `motor` by default and throw an error if there is an `invalid` attribute.
Similarly, the `summation` directory contains the analogous definitions for the `Summation` service type. The files in this directory mirror the files in the `gizmo` directory.
@@ -34,11 +34,11 @@ Outside the `src` directory, there is a `client.py` file. You can use this file
These steps assume that you have a robot available at [app.viam.com](app.viam.com).
-The `run.sh` script is the entrypoint for this module. To connect this module with your robot, you must add this module's entrypoint to the robot's config. For example, the entrypoint file may be at `/home/viam-python-sdk/examples/complex_module/run.sh` and you must add this file path to your configuration. See the [documentation](https://docs.viam.com/operate/get-started/other-hardware/) for more details.
+The `run.sh` script is the entrypoint for this module. To connect this module with your robot, you must add this module's entrypoint to the robot's config. For example, the entrypoint file may be at `/home/viam-python-sdk/examples/complex_module/run.sh` and you must add this file path to your configuration. See the [documentation](https://docs.viam.com/build-modules/deploy-a-module/) for more details.
-Once the module has been added to your robot, add a `Gizmo` component that uses the `MyGizmo` model. See the [documentation](https://docs.viam.com/operate/get-started/other-hardware/#add-your-new-modular-resource-to-your-machines) for more details. You can also add an `Arm` component that uses the `MyArm` model and a `Summation` service that uses the `MySum` model in a similar manner.
+Once the module has been added to your robot, add a `Gizmo` component that uses the `MyGizmo` model. See the [documentation](https://docs.viam.com/build-modules/deploy-a-module/) for more details. You can also add an `Arm` component that uses the `MyArm` model and a `Summation` service that uses the `MySum` model in a similar manner.
-Models are uniquely namespaced as colon-delimited-triplets in the form `namespace:family:name`, and are named according to the Viam API that your model implements. A model with the `viam` namespace is always Viam-provided. Read more about making custom namespaces [here](https://docs.viam.com/operate/reference/naming-modules/#create-a-namespace-for-your-organization).
+Models are uniquely namespaced as colon-delimited-triplets in the form `namespace:family:name`, and are named according to the Viam API that your model implements. A model with the `viam` namespace is always Viam-provided. Read more about making custom namespaces [here](https://docs.viam.com/build-modules/module-reference/#organization-namespace).
An example configuration for an Arm component, a Gizmo component, and a Summation service could look like this:
diff --git a/examples/simple_module/README.md b/examples/simple_module/README.md
index 48d99daa7d..f4beaaaa02 100644
--- a/examples/simple_module/README.md
+++ b/examples/simple_module/README.md
@@ -1,16 +1,16 @@
# Viam Simple Module Example
This example goes through how to create custom modular resources using Viam's Python SDK, and how to connect it to a machine.
-This is a limited document. For a more in-depth understanding of modules, see the [documentation](https://docs.viam.com/operate/get-started/other-hardware/).
+This is a limited document. For a more in-depth understanding of modules, see the [documentation](https://docs.viam.com/build-modules/write-a-driver-module/).
> [!NOTE]
> You can auto-generate the stub files for your module using the Viam CLI.
-> [Install the CLI and authenticate](https://docs.viam.com/dev/tools/cli/#install), then run `viam module generate` and follow the prompts.
+> [Install the CLI and authenticate](https://docs.viam.com/cli/overview/#install), then run `viam module generate` and follow the prompts.
## Purpose
Modular resources allow you to define custom components and services, and add them to your robot. Viam ships with many component models, but you're not limited to only using those models -- you can add support for other models of hardware and software using modules.
-For more information, see the [documentation](hhttps://docs.viam.com/operate/get-started/other-hardware/). For a more complex example, take a look at the [complex module example](https://github.com/viamrobotics/viam-python-sdk/tree/main/examples/complex_module), which contains multiple new APIs and custom resource models.
+For more information, see the [documentation](hhttps://docs.viam.com/build-modules/write-a-driver-module/). For a more complex example, take a look at the [complex module example](https://github.com/viamrobotics/viam-python-sdk/tree/main/examples/complex_module), which contains multiple new APIs and custom resource models.
For a fully fleshed-out example of a Python module that uses Github CI to upload to the Viam Registry, take a look at [python-example-module](https://github.com/viam-labs/python-example-module). For an example that uses Docker to manage dependencies, take a look at [python-container-module](https://github.com/viamrobotics/python-container-module). For a list of example modules in different Viam SDKs, take a look [here](https://github.com/viamrobotics/upload-module/#example-repos).
@@ -28,11 +28,11 @@ Outside the `src` directory, there is a `client.py` file. You can use this file
## Configuring and using the module
These steps assume that you have a robot available at [app.viam.com](app.viam.com).
-The `run.sh` script is the entrypoint for this module. To connect this module with your robot, you must add this module's entrypoint to the robot's config. For example, the entrypoint file may be at `/home/viam-python-sdk/examples/simple_module/run.sh` and you must add this file path to your configuration. See the [documentation](https://docs.viam.com/operate/get-started/other-hardware/#upload-your-module) for more details.
+The `run.sh` script is the entrypoint for this module. To connect this module with your robot, you must add this module's entrypoint to the robot's config. For example, the entrypoint file may be at `/home/viam-python-sdk/examples/simple_module/run.sh` and you must add this file path to your configuration. See the [documentation](https://docs.viam.com/build-modules/deploy-a-module/) for more details.
-Once the module has been added to your robot, add a new component that uses the `MySensor` model. See the [documentation](https://docs.viam.com/operate/get-started/other-hardware/#add-your-new-modular-resource-to-your-machines) for more details.
+Once the module has been added to your robot, add a new component that uses the `MySensor` model. See the [documentation](https://docs.viam.com/build-modules/deploy-a-module/) for more details.
-Models are uniquely namespaced as colon-delimited-triplets in the form `namespace:family:name`, and are named according to the Viam API that your model implements. A model with the `viam` namespace is always Viam-provided. Read more about making custom namespaces [here](https://docs.viam.com/operate/reference/naming-modules/#create-a-namespace-for-your-organization).
+Models are uniquely namespaced as colon-delimited-triplets in the form `namespace:family:name`, and are named according to the Viam API that your model implements. A model with the `viam` namespace is always Viam-provided. Read more about making custom namespaces [here](https://docs.viam.com/build-modules/module-reference/#organization-namespace).
An example configuration for a Sensor component could look like this:
```json
diff --git a/src/viam/app/app_client.py b/src/viam/app/app_client.py
index ce6ba588dd..abd59c26b2 100644
--- a/src/viam/app/app_client.py
+++ b/src/viam/app/app_client.py
@@ -597,7 +597,7 @@ async def main():
if __name__ == '__main__':
asyncio.run(main())
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
def __init__(self, channel: Channel, metadata: Mapping[str, str]):
@@ -659,7 +659,7 @@ async def get_user_id_by_email(self, email: str) -> str:
Returns:
str: The ID of the user.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = GetUserIDByEmailRequest(email=email)
response: GetUserIDByEmailResponse = await self._app_client.GetUserIDByEmail(request, metadata=self._metadata)
@@ -678,7 +678,7 @@ async def create_organization(self, name: str) -> Organization:
Returns:
Organization: The created organization.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = CreateOrganizationRequest(name=name)
response: CreateOrganizationResponse = await self._app_client.CreateOrganization(request, metadata=self._metadata)
@@ -694,7 +694,7 @@ async def list_organizations(self) -> list[Organization]:
Returns:
list[viam.proto.app.Organization]: The list of organizations.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = ListOrganizationsRequest()
response: ListOrganizationsResponse = await self._app_client.ListOrganizations(request, metadata=self._metadata)
@@ -713,7 +713,7 @@ async def get_organizations_with_access_to_location(self, location_id: str) -> l
Returns:
list[viam.proto.app.OrganizationIdentity]: The list of organizations.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = GetOrganizationsWithAccessToLocationRequest(location_id=location_id)
response: GetOrganizationsWithAccessToLocationResponse = await self._app_client.GetOrganizationsWithAccessToLocation(
@@ -734,7 +734,7 @@ async def list_organizations_by_user(self, user_id: str) -> list[OrgDetails]:
Returns:
list[OrgDetails]: The list of organizations.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = ListOrganizationsByUserRequest(user_id=user_id)
response: ListOrganizationsByUserResponse = await self._app_client.ListOrganizationsByUser(request, metadata=self._metadata)
@@ -757,7 +757,7 @@ async def get_organization(self, org_id: str) -> Organization:
Returns:
viam.proto.app.Organization: The requested organization.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = GetOrganizationRequest(organization_id=org_id)
response: GetOrganizationResponse = await self._app_client.GetOrganization(request, metadata=self._metadata)
@@ -781,7 +781,7 @@ async def get_organization_namespace_availability(self, public_namespace: str) -
Returns:
bool: True if the provided namespace is available.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = GetOrganizationNamespaceAvailabilityRequest(public_namespace=public_namespace)
response: GetOrganizationNamespaceAvailabilityResponse = await self._app_client.GetOrganizationNamespaceAvailability(
@@ -821,7 +821,7 @@ async def update_organization(
Returns:
viam.proto.app.Organization: The updated organization.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = UpdateOrganizationRequest(
organization_id=org_id,
@@ -845,7 +845,7 @@ async def delete_organization(self, org_id: str) -> None:
org_id (str): The ID of the organization.
You can obtain your organization ID from the organization settings page.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = DeleteOrganizationRequest(organization_id=org_id)
await self._app_client.DeleteOrganization(request, metadata=self._metadata)
@@ -865,7 +865,7 @@ async def list_organization_members(self, org_id: str) -> tuple[list[Organizatio
tuple[list[viam.proto.app.OrganizationMember], list[viam.proto.app.OrganizationInvite]]: A tuple containing two lists; the first
[0] of organization members, and the second [1] of organization invites.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = ListOrganizationMembersRequest(organization_id=org_id)
response: ListOrganizationMembersResponse = await self._app_client.ListOrganizationMembers(request, metadata=self._metadata)
@@ -902,7 +902,7 @@ async def create_organization_invite(
Returns:
OrganizationInvite: The organization invite.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = CreateOrganizationInviteRequest(
organization_id=org_id, email=email, authorizations=authorizations, send_email_invite=send_email_invite
@@ -956,7 +956,7 @@ async def update_organization_invite_authorizations(
Returns:
viam.proto.app.OrganizationInvite: The updated invite.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = UpdateOrganizationInviteAuthorizationsRequest(
organization_id=org_id, email=email, add_authorizations=add_authorizations, remove_authorizations=remove_authorizations
@@ -981,7 +981,7 @@ async def delete_organization_member(self, org_id: str, user_id: str) -> None:
You can obtain your organization ID from the organization settings page.
user_id (str): The ID of the user to remove.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = DeleteOrganizationMemberRequest(organization_id=org_id, user_id=user_id)
await self._app_client.DeleteOrganizationMember(request, metadata=self._metadata)
@@ -1001,7 +1001,7 @@ async def delete_organization_invite(self, org_id: str, email: str) -> None:
Raises:
GRPCError: If no pending invite is associated with the provided email address.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = DeleteOrganizationInviteRequest(organization_id=org_id, email=email)
await self._app_client.DeleteOrganizationInvite(request, metadata=self._metadata)
@@ -1024,7 +1024,7 @@ async def resend_organization_invite(self, org_id: str, email: str) -> Organizat
Returns:
viam.proto.app.OrganizationInvite: The organization invite sent.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = ResendOrganizationInviteRequest(organization_id=org_id, email=email)
response: ResendOrganizationInviteResponse = await self._app_client.ResendOrganizationInvite(request, metadata=self._metadata)
@@ -1065,7 +1065,7 @@ async def create_oauth_app_user(
Returns:
CreateOAuthAppUserResponse: The response containing auth_token, registration_id, user_id, and refresh_token.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = CreateOAuthAppUserRequest(
org_id=org_id,
@@ -1097,7 +1097,7 @@ async def create_location(self, org_id: str, name: str, parent_location_id: str
Returns:
viam.proto.app.Location: The newly created location.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = CreateLocationRequest(organization_id=org_id, name=name, parent_location_id=parent_location_id)
response: CreateLocationResponse = await self._app_client.CreateLocation(request, metadata=self._metadata)
@@ -1120,7 +1120,7 @@ async def get_location(self, location_id: str | None = None) -> Location:
Returns:
viam.proto.app.Location: The location.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = GetLocationRequest(location_id=location_id if location_id else "")
response: GetLocationResponse = await self._app_client.GetLocation(request, metadata=self._metadata)
@@ -1165,7 +1165,7 @@ async def update_location(self, location_id: str, name: str | None = None, paren
Returns:
viam.proto.app.Location: The newly updated location.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = UpdateLocationRequest(location_id=location_id, name=name, parent_location_id=parent_location_id)
response: UpdateLocationResponse = await self._app_client.UpdateLocation(request, metadata=self._metadata)
@@ -1184,7 +1184,7 @@ async def delete_location(self, location_id: str) -> None:
Raises:
GRPCError: If an invalid location ID is passed.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = DeleteLocationRequest(location_id=location_id)
await self._app_client.DeleteLocation(request, metadata=self._metadata)
@@ -1203,7 +1203,7 @@ async def list_locations(self, org_id: str) -> list[Location]:
Returns:
list[viam.proto.app.Location]: The list of locations.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = ListLocationsRequest(organization_id=org_id)
response: ListLocationsResponse = await self._app_client.ListLocations(request, metadata=self._metadata)
@@ -1220,7 +1220,7 @@ async def share_location(self, organization_id: str, location_id: str) -> None:
organization_id (str): The ID of the organization.
location_id (str): The ID of the location.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = ShareLocationRequest(location_id=location_id, organization_id=organization_id)
await self._app_client.ShareLocation(request, metadata=self._metadata)
@@ -1236,7 +1236,7 @@ async def unshare_location(self, organization_id: str, location_id: str) -> None
organization_id (str): The ID of the organization.
location_id (str): The ID of the location.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = UnshareLocationRequest(location_id=location_id, organization_id=organization_id)
await self._app_client.UnshareLocation(request, metadata=self._metadata)
@@ -1259,7 +1259,7 @@ async def location_auth(self, location_id: str | None = None) -> LocationAuth:
Returns:
viam.proto.app.LocationAuth: The `LocationAuth` containing location secrets.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = LocationAuthRequest(location_id=location_id if location_id else "")
response: LocationAuthResponse = await self._app_client.LocationAuth(request, metadata=self._metadata)
@@ -1283,7 +1283,7 @@ async def create_location_secret(self, location_id: str | None = None) -> Locati
Returns:
viam.proto.app.LocationAuth: The specified location's `LocationAuth` containing the newly created secret.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = CreateLocationSecretRequest(location_id=location_id if location_id else "")
response: CreateLocationSecretResponse = await self._app_client.CreateLocationSecret(request, metadata=self._metadata)
@@ -1307,7 +1307,7 @@ async def delete_location_secret(self, secret_id: str, location_id: str | None =
GRPCError: If either an invalid location ID or secret ID is passed or a location ID isn't passed and there was no location
ID provided at `AppClient` instantiation.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = DeleteLocationSecretRequest(location_id=location_id if location_id else "", secret_id=secret_id)
await self._app_client.DeleteLocationSecret(request, metadata=self._metadata)
@@ -1328,7 +1328,7 @@ async def get_robot(self, robot_id: str) -> Robot:
Returns:
viam.proto.app.Robot: The machine.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = GetRobotRequest(id=robot_id)
response: GetRobotResponse = await self._app_client.GetRobot(request, metadata=self._metadata)
@@ -1348,7 +1348,7 @@ async def get_rover_rental_robots(self, org_id: str) -> list[RoverRentalRobot]:
Returns:
list[viam.proto.app.RoverRentalRobot]: The list of rover rental robots.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = GetRoverRentalRobotsRequest(org_id=org_id)
response: GetRoverRentalRobotsResponse = await self._app_client.GetRoverRentalRobots(request, metadata=self._metadata)
@@ -1372,7 +1372,7 @@ async def get_robot_parts(self, robot_id: str) -> list[RobotPart]:
Returns:
list[viam.app.app_client.RobotPart]: The list of machine parts.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = GetRobotPartsRequest(robot_id=robot_id)
response: GetRobotPartsResponse = await self._app_client.GetRobotParts(request, metadata=self._metadata)
@@ -1406,7 +1406,7 @@ async def get_robot_part(self, robot_part_id: str, dest: str | None = None, inde
Returns:
viam.app.app_client.RobotPart: The machine part.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = GetRobotPartRequest(id=robot_part_id)
response: GetRobotPartResponse = await self._app_client.GetRobotPart(request, metadata=self._metadata)
@@ -1462,7 +1462,7 @@ async def get_robot_part_logs(
Returns:
list[viam.app.app_client.LogEntry]: The list of log entries.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
if num_log_entries < 0:
raise ValueError("'num_log_entries must be at least 0.")
@@ -1595,7 +1595,7 @@ async def get_robot_part_history(
Returns:
list[viam.app.app_client.RobotPartHistoryEntry]: The list of the machine part's history.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = GetRobotPartHistoryRequest(
id=robot_part_id,
@@ -1638,7 +1638,7 @@ async def update_robot_part(
Returns:
viam.app.app_client.RobotPart: The newly updated robot part.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = UpdateRobotPartRequest(
id=robot_part_id,
@@ -1669,7 +1669,7 @@ async def new_robot_part(self, robot_id: str, part_name: str) -> str:
Returns:
str: The new machine part's ID.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = NewRobotPartRequest(robot_id=robot_id, part_name=part_name)
response: NewRobotPartResponse = await self._app_client.NewRobotPart(request, metadata=self._metadata)
@@ -1711,7 +1711,7 @@ async def delete_robot_part(self, robot_part_id: str) -> None:
Raises:
GRPCError: If an invalid machine part ID is passed.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = DeleteRobotPartRequest(part_id=robot_part_id)
await self._app_client.DeleteRobotPart(request, metadata=self._metadata)
@@ -1729,7 +1729,7 @@ async def get_robot_api_keys(self, robot_id: str) -> list[APIKeyWithAuthorizatio
Returns:
list[APIKeyWithAuthorizations]: The list of API keys.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = GetRobotAPIKeysRequest(robot_id=robot_id)
response: GetRobotAPIKeysResponse = await self._app_client.GetRobotAPIKeys(request, metadata=self._metadata)
@@ -1749,7 +1749,7 @@ async def mark_part_as_main(self, robot_part_id: str) -> None:
Raises:
GRPCError: If an invalid machine part ID is passed.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = MarkPartAsMainRequest(part_id=robot_part_id)
await self._app_client.MarkPartAsMain(request, metadata=self._metadata)
@@ -1768,7 +1768,7 @@ async def mark_part_for_restart(self, robot_part_id: str) -> None:
Raises:
GRPCError: If an invalid machine part ID is passed.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = MarkPartForRestartRequest(part_id=robot_part_id)
await self._app_client.MarkPartForRestart(request, metadata=self._metadata)
@@ -1790,7 +1790,7 @@ async def create_robot_part_secret(self, robot_part_id: str) -> RobotPart:
Returns:
viam.app.app_client.RobotPart: The machine part the new secret was generated for.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = CreateRobotPartSecretRequest(part_id=robot_part_id)
response: CreateRobotPartSecretResponse = await self._app_client.CreateRobotPartSecret(request, metadata=self._metadata)
@@ -1812,7 +1812,7 @@ async def delete_robot_part_secret(self, robot_part_id: str, secret_id: str) ->
Raises:
GRPCError: If an invalid machine part ID or secret ID is passed.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = DeleteRobotPartSecretRequest(part_id=robot_part_id, secret_id=secret_id)
await self._app_client.DeleteRobotPartSecret(request, metadata=self._metadata)
@@ -1835,7 +1835,7 @@ async def list_robots(self, location_id: str | None = None) -> list[Robot]:
Returns:
list[viam.proto.app.Robot]: The list of robots.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = ListRobotsRequest(location_id=location_id if location_id else "")
response: ListRobotsResponse = await self._app_client.ListRobots(request, metadata=self._metadata)
@@ -1880,7 +1880,7 @@ async def new_robot(self, name: str, location_id: str | None = None) -> str:
Returns:
str: The new robot's ID.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = NewRobotRequest(location=location_id if location_id else "", name=name)
response: NewRobotResponse = await self._app_client.NewRobot(request, metadata=self._metadata)
@@ -1910,7 +1910,7 @@ async def update_robot(self, robot_id: str, name: str, location_id: str | None =
Returns:
viam.proto.app.Robot: The newly updated machine.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = UpdateRobotRequest(id=robot_id, name=name, location=location_id if location_id else "")
response: UpdateRobotResponse = await self._app_client.UpdateRobot(request, metadata=self._metadata)
@@ -1929,7 +1929,7 @@ async def delete_robot(self, robot_id: str) -> None:
Raises:
GRPCError: If an invalid machine ID is passed.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = DeleteRobotRequest(id=robot_id)
await self._app_client.DeleteRobot(request, metadata=self._metadata)
@@ -1992,7 +1992,7 @@ async def list_fragments(
Returns:
list[viam.app.app_client.Fragment]: The list of fragments.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = ListFragmentsRequest(
organization_id=org_id,
@@ -2022,7 +2022,7 @@ async def get_fragment(self, fragment_id: str, version: str | None = None) -> Fr
Returns:
viam.app.app_client.Fragment: The fragment.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = GetFragmentRequest(id=fragment_id, version=version)
response: GetFragmentResponse = await self._app_client.GetFragment(request, metadata=self._metadata)
@@ -2048,7 +2048,7 @@ async def create_fragment(self, org_id: str, name: str, config: Mapping[str, Val
Returns:
viam.app.app_client.Fragment: The newly created fragment.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = CreateFragmentRequest(name=name, config=dict_to_struct(config) if config else None, organization_id=org_id)
response: CreateFragmentResponse = await self._app_client.CreateFragment(request, metadata=self._metadata)
@@ -2093,7 +2093,7 @@ async def update_fragment(
Returns:
viam.app.app_client.Fragment: The newly updated fragment.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = UpdateFragmentRequest(
id=fragment_id,
@@ -2120,7 +2120,7 @@ async def delete_fragment(self, fragment_id: str) -> None:
Raises:
GRPCError: If an invalid fragment ID is passed.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = DeleteFragmentRequest(id=fragment_id)
await self._app_client.DeleteFragment(request, metadata=self._metadata)
@@ -2148,7 +2148,7 @@ async def get_fragment_history(self, id: str, page_token: str | None = "", page_
Returns:
viam.app.app_client.FragmentHistoryResponse: A list of documents with the fragment history.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = GetFragmentHistoryRequest(id=id, page_token=page_token, page_limit=page_limit)
@@ -2187,7 +2187,7 @@ async def add_role(
Raises:
GRPCError: If either an invalid identity ID, role ID, resource type, or resource ID is passed.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
authorization = await self._create_authorization(
organization_id=org_id,
@@ -2232,7 +2232,7 @@ async def remove_role(
Raises:
GRPCError: If either an invalid identity ID, role ID, resource type, or resource ID or is passed.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
authorization = await self._create_authorization(
organization_id=org_id,
@@ -2287,7 +2287,7 @@ async def change_role(
Must match `new_resource_id`.
new_resource_id (str): New ID of the resource the role applies to (that is, either an organization, location, or robot ID).
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
old_authorization = await self._create_authorization(
organization_id=organization_id,
@@ -2329,7 +2329,7 @@ async def list_authorizations(self, org_id: str, resource_ids: list[str] | None
Returns:
list[viam.proto.app.Authorization]: The list of authorizations.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = ListAuthorizationsRequest(organization_id=org_id, resource_ids=resource_ids)
response: ListAuthorizationsResponse = await self._app_client.ListAuthorizations(request, metadata=self._metadata)
@@ -2361,7 +2361,7 @@ async def check_permissions(self, permissions: list[AuthorizedPermissions]) -> l
Returns:
list[viam.proto.app.AuthorizedPermissions]: The permissions argument, with invalid permissions filtered out.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = CheckPermissionsRequest(permissions=permissions)
response: CheckPermissionsResponse = await self._app_client.CheckPermissions(request, metadata=self._metadata)
@@ -2383,7 +2383,7 @@ async def get_registry_item(self, item_id: str, include_markdown_documentation:
Returns:
RegistryItem: The registry item.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = GetRegistryItemRequest(item_id=item_id, include_markdown_documentation=include_markdown_documentation)
response: GetRegistryItemResponse = await self._app_client.GetRegistryItem(request, metadata=self._metadata)
@@ -2403,7 +2403,7 @@ async def create_registry_item(self, organization_id: str, name: str, type: Pack
name (str): The name of the registry item, which must be unique within your org.
type (PackageType.ValueType): The type of the item in the registry.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = CreateRegistryItemRequest(organization_id=organization_id, name=name, type=type)
await self._app_client.CreateRegistryItem(request, metadata=self._metadata)
@@ -2432,7 +2432,7 @@ async def update_registry_item(
description (str): The description of the registry item.
visibility (Visibility.ValueType): The visibility of the registry item.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = UpdateRegistryItemRequest(item_id=item_id, type=type, description=description, visibility=visibility)
@@ -2485,7 +2485,7 @@ async def list_registry_items(
Returns:
list[RegistryItem]: The list of registry items.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = ListRegistryItemsRequest(
organization_id=organization_id,
@@ -2510,7 +2510,7 @@ async def delete_registry_item(self, item_id: str) -> None:
item_id (str): The ID of the deleted registry item, containing either the namespace and module name
(for example, `my-org:my-module`) or organization ID and module name (`org-id:my-module`).
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = DeleteRegistryItemRequest(item_id=item_id)
await self._app_client.DeleteRegistryItem(request, metadata=self._metadata)
@@ -2527,7 +2527,7 @@ async def deprecate_registry_item(self, item_id: str, message: str) -> None:
(for example, `my-org:my-module`) or organization ID and module name (`org-id:my-module`).
message (str): Message explaining the reason for deprecation.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = DeprecateRegistryItemRequest(item_id=item_id, message=message)
await self._app_client.DeprecateRegistryItem(request, metadata=self._metadata)
@@ -2543,7 +2543,7 @@ async def undeprecate_registry_item(self, item_id: str) -> None:
item_id (str): The ID of the registry item to undeprecate, containing either the namespace and module name
(for example, `my-org:my-module`) or organization ID and module name (`org-id:my-module`).
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = UndeprecateRegistryItemRequest(item_id=item_id)
await self._app_client.UndeprecateRegistryItem(request, metadata=self._metadata)
@@ -2561,7 +2561,7 @@ async def deprecate_registry_item_version(self, item_id: str, version: str, mess
version (str): The semver string of the version to deprecate.
message (str): Message explaining the reason for deprecation.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = DeprecateRegistryItemVersionRequest(item_id=item_id, version=version, message=message)
await self._app_client.DeprecateRegistryItemVersion(request, metadata=self._metadata)
@@ -2578,7 +2578,7 @@ async def undeprecate_registry_item_version(self, item_id: str, version: str) ->
(for example, `my-org:my-module`) or organization ID and module name (`org-id:my-module`).
version (str): The semver string of the version to undeprecate.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = UndeprecateRegistryItemVersionRequest(item_id=item_id, version=version)
await self._app_client.UndeprecateRegistryItemVersion(request, metadata=self._metadata)
@@ -2602,7 +2602,7 @@ async def create_module(self, org_id: str, name: str) -> tuple[str, str]:
Returns:
tuple[str, str]: A tuple containing the ID [0] of the new module and its URL [1].
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = CreateModuleRequest(organization_id=org_id, name=name)
response: CreateModuleResponse = await self._app_client.CreateModule(request, metadata=self._metadata)
@@ -2651,7 +2651,7 @@ async def update_module(
Returns:
str: The URL of the newly updated module.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = UpdateModuleRequest(
module_id=module_id,
@@ -2689,7 +2689,7 @@ async def upload_module_file(self, module_file_info: ModuleFileInfo, file: bytes
Returns:
str: URL of uploaded file.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request_module_file_info = UploadModuleFileRequest(module_file_info=module_file_info)
request_file = UploadModuleFileRequest(file=file)
@@ -2719,7 +2719,7 @@ async def get_module(self, module_id: str) -> Module:
Returns:
viam.proto.app.Module: The module.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = GetModuleRequest(module_id=module_id)
response: GetModuleResponse = await self._app_client.GetModule(request, metadata=self._metadata)
@@ -2739,7 +2739,7 @@ async def list_modules(self, org_id: str) -> list[Module]:
Returns:
list[viam.proto.app.Module]: The list of modules.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = ListModulesRequest(organization_id=org_id)
response: ListModulesResponse = await self._app_client.ListModules(request, metadata=self._metadata)
@@ -2779,7 +2779,7 @@ async def create_key(self, org_id: str, authorizations: list[APIKeyAuthorization
Returns:
tuple[str, str]: The api key and api key ID.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
name = name if name is not None else str(datetime.now())
authorizations_pb = [await self._create_authorization_for_new_api_key(org_id, auth) for auth in authorizations]
@@ -2797,7 +2797,7 @@ async def delete_key(self, id: str) -> None:
Args:
id (str): The ID of the API key.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = DeleteKeyRequest(id=id)
await self._app_client.DeleteKey(request, metadata=self._metadata)
@@ -2816,7 +2816,7 @@ async def create_key_from_existing_key_authorizations(self, id: str) -> tuple[st
Returns:
tuple[str, str]: The API key and API key id
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = CreateKeyFromExistingKeyAuthorizationsRequest(id=id)
response: CreateKeyFromExistingKeyAuthorizationsResponse = await self._app_client.CreateKeyFromExistingKeyAuthorizations(
@@ -2839,7 +2839,7 @@ async def list_keys(self, org_id: str) -> list[APIKeyWithAuthorizations]:
Returns:
list[viam.proto.app.APIKeyWithAuthorizations]: The existing API keys and authorizations.
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = ListKeysRequest(org_id=org_id)
response: ListKeysResponse = await self._app_client.ListKeys(request, metadata=self._metadata)
@@ -2858,7 +2858,7 @@ async def rotate_key(self, id: str) -> tuple[str, str]:
Returns:
tuple[str, str]: The API key and API key id
- For more information, see `Fleet Management API `_.
+ For more information, see `Fleet Management API `_.
"""
request = RotateKeyRequest(id=id)
response: RotateKeyResponse = await self._app_client.RotateKey(request, metadata=self._metadata)
diff --git a/src/viam/app/billing_client.py b/src/viam/app/billing_client.py
index 4328dfbf0f..3234f72495 100644
--- a/src/viam/app/billing_client.py
+++ b/src/viam/app/billing_client.py
@@ -51,7 +51,7 @@ async def main():
if __name__ == '__main__':
asyncio.run(main())
- For more information, see `Billing Client API `_.
+ For more information, see `Billing Client API `_.
"""
def __init__(self, channel: Channel, metadata: Mapping[str, str]):
@@ -82,7 +82,7 @@ async def get_current_month_usage(self, org_id: str, timeout: Optional[float] =
Returns:
viam.proto.app.billing.GetCurrentMonthUsageResponse: the current month usage information
- For more information, see `Billing Client API `_.
+ For more information, see `Billing Client API `_.
"""
request = GetCurrentMonthUsageRequest(org_id=org_id)
return await self._billing_client.GetCurrentMonthUsage(request, metadata=self._metadata, timeout=timeout)
@@ -99,7 +99,7 @@ async def get_invoice_pdf(self, invoice_id: str, org_id: str, dest: str, timeout
org_id (str): the ID of the organization to request data from
dest (str): the filepath to save the invoice to
- For more information, see `Billing Client API `_.
+ For more information, see `Billing Client API `_.
"""
stream: Stream[GetInvoicePdfRequest, GetInvoicePdfResponse]
async with self._billing_client.GetInvoicePdf.open(timeout=timeout, metadata=self._metadata) as stream:
@@ -121,7 +121,7 @@ async def get_invoices_summary(self, org_id: str, timeout: Optional[float] = Non
Returns:
viam.proto.app.billing.GetInvoicesSummaryResponse: the summaries of all organization invoices
- For more information, see `Billing Client API `_.
+ For more information, see `Billing Client API `_.
"""
request = GetInvoicesSummaryRequest(org_id=org_id)
return await self._billing_client.GetInvoicesSummary(request, metadata=self._metadata, timeout=timeout)
@@ -139,7 +139,7 @@ async def get_org_billing_information(self, org_id: str, timeout: Optional[float
Returns:
viam.proto.app.billing.GetOrgBillingInformationResponse: the organization billing information
- For more information, see `Billing Client API `_.
+ For more information, see `Billing Client API `_.
"""
request = GetOrgBillingInformationRequest(org_id=org_id)
return await self._billing_client.GetOrgBillingInformation(request, metadata=self._metadata, timeout=timeout)
diff --git a/src/viam/app/data_client.py b/src/viam/app/data_client.py
index 041405daea..d2c7d202ec 100644
--- a/src/viam/app/data_client.py
+++ b/src/viam/app/data_client.py
@@ -177,7 +177,7 @@ async def main():
asyncio.run(main())
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
@dataclass
@@ -471,7 +471,7 @@ async def tabular_data_by_filter(
- ``count`` (*int*): The count (number of entries).
- ``last`` (*str*): The last-returned page ID.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
filter = filter if filter else Filter()
@@ -522,7 +522,7 @@ async def tabular_data_by_sql(self, organization_id: str, sql_query: str) -> Lis
Returns:
List[Dict[str, Union[ValueTypes, datetime]]]: An array of decoded BSON data objects.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = TabularDataBySQLRequest(organization_id=organization_id, sql_query=sql_query)
response: TabularDataBySQLResponse = await self._data_client.TabularDataBySQL(request, metadata=self._metadata)
@@ -568,7 +568,7 @@ async def tabular_data_by_mql(
Returns:
List[Dict[str, Union[ValueTypes, datetime]]]: An array of decoded BSON data objects.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
binary: List[bytes] = [bson.encode(query) for query in query] if isinstance(query[0], dict) else query # type: ignore
data_source = TabularDataSource(type=tabular_data_source_type, pipeline_id=pipeline_id)
@@ -629,7 +629,7 @@ async def get_latest_tabular_data(
- ``time_synced`` (*datetime*): The time synced.
- ``payload`` (*Dict[str, ValueTypes]*): The latest tabular data captured from the specified data source.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = GetLatestTabularDataRequest(
@@ -683,7 +683,7 @@ async def export_tabular_data(
Returns:
List[TabularDataPoint]: The unified tabular data and metadata.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
interval = CaptureInterval(start=datetime_to_timestamp(start_time), end=datetime_to_timestamp(end_time))
@@ -788,7 +788,7 @@ async def binary_data_by_filter(
- ``count`` (*int*): The count (number of entries).
- ``last`` (*str*): The last-returned page ID.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
data_request = DataRequest(filter=filter)
@@ -852,7 +852,7 @@ async def binary_data_by_ids(
Returns:
List[~viam.proto.app.data.BinaryData]: The binary data.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = BinaryDataByIDsRequest()
if len(binary_ids) > 0 and isinstance(binary_ids[0], str):
@@ -906,7 +906,7 @@ async def delete_tabular_data(
Returns:
int: The number of items deleted.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = DeleteTabularDataRequest(organization_id=organization_id, delete_older_than_days=delete_older_than_days, filter=filter)
response: DeleteTabularDataResponse = await self._data_client.DeleteTabularData(request, metadata=self._metadata)
@@ -936,7 +936,7 @@ async def delete_binary_data_by_filter(self, filter: Optional[Filter]) -> int:
Returns:
int: The number of items deleted.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
filter = filter if filter else Filter()
request = DeleteBinaryDataByFilterRequest(filter=filter)
@@ -979,7 +979,7 @@ async def delete_binary_data_by_ids(self, binary_ids: Union[List[BinaryID], List
Returns:
int: The number of items deleted.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = DeleteBinaryDataByIDsRequest()
if len(binary_ids) > 0 and isinstance(binary_ids[0], str):
@@ -1026,7 +1026,7 @@ async def add_tags_to_binary_data_by_ids(self, tags: List[str], binary_ids: Unio
Raises:
GRPCError: If no binary data ID strings or :class:`BinaryID` objects are provided.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = AddTagsToBinaryDataByIDsRequest()
if len(binary_ids) > 0 and isinstance(binary_ids[0], str):
@@ -1055,7 +1055,7 @@ async def add_tags_to_binary_data_by_filter(self, tags: List[str], filter: Optio
Raises:
GRPCError: If no tags are provided.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
filter = filter if filter else Filter()
request = AddTagsToBinaryDataByFilterRequest(filter=filter, tags=tags)
@@ -1101,7 +1101,7 @@ async def remove_tags_from_binary_data_by_ids(self, tags: List[str], binary_ids:
Returns:
int: The number of tags removed.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = RemoveTagsFromBinaryDataByIDsRequest(tags=tags)
if len(binary_ids) > 0 and isinstance(binary_ids[0], str):
@@ -1136,7 +1136,7 @@ async def remove_tags_from_binary_data_by_filter(self, tags: List[str], filter:
Returns:
int: The number of tags removed.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
filter = filter if filter else Filter()
request = RemoveTagsFromBinaryDataByFilterRequest(filter=filter, tags=tags)
@@ -1161,7 +1161,7 @@ async def tags_by_filter(self, filter: Optional[Filter] = None) -> List[str]:
Returns:
List[str]: The list of tags.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
filter = filter if filter else Filter()
request = TagsByFilterRequest(filter=filter)
@@ -1211,7 +1211,7 @@ async def add_bounding_box_to_image_by_id(
Returns:
str: The bounding box ID.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = AddBoundingBoxToImageByIDRequest()
if isinstance(binary_id, str):
@@ -1280,7 +1280,7 @@ async def update_bounding_box(
Returns:
N/A
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = UpdateBoundingBoxRequest(
binary_data_id=binary_id,
@@ -1311,7 +1311,7 @@ async def remove_bounding_box_from_image_by_id(self, bbox_id: str, binary_id: Un
*DEPRECATED:* :class:`BinaryID` *is deprecated and will be removed in a future release. Instead, pass binary data IDs as a
list of strings.*
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = RemoveBoundingBoxFromImageByIDRequest()
if isinstance(binary_id, str):
@@ -1341,7 +1341,7 @@ async def bounding_box_labels_by_filter(self, filter: Optional[Filter] = None) -
Returns:
List[str]: The list of bounding box labels.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
filter = filter if filter else Filter()
request = BoundingBoxLabelsByFilterRequest(filter=filter)
@@ -1362,7 +1362,7 @@ async def get_database_connection(self, organization_id: str) -> str:
Returns:
str: The hostname of the federated database.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = GetDatabaseConnectionRequest(organization_id=organization_id)
response: GetDatabaseConnectionResponse = await self._data_client.GetDatabaseConnection(request, metadata=self._metadata)
@@ -1384,7 +1384,7 @@ async def configure_database_user(self, organization_id: str, password: str) ->
To find your organization ID, visit the organization settings page.
password (str): The password of the user.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = ConfigureDatabaseUserRequest(organization_id=organization_id, password=password)
await self._data_client.ConfigureDatabaseUser(request, metadata=self._metadata)
@@ -1410,7 +1410,7 @@ async def create_dataset(self, name: str, organization_id: str, type: Optional[D
Returns:
str: The dataset ID of the created dataset.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = CreateDatasetRequest(name=name, organization_id=organization_id, type=type)
response: CreateDatasetResponse = await self._dataset_client.CreateDataset(request, metadata=self._metadata)
@@ -1436,7 +1436,7 @@ async def merge_datasets(self, name: str, organization_id: str, dataset_ids: Lis
Returns:
str: The dataset ID of the created dataset.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = MergeDatasetsRequest(name=name, organization_id=organization_id, dataset_ids=dataset_ids)
response: MergeDatasetsResponse = await self._dataset_client.MergeDatasets(request, metadata=self._metadata)
@@ -1463,7 +1463,7 @@ async def list_dataset_by_ids(self, ids: List[str]) -> TSequence[Dataset]:
Returns:
TSequence[Dataset]: The list of datasets.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = ListDatasetsByIDsRequest(ids=ids)
response: ListDatasetsByIDsResponse = await self._dataset_client.ListDatasetsByIDs(request, metadata=self._metadata)
@@ -1491,7 +1491,7 @@ async def list_datasets_by_organization_id(
Returns:
TSequence[Dataset]: The list of datasets in the organization.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = ListDatasetsByOrganizationIDRequest(organization_id=organization_id, type=dataset_type)
response: ListDatasetsByOrganizationIDResponse = await self._dataset_client.ListDatasetsByOrganizationID(
@@ -1519,7 +1519,7 @@ async def rename_dataset(self, id: str, name: str) -> None:
- Select **Copy dataset ID**.
name (str): The new name of the dataset.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = RenameDatasetRequest(id=id, name=name)
await self._dataset_client.RenameDataset(request, metadata=self._metadata)
@@ -1541,7 +1541,7 @@ async def delete_dataset(self, id: str) -> None:
- Click the **...** menu.
- Select **Copy dataset ID**.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = DeleteDatasetRequest(id=id)
await self._dataset_client.DeleteDataset(request, metadata=self._metadata)
@@ -1560,7 +1560,7 @@ async def start_sequence_dataset_export(
Returns:
str: The job ID of the export job.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = StartSequenceDatasetExportRequest(dataset_id=dataset_id)
response: StartSequenceDatasetExportResponse = await self._dataset_client.StartSequenceDatasetExport(
@@ -1589,7 +1589,7 @@ async def get_sequence_dataset_export(
- created_at: When the job was created.
- completed_at: When the job completed (if applicable).
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = GetSequenceDatasetExportRequest(job_id=job_id)
return await self._dataset_client.GetSequenceDatasetExport(request, metadata=self._metadata, timeout=timeout)
@@ -1627,7 +1627,7 @@ async def add_binary_data_to_dataset_by_ids(self, binary_ids: Union[List[BinaryI
- Click the **...** menu.
- Select **Copy dataset ID**.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = AddBinaryDataToDatasetByIDsRequest()
if len(binary_ids) > 0 and isinstance(binary_ids[0], str):
@@ -1673,7 +1673,7 @@ async def remove_binary_data_from_dataset_by_ids(self, binary_ids: Union[List[Bi
- Click the **...** menu.
- Select **Copy dataset ID**.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = RemoveBinaryDataFromDatasetByIDsRequest()
if len(binary_ids) > 0 and isinstance(binary_ids[0], str):
@@ -1743,7 +1743,7 @@ async def binary_data_capture_upload(
Returns:
str: The binary data ID of the uploaded data.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
sensor_contents = SensorData(
metadata=(
@@ -1831,7 +1831,7 @@ async def tabular_data_capture_upload(
Returns:
str: The file ID of the uploaded data.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
sensor_contents = []
if len(data_request_times) != len(tabular_data):
@@ -1926,7 +1926,7 @@ async def streaming_data_capture_upload(
Returns:
str: The binary data ID of the uploaded data.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
upload_metadata = UploadMetadata(
@@ -2008,7 +2008,7 @@ async def file_upload(
Returns:
str: Binary data ID of the new file.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
metadata = UploadMetadata(
part_id=part_id,
@@ -2071,7 +2071,7 @@ async def file_upload_from_path(
Returns:
str: Binary data ID of the new file.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
path = Path(filepath)
file_name = file_name if file_name is not None else path.stem
@@ -2268,7 +2268,7 @@ async def create_index(
index_spec (List[Dict[str, Any]]): The MongoDB index specification defined in JSON format.
pipeline_name (Optional[str]): The name of the pipeline if the collection type is PIPELINE_SINK.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
index_spec_bytes = [bson.encode(index_spec)]
request = CreateIndexRequest(
@@ -2296,7 +2296,7 @@ async def list_indexes(
Returns:
List[Index]: A list of indexes.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = ListIndexesRequest(
organization_id=organization_id,
@@ -2322,7 +2322,7 @@ async def delete_index(
index_name (str): The name of the index to delete.
pipeline_name (Optional[str]): The name of the pipeline if the collection type is PIPELINE_SINK.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = DeleteIndexRequest(
organization_id=organization_id,
@@ -2359,7 +2359,7 @@ async def create_binary_data_signed_url(
- ``signed_url`` (*str*): The signed URL for the binary data file.
- ``expires_at`` (*datetime*): The expiration time of the signed URL token.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = CreateBinaryDataSignedURLRequest(binary_data_id=binary_data_id)
if expiration_minutes is not None:
@@ -2380,7 +2380,7 @@ async def add_sequences_to_dataset(
sequence_ids (List[str]): The IDs of the sequences to add to the dataset.
timeout (Optional[float]): An optional deadline for the call to complete in seconds.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = AddSequencesToDatasetRequest(
dataset_id=dataset_id,
@@ -2401,7 +2401,7 @@ async def remove_sequences_from_dataset(
sequence_ids (List[str]): The IDs of the sequences to remove from the dataset.
timeout (Optional[float]): An optional deadline for the call to complete in seconds.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = RemoveSequencesFromDatasetRequest(
dataset_id=dataset_id,
@@ -2432,7 +2432,7 @@ async def sequences_by_dataset_id(
- The next page token (empty string if no more pages).
- The total count of sequences.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = SequencesByDatasetIDRequest(dataset_id=dataset_id)
if page_token is not None:
@@ -2466,7 +2466,7 @@ async def get_sequence_binary_data(
- A list of binary data in the sequence.
- The next page token (empty string if no more pages).
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = GetSequenceBinaryDataRequest(sequence_id=sequence_id)
if page_token is not None:
@@ -2500,7 +2500,7 @@ async def create_sequence(
Returns:
str: The ID of the newly created sequence.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = CreateSequenceRequest(part_id=part_id, resources=resources)
request.start_time.FromDatetime(start_time)
@@ -2520,7 +2520,7 @@ async def get_sequence(self, id: str, timeout: Optional[float] = None) -> Sequen
Returns:
Sequence: The requested sequence.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = GetSequenceRequest(id=id)
response: GetSequenceResponse = await self._data_client.GetSequence(request, metadata=self._metadata, timeout=timeout)
@@ -2551,7 +2551,7 @@ async def update_sequence(
Raises:
ValueError: If no updatable field is provided.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
paths: List[str] = []
request = UpdateSequenceRequest(id=id)
@@ -2579,7 +2579,7 @@ async def delete_sequence(self, id: str, timeout: Optional[float] = None) -> Non
id (str): The ID of the sequence to delete.
timeout (Optional[float]): An optional deadline for the call to complete in seconds.
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = DeleteSequenceRequest(id=id)
await self._data_client.DeleteSequence(request, metadata=self._metadata, timeout=timeout)
@@ -2604,7 +2604,7 @@ async def list_sequences(
- A list of sequences in the organization.
- The next page token (empty string if no more pages).
- For more information, see `Data Client API `_.
+ For more information, see `Data Client API `_.
"""
request = ListSequencesRequest(organization_id=organization_id)
if page_token is not None:
diff --git a/src/viam/app/ml_training_client.py b/src/viam/app/ml_training_client.py
index cd42f954f6..fa14a24909 100644
--- a/src/viam/app/ml_training_client.py
+++ b/src/viam/app/ml_training_client.py
@@ -61,7 +61,7 @@ async def main():
if __name__ == '__main__':
asyncio.run(main())
- For more information, see `ML Training Client API `_.
+ For more information, see `ML Training Client API `_.
"""
def __init__(self, channel: Channel, metadata: Mapping[str, str]):
@@ -71,7 +71,7 @@ def __init__(self, channel: Channel, metadata: Mapping[str, str]):
channel (grpclib.client.Channel): Connection to app.
metadata (Mapping[str, str]): Required authorization token to send requests to app.
- For more information, see `ML Training Client API `_.
+ For more information, see `ML Training Client API `_.
"""
self._metadata = metadata
self._ml_training_client = MLTrainingServiceStub(channel)
@@ -112,7 +112,7 @@ async def submit_training_job(
Returns:
str: the ID of the training job.
- For more information, see `ML Training Client API `_.
+ For more information, see `ML Training Client API `_.
"""
request = SubmitTrainingJobRequest(
@@ -162,7 +162,7 @@ async def submit_custom_training_job(
Returns:
str: the ID of the training job.
- For more information, see `ML Training Client API `_.
+ For more information, see `ML Training Client API `_.
"""
request = SubmitCustomTrainingJobRequest(
@@ -191,7 +191,7 @@ async def get_training_job(self, id: str) -> TrainingJobMetadata:
Returns:
viam.proto.app.mltraining.TrainingJobMetadata: the training job data.
- For more information, see `ML Training Client API