air_sdk.endpoints.marketplace_demos
air_sdk.endpoints.marketplace_demos
Stub file for marketplace demos endpoint type hints.
Classes
Module Contents
Bases: air_sdk.endpoints.history.HistoryModelMixin, air_sdk.air_model.AirModel
Marketplace demo model representing a marketplace demo.
Unique identifier for the marketplace demo
Human-readable name of the marketplace demo
Demo simulation to be used as a base for cloned simulations.
Timestamp when the marketplace demo was created
Timestamp when the marketplace demo was last modified
The creator of the marketplace demo
The documentation of the marketplace demo
Whether the marketplace demo is published
The state of the simulation instance associated with this demo which acts as the template for all provisioned simulations from this demo.
Estimated resources required to provision the demo
The description of the demo
The repository of the marketplace demo
The name of the company or organization the marketplace demo is published under (e.g. NVIDIA, Google). A publisher must be set before the demo can be published.
The icon of the marketplace demo
Whether the marketplace demo is featured. Featured demos appear before non-featured demos in the default ordering.
The ordering value of the marketplace demo. Demos with a lower
order value appear before demos with a higher order value. May
be null.
Number of times a clone has been provisioned from this marketplace demo (counted when the provision request creates the clone; not decremented if that clone later fails to boot).
Update the marketplace demo’s properties.
Parameters:
name– New name for the marketplace demodescription– Description of the marketplace demodocumentation– Documentation of the marketplace demorepo– Repository of the marketplace demopublisher– The company or organization the demo is published under (e.g. NVIDIA, Google). Required before the demo can be published.tags– Tags of the marketplace demoicon– Icon of the marketplace demo
Returns:
The updated MarketplaceDemo instance
Example:
Publish the marketplace demo.
A publisher must be set on the demo before it can be published.
Parameters:
prefer_public– Whether to publish as public (true, default) or restricted (false). Whenfalse, supply the authoritativeallowed_orgs.allowed_orgs– Authoritative allow-list: orgs that may use the demo whenprefer_publicisfalse. The demo owning org is always included;[]is valid. Privileged endpoint only — not the gatedrequest-publishstring hint.justification– Optional text explaining who/why to share with.publish_images– Whentrue, automatically publish org-owned images referenced by the demo so they reach the same audience as the demo. Whenfalse(default), the request is rejected with 400 if any referenced image needs to be published to reach the demo audience.
Example:
Immediately unpublish the marketplace demo (privileged).
This privileged action takes no request body. To submit a gated unpublish
request for review instead, use request_unpublish.
Example:
Provision a simulation from this marketplace demo.
Returns:
The newly created simulation instance.
Example:
Submit a request to publish this marketplace demo.
A publisher must be set on the demo — either previously or via this
request — before the demo can be queued for publishing.
Parameters:
justification– Required explanation for the review request and notifications.prefer_public– When true, the requester prefers a public publish. When false, the requester prefers a restricted-access publish; describe the desired allow list inallowed_orgs_request_text.allowed_orgs_request_text– Optional free-text description of orgs that should have access if the outcome is restricted. Not the authoritative allow list.publish_images– Whentrue, automatically publish org-owned images referenced by the demo so they reach the same audience as the demo. Whenfalse(default), the request is rejected with 400 if any referenced image needs to be published to reach the demo audience.publisher– Optional publisher name to set on the demo when submitting the request (e.g. NVIDIA, Google). Omitting the field leaves the existingpublisherunchanged.tags– Optional tag names to assign to the demo when submitting the request (same rules as demo update). Omitting the field leaves the demo’s existing tags unchanged; an empty list clears them.
Returns:
the marketplace demo instance with updated publish_access_record_id
Example:
Submit a request to unpublish this marketplace demo.
Parameters:
justification– Required explanation for the review request and notifications.
Returns:
the marketplace demo instance
Example:
Submit a request to change marketplace demo visibility to public or restricted.
Parameters:
prefer_public– When true, request catalog-wide visibility. When false, request restricted visibility.justification– Required explanation for the review request and notifications.publish_images– Whentrue, automatically publish org-owned images referenced by the demo so they reach the same audience as the demo. Whenfalse(default), the request is rejected with 400 if any referenced image needs to be published to reach the demo audience.
Returns:
the marketplace demo instance
Example:
Submit a request to change the allowlist for this marketplace demo.
Parameters:
justification– Required explanation for the review request and notifications.allowed_orgs_request_text– Required description of the allow-list change (e.g. org names or IDs).publish_images– Whentrue, automatically publish org-owned images referenced by the demo so they reach the same audience as the demo. Whenfalse(default), the request is rejected with 400 if any referenced image needs to be published to reach the demo audience.
Returns:
the marketplace demo instance
Example:
Cancel the active publish access record for this marketplace demo.
Returns:
the marketplace demo instance
Example:
Adjust how this marketplace demo is featured and ordered.
Privileged action (SRE/ADMIN). See
manage.
Parameters:
featured– Whether the demo is featured. Featured demos appear before non-featured demos in the default ordering.order– The ordering value of the demo. Demos with a lowerordervalue appear before demos with a higherordervalue. PassNoneto clear the demo’s order.
Returns:
the updated marketplace demo instance
Example:
Bases: air_sdk.air_model.BaseEndpointAPI[air_sdk.endpoints.marketplace_demos.MarketplaceDemo]
API client for marketplace demo endpoints.
Create a new marketplace demo.
Parameters:
name– Name for the new marketplace demosimulation– Simulation to be used to provision the marketplace demodescription– Description of the marketplace demodocumentation– Documentation of the marketplace demorepo– Repository of the marketplace demopublisher– The company or organization the demo is published under (e.g. NVIDIA, Google). Required before the demo can be published.tags– Tags of the marketplace demoicon– Icon of the marketplace democheckpoint– A COMPLETE checkpoint to clone from. Provided checkpoint must belong to the simulation. If not specified, latest COMPLETE checkpoint will be used.
Returns:
The created MarketplaceDemo instance
Example:
Delete a marketplace demo.
Parameters:
pk– The marketplace demo ID (string or UUID)
Example:
List all marketplace demos.
Optional parameters: demo_simulation_state: Filter by the state of the template simulation creator: Filter by creator email tags: Filter by tags (matched case-insensitively) published: Filter by published status (true or false) publicly_published: Filter by publicly published status (true or false) featured: Filter by whether the demo is featured (true or false). Featured demos are listed before non-featured demos in the default ordering. publisher: Filter by the company or organization the demo is published under (e.g. NVIDIA). Matched case-insensitively. search: Search term to filter demos ordering: Order the response by the specified field limit: Number of results to return per page offset: The initial index from which to return the results
Returns:
Iterator of MarketplaceDemo instances
Example:
Get a specific marketplace demo by ID.
Parameters:
pk– The marketplace demo ID (string or UUID)
Returns:
The MarketplaceDemo instance
Example:
Publish a marketplace demo.
A publisher must be set on the demo before it can be published.
Parameters:
marketplace_demo– The marketplace demo to publish (object or ID)prefer_public– Whether to publish as public (true, default) or restricted (false). Whenfalse, supply the authoritativeallowed_orgs.allowed_orgs– Authoritative allow-list: orgs that may use the demo whenprefer_publicisfalse. The demo owning org is always included;[]is valid. Privileged endpoint only — not the gatedrequest-publishstring hint.justification– Optional text explaining who/why to share with.publish_images– Whentrue, automatically publish org-owned images referenced by the demo so they reach the same audience as the demo. Whenfalse(default), the request is rejected with 400 if any referenced image needs to be published to reach the demo audience.
Returns:
None
Example:
Unpublish a marketplace demo.
Parameters:
marketplace_demo– The marketplace demo to unpublish (object or ID)
Returns:
None
Example:
Provision a simulation from a marketplace demo.
Creates a new simulation by cloning the demo simulation.
Parameters:
marketplace_demo– The marketplace demo to provision (object or ID)
Returns:
The newly created simulation instance.
Example:
Submit a request to publish a marketplace demo.
A publisher must be set on the demo — either previously or via this
request — before the demo can be queued for publishing.
Args:
Required parameters: marketplace_demo: Marketplace demo to request publication for (MarketplaceDemo instance or marketplace demo ID) justification: Required explanation for the review request and notifications.
Optional parameters:
prefer_public: When true, the requester prefers a public publish. When
false, the requester prefers a restricted-access publish; describe the
desired allow list in allowed_orgs_request_text.
allowed_orgs_request_text: Optional free-text description of orgs that
should have access if the outcome is restricted. Not the authoritative
allow list.
publish_images: When true, automatically publish org-owned images
referenced by the demo so they reach the same audience as the demo.
When false (default), the request is rejected with 400 if any
referenced image needs to be published to reach the demo audience.
publisher: Optional publisher name to set on the demo when submitting
the request (e.g. NVIDIA, Google). Omitting the field leaves the
existing publisher unchanged.
tags: Optional tag names to assign to the demo when submitting the
request (same rules as demo update). Omitting the field leaves the
demo’s existing tags unchanged; an empty list clears them.
Returns:
MarketplaceDemo: the marketplace demo instance with updated publish_access_record_id
Example:
Submit a request to unpublish a marketplace demo.
Args:
Required parameters: marketplace_demo: Marketplace demo to request unpublication for (MarketplaceDemo instance or marketplace demo ID) justification: Required explanation for the review request and notifications.
Returns:
MarketplaceDemo: the marketplace demo instance
Example:
Submit a request to change marketplace demo visibility to public or restricted.
Args:
Required parameters: marketplace_demo: Marketplace demo to update (MarketplaceDemo instance or marketplace demo ID) prefer_public: When true, request catalog-wide visibility. When false, request restricted visibility. justification: Required explanation for the review request and notifications.
Optional parameters:
publish_images: When true, automatically publish org-owned images
referenced by the demo so they reach the same audience as the demo.
When false (default), the request is rejected with 400 if any
referenced image needs to be published to reach the demo audience.
Returns:
MarketplaceDemo: the marketplace demo instance
Example:
Submit a request to change the allowlist for a marketplace demo.
Args:
Required parameters: marketplace_demo: Marketplace demo to update (MarketplaceDemo instance or marketplace demo ID) justification: Required explanation for the review request and notifications. allowed_orgs_request_text: Required description of the allow-list change (e.g. org names or IDs).
Optional parameters:
publish_images: When true, automatically publish org-owned images
referenced by the demo so they reach the same audience as the demo.
When false (default), the request is rejected with 400 if any
referenced image needs to be published to reach the demo audience.
Returns:
MarketplaceDemo: the marketplace demo instance
Example:
Cancel the active publish access record for a marketplace demo.
Args:
Required parameters: marketplace_demo: Marketplace demo to cancel the record for (MarketplaceDemo instance or marketplace demo ID)
Returns:
MarketplaceDemo: the marketplace demo instance
Example:
Adjust how a marketplace demo is featured and ordered.
Privileged action (SRE/ADMIN). Featured demos appear before non-featured
demos in the default ordering, and demos with a lower order value
appear before demos with a higher order value.
Args:
Required parameters: marketplace_demo: Marketplace demo to manage (MarketplaceDemo instance or marketplace demo ID)
Optional parameters:
featured: Whether the demo is featured.
order: The ordering value of the demo. Pass None to clear the
demo’s order.
Returns:
MarketplaceDemo: the updated marketplace demo instance
Example:
Re-number marketplace demo order values to be consecutive from 1.
Privileged action (SRE/ADMIN). Re-numbers the populated order values
of marketplace demos so that they are consecutive starting at 1,
preserving their relative ordering. For example, demos with
order=[1, 5, 20] become [1, 2, 3]. Demos with order=None are
left untouched.
Returns:
None
Example: