ai_core_sdk.models package
Submodules
ai_core_sdk.models.application module
- class Application
Bases:
objectThe Application object defines the application.
- Parameters:
path (str) -- path within the repository
revision (str) -- revision
repository_url (str) -- URL of the repository
application_name (str) -- name of the application
- static from_dict(application_dict)
Returns a
ai_core_sdk.models.application.Applicationobject, created from the values in the dict provided as parameter- Parameters:
application_dict (Dict[str, Any]) -- Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.application.Application
- __init__(path, revision, repository_url, application_name, **kwargs)
- Parameters:
path (str)
revision (str)
repository_url (str)
application_name (str)
ai_core_sdk.models.application_query_response module
- class ApplicationQueryResponse
Bases:
QueryResponseThe ApplicationQueryResponse object defines the response of the applications query request :param resources: List of the applications returned from the server :type resources: List[class:ai_core_sdk.models.application.Application] :param count: Total number of the queried applications :type count: int :param **kwargs: The keyword arguments are there in case there are additional attributes returned from server
- static from_dict(response_dict)
Returns a
ai_core_sdk.models.application_query_response.ApplicationQueryResponseobject, created from the values in the dict provided as parameter- Parameters:
response_dict (Dict[str, Any]) -- Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.application_query_response.ApplicationQueryResponse
- __init__(resources, count, **kwargs)
- Parameters:
resources (List[Application])
count (int)
ai_core_sdk.models.application_resource_sync_status module
- class ApplicationResourceSyncStatus
Bases:
objectThe ApplicationSyncResourcesStatus object defines the status of sync of application resource.
- Parameters:
name (str, optional) -- Name of the application resource, defaults to None
kind (str, optional) -- kind of the application resource
status (str, optional) -- status of the sync of the application resource
message (str, optional) -- application resource message
- static from_dict(app_res_sync_status_dict)
Returns a
ai_core_sdk.models.application_resource_sync_status.ApplicationResourceSyncStatusobject, created from the values in the dict provided as parameter- Parameters:
app_res_sync_status_dict (Dict[str, str]) -- Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.application_resource_sync_status.ApplicationResourceSyncStatus
- __init__(name=None, kind=None, status=None, message=None, **kwargs)
- Parameters:
name (str)
kind (str)
status (str)
message (str)
ai_core_sdk.models.application_source module
- class ApplicationSource
Bases:
objectThe ApplicationSource object defines the application source.
- Parameters:
repo_url (str, optional) -- URL of the repository, defaults to None
path (str, optional) -- path within the repository, defaults to None
revision (str, optional) -- revision number of the application, defaults to None
- static from_dict(application_source_dict)
Returns a
ai_core_sdk.models.application_source.ApplicationSourceobject, created from the values in the dict provided as parameter- Parameters:
application_source_dict (Dict[str, Any]) -- Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.application_source.ApplicationSource
- __init__(repo_url=None, path=None, revision=None, **kwargs)
- Parameters:
repo_url (str)
path (str)
revision (str)
ai_core_sdk.models.application_status module
- class ApplicationStatus
Bases:
objectThe Application object defines the application.
- Parameters:
health_status (str, optional) -- Application health status, defaults to None
sync_status (str, optional) -- Application sync status, defaults to None
message (str, optional) -- Application health status message, defaults to None
source (class:ai_core_sdk.models.application_status.ApplicationStatus, optional) -- Application source, defaults to None
sync_finished_at (str, optional) -- Application sync finish time, defaults to None
sync_started_at (str, optional) -- Application sync start time, defaults to None
reconciled_at (str, optional) -- Application reconciliation time, defaults to None
sync_resources_status (List[class:ai_core_sdk.models.application_resource_sync_status.ApplicationResourceSyncStatus], optional) -- Status of the synchronization of the application resources, defaults to None
- static from_dict(application_status_dict)
Returns a
ai_core_sdk.models.application_status.ApplicationStatusobject, created from the values in the dict provided as parameter- Parameters:
application_status_dict (Dict[str, Any]) -- Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.application_status.ApplicationStatus
- __init__(health_status=None, sync_status=None, message=None, source=None, sync_finished_at=None, sync_started_at=None, reconciled_at=None, sync_resources_status=None, **kwargs)
- Parameters:
health_status (str)
sync_status (str)
message (str)
source (ApplicationSource)
sync_finished_at (str)
sync_started_at (str)
reconciled_at (str)
sync_resources_status (List[ApplicationResourceSyncStatus])
ai_core_sdk.models.base_models module
- class BasicNameResponse
Bases:
objectThe BasicNameResponse object defines the response with name from the server
- Parameters:
name -- Name of the relevant resource
message (str) -- Response message from the server
**kwargs -- The keyword arguments are there in case there are additional attributes returned from server
- static from_dict(bnr_dict)
Returns a
ai_core_sdk.models.base_models.BasicNameResponseobject, created from the values in the dict provided as parameter- Parameters:
bnr_dict (Dict[str, str]) -- Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.base_models.BasicNameResponse
- __init__(name, message, **kwargs)
- Parameters:
name (str)
message (str)
- class Message
Bases:
objectMessage object defines a message
- Parameters:
message (str) -- message
- static from_dict(message_dict)
Returns a
ai_core_sdk.models.base_models.Messageobject, created from the values in the dict provided as parameter- Parameters:
message_dict (Dict[str, str]) -- Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.base_models.Message
- __init__(message, **kwargs)
- Parameters:
message (str)
ai_core_sdk.models.docker_registry_secret module
- class DockerRegistrySecret
Bases:
NameThe DockerRegistrySecret object defines the docker registry secret. Refer to
ai_api_client_sdk.models.base_models.Name, for the object definition- static from_dict(docker_registry_secret_dict)
Returns a
ai_core_sdk.models.docker_registry_secret.DockerRegistrySecretobject, created from the values in the dict provided as parameter- Parameters:
docker_registry_secret_dict (Dict[str, str]) -- Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.docker_registry_secret.DockerRegistrySecret
ai_core_sdk.models.docker_registry_secret_query_response module
- class DockerRegistrySecretQueryResponse
Bases:
QueryResponseThe DockerRegistrySecretQueryResponse object defines the response of the dockerRegistrySecrets query request :param resources: List of the docker registry secrets returned from the server :type resources: List[class:ai_core_sdk.models.docker_registry_secret.DockerRegistrySecret] :param count: Total number of the queried docker registry secrets :type count: int :param **kwargs: The keyword arguments are there in case there are additional attributes returned from server
- static from_dict(response_dict)
Returns a
ai_core_sdk.models.docker_registry_secret_query_response.DockerRegistrySecretQueryResponseobject, created from the values in the dict provided as parameter- Parameters:
response_dict (Dict[str, Any]) -- Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.docker_registry_secret_query_response.DockerRegistrySecretQueryResponse
- __init__(resources, count, **kwargs)
- Parameters:
resources (List[DockerRegistrySecret])
count (int)
ai_core_sdk.models.kpi module
- class Kpi
Bases:
objectThe Kpi object defines the Kpi data.
- static from_dict(kpi_dict)
Returns a
ai_core_sdk.models.kpi.Kpiobject, created from the values in the dict provided as parameter- Parameters:
kpi_dict (Dict[str, Any]) -- Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.kpi.Kpi
- __init__(header, rows, **kwargs)
- Parameters:
header (List[str])
rows (List[str | int])
ai_core_sdk.models.object_store_secret module
- class ObjectStoreSecret
Bases:
objectThe ObjectStoreSecret object defines the object store secret response.
- static from_dict(object_store_secret_dict)
Returns a
ai_core_sdk.models.object_store_secret.ObjectStoreSecretobject, created from the values in the dict provided as parameter- Parameters:
object_store_secret_dict (Dict[str, Any]) -- Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.object_store_secret.ObjectStoreSecret
- __init__(name, metadata, **kwargs)
- Parameters:
name (str)
metadata (Dict[str, str])
ai_core_sdk.models.object_store_secret_query_response module
- class ObjectStoreSecretQueryResponse
Bases:
QueryResponseThe ObjectStoreSecretQueryResponse object defines the response of the object store secret query request :param resources: List of the object store secrets returned from the server :type resources: List[class:ai_core_sdk.models.object_store_secret.ObjectStoreSecret] :param count: Total number of the queried object store secrets :type count: int :param **kwargs: The keyword arguments are there in case there are additional attributes returned from server
- static from_dict(response_dict)
Returns a
ai_core_sdk.models.object_store_secret_query_response.ObjectStoreSecretQueryResponseobject, created from the values in the dict provided as parameter- Parameters:
response_dict (Dict[str, Any]) -- Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.object_store_secret_query_response.ObjectStoreSecretQueryResponse
- __init__(resources, count, **kwargs)
- Parameters:
resources (List[ObjectStoreSecret])
count (int)
ai_core_sdk.models.repository module
- class Repository
Bases:
objectThe Repository object defines the repository
- Parameters:
name (str) -- name of the repository
url (str) -- URL of the repository
status (class:ai_core_sdk.models.repository_status.RepositoryStatus, optional) -- status of the repository, defaults to None
- static from_dict(repository_dict)
Returns a
ai_core_sdk.models.repository.Repositoryobject, created from the values in the dict provided as parameter- Parameters:
repository_dict (Dict[str, Any]) -- Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.repository.Repository
- __init__(name, url, status=None, **kwargs)
- Parameters:
name (str)
url (str)
status (RepositoryStatus)
ai_core_sdk.models.repository_query_response module
- class RepositoryQueryResponse
Bases:
QueryResponseThe RepositoryQueryResponse object defines the response of the repository query request :param resources: List of the repositories returned from the server :type resources: List[class:ai_core_sdk.models.repository.Repository] :param count: Total number of the queried repositories :type count: int :param **kwargs: The keyword arguments are there in case there are additional attributes returned from server
- static from_dict(response_dict)
Returns a
ai_core_client_sdk.models.repository_query_response.RepositoryQueryResponseobject, created from the values in the dict provided as parameter- Parameters:
response_dict (Dict[str, Any]) -- Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.repository_query_response.RepositoryQueryResponse
- __init__(resources, count, **kwargs)
- Parameters:
resources (List[Repository])
count (int)
ai_core_sdk.models.repository_status module
- class RepositoryStatus
Bases:
EnumRepositoryStatus is an Enum defining the valid values of the status of a repository
- COMPLETED = 'COMPLETED'
- ERROR = 'ERROR'
- IN_PROGRESS = 'IN-PROGRESS'
ai_core_sdk.models.resource_group module
- class ResourceGroup
Bases:
objectResourceGroup represents the resource group.
- Parameters:
resource_group_id (str) -- The resource_group_id of this ResourceGroup.
tenant_id (str) -- The tenant_id of this ResourceGroup.
zone_id (str) -- The zone_id of this ResourceGroup.
labels (ResourceGroupLabels) -- The labels of this ResourceGroup.
status (str) -- The status of this ResourceGroup.
status_message (str) -- The status_message of this ResourceGroup.
- static from_dict(resource_group_dict)
Returns a
ai_core_sdk.models.resource_group.ResourceGroupobject, created from the values in the dict provided as parameter- Parameters:
resource_group_dict (Dict[str, Any]) -- Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.resource_group.ResourceGroup
- __init__(resource_group_id=None, tenant_id=None, zone_id=None, labels=None, status=None, status_message=None, **kwargs)
- Parameters:
resource_group_id (str)
tenant_id (str)
zone_id (str)
labels (List[Label])
status (ResourceGroupStatus)
status_message (str)
ai_core_sdk.models.resource_group_query_response module
- class ResourceGroupQueryResponse
Bases:
QueryResponseThe ResourceGroupQueryResponse object defines the response of the resourceGroups query request :param resources: List of the resource groups returned from the server :type resources: List[class:ai_core_sdk.models.resource_group.ResourceGroup] :param count: Total number of the queried docker registry secrets :type count: int :param **kwargs: The keyword arguments are there in case there are additional attributes returned from server
- static from_dict(response_dict)
Returns a
ai_core_sdk.models.docker_registry_secret_query_response.DockerRegistrySecretQueryResponseobject, created from the values in the dict provided as parameter- Parameters:
response_dict (Dict[str, Any]) -- Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.docker_registry_secret_query_response.DockerRegistrySecretQueryResponse
- __init__(resources, count, **kwargs)
- Parameters:
resources (List[ResourceGroup])
count (int)
ai_core_sdk.models.resource_group_status module
- class ResourceGroupStatus
Bases:
EnumResourceGroupStatus is an Enum defining the valid values of the status of a resource group
- ERROR = 'ERROR'
- PROVISIONED = 'PROVISIONED'
- PROVISIONING = 'PROVISIONING'
ai_core_sdk.models.secret module
- class Secret
Bases:
objectThe Secret object defines the secret response.
- Parameters:
name (str) -- Secret name
data (dict, optional) -- Secret data dictionary, defaults to None
- static from_dict(secret_dict)
Returns a
ai_core_sdk.models.secret.Secretobject, created from the values in the dict provided as parameter- Parameters:
secret_dict (Dict[str, Any]) -- Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.secret.Secret
- __init__(name, data=None, **kwargs)
- Parameters:
name (str)
data (Dict[str, str])
ai_core_sdk.models.secret_query_response module
- class SecretQueryResponse
Bases:
QueryResponseThe SecretQueryResponse object defines the response of the secret query request :param resources: List of the secrets returned from the server :type resources: List[class:ai_core_sdk.models.secret.Secret] :param count: Total number of the queried secrets :type count: int :param **kwargs: The keyword arguments are there in case there are additional attributes returned from server
- static from_dict(response_dict)
Returns a
ai_core_sdk.models.secret_query_response.SecretQueryResponseobject, created from the values in the dict provided as parameter- Parameters:
response_dict (Dict[str, Any]) -- Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.secret_query_response.SecretQueryResponse
- __init__(resources, count, **kwargs)
- Parameters:
resources (List[Secret])
count (int)