organization_portals_api module#

class edgeimpulse_api.api.organization_portals_api.OrganizationPortalsApi(api_client=None)[source]#

Bases: object

create_organization_portal(
organization_id: StrictInt[StrictInt],
create_organization_portal_request: CreateOrganizationPortalRequest,
**kwargs,
) CreateOrganizationPortalResponse[source]#

Create upload portal

Creates a new upload portal for the organization.

Parameters:
  • organization_id (int) – Organization ID (required)

  • create_organization_portal_request (CreateOrganizationPortalRequest) – (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

  • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

CreateOrganizationPortalResponse

delete_organization_portal(
organization_id: StrictInt[StrictInt],
portal_id: StrictInt[StrictInt],
**kwargs,
) GenericApiResponse[source]#

Delete upload portal

Deletes an upload portal for the organization.

Parameters:
  • organization_id (int) – Organization ID (required)

  • portal_id (int) – Portal ID (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

  • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

GenericApiResponse

get_organization_portal(
organization_id: StrictInt[StrictInt],
portal_id: StrictInt[StrictInt],
**kwargs,
) GetOrganizationPortalResponse[source]#

Retrieve upload portal information

Retrieve a single upload portals identified by ID.

Parameters:
  • organization_id (int) – Organization ID (required)

  • portal_id (int) – Portal ID (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

  • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

GetOrganizationPortalResponse

list_organization_portals(
organization_id: StrictInt[StrictInt],
**kwargs,
) ListOrganizationPortalsResponse[source]#

List upload portals

Retrieve all configured upload portals.

Parameters:
  • organization_id (int) – Organization ID (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

  • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

ListOrganizationPortalsResponse

rotate_organization_portal_token(
organization_id: StrictInt[StrictInt],
portal_id: StrictInt[StrictInt],
**kwargs,
) GenericApiResponse[source]#

Rotate upload portal token

Rotates the token for an upload portal.

Parameters:
  • organization_id (int) – Organization ID (required)

  • portal_id (int) – Portal ID (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

  • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

GenericApiResponse

update_organization_portal(
organization_id: StrictInt[StrictInt],
portal_id: StrictInt[StrictInt],
create_organization_portal_request: CreateOrganizationPortalRequest,
**kwargs,
) UpdateOrganizationPortalResponse[source]#

Update upload portal

Updates an upload portal for the organization.

Parameters:
  • organization_id (int) – Organization ID (required)

  • portal_id (int) – Portal ID (required)

  • create_organization_portal_request (CreateOrganizationPortalRequest) – (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

  • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

UpdateOrganizationPortalResponse

verify_organization_portal(
organization_id: StrictInt[StrictInt],
portal_id: StrictInt[StrictInt],
**kwargs,
) VerifyOrganizationBucketResponse[source]#

Verify upload portal information

Retrieve a subset of files from the portal, to be used in the data source wizard.

Parameters:
  • organization_id (int) – Organization ID (required)

  • portal_id (int) – Portal ID (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

  • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

VerifyOrganizationBucketResponse