otcextensions.sdk.modelartsv1.v1.service

The ModelArts Service Class

The Config class inherits from Resource.

class otcextensions.sdk.modelartsv1.v1.service.Service(_synchronized=False, connection=None, **attrs)

The base resource

Parameters:
  • _synchronized (bool) – This is not intended to be used directly. See new() and existing().

  • connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of self._connection in Resource code should protect itself with a check for None.

base_path: str = '/services'

The base part of the URI for this resource.

resources_key: ty.Optional[str] = 'services'

Plural form of key for resource.

allow_create = True

Allow create operation for this resource.

allow_list = True

Allow list operation for this resource.

allow_commit = True

Allow update operation for this resource.

allow_delete = True

Allow delete operation for this resource.

allow_fetch = True

Allow get operation for this resource.

access_address

Access address of an inference request. This parameter is returned when infer_type is set to real-time.

additional_properties

Additional service attribute, which facilitates service management.

bind_access_address

Request address of the user-defined domain name. This parameter is returned after the domain name is bound.

cluster_id

ID of the dedicated resource pool used by the real-time or batch service.

config

Service configuration (If a service is shared, only model_id, model_name, and model_version are returned.

debug_url

Online debugging address of a real-time service.

description

Service description, which contains a maximum of 100 characters.

due_time

Time when a real-time service automatically stops, in milliseconds calculated from 1970.1.1 0:0:0 UTC.

error_msg

Error message. When status is failed, an error message carrying the failure cause is returned.

failed_times

Number of failed service calls.

infer_type

Inference mode. The value can be real-time, batch.

invocation_times

Total number of service calls.

is_free

Whether a free-of-charge flavor is used.

is_shared

Whether a service is subscribed.

name: ty.Union[Body, URI]

Service Name.

network_id

Network ID.

operation_time

Operation time of a request.

owner

User to which a service belongs.

progress

Deployment progress.

project

Project to which a service belongs.

publish_at

Latest service release time, in milliseconds calculated from 1970.1.1 0:0:0 UTC.

resource_ids

Resource ID array for the resource IDs generated by the target model.

router_id

ID of the VPC to which a real-time service instance is deployed.

schedule

Service scheduling configuration, which can be configured only for real-time services.

security_group_id

Security group.

service_id

Service ID.

service_name

Service name.

shared_count

Number of subscribed services.

status

Service status, which can be running, deploying, concerning, failed, stopped, or finished.

tenant

Tenant to which a service belongs.

transition_at

Time when the service status changes.

update_time

Time when the configuration used by a service is updated, in milliseconds calculated from 1970.1.1 0:0:0 UTC.

workspace_id

ID of the workspace to which a service belongs.