Yandex Cloud
Поиск
Связаться с намиПодключиться
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Популярные
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • Машинное обучение
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Облако для интеграторов
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Контент-программа
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Истории успеха
    • Тарифы Yandex Cloud
    • Промоакции и free tier
    • Правила тарификации
  • Документация
  • Блог
Проект Яндекса
© 2025 ООО «Яндекс.Облако»
Yandex DataSphere
  • Начало работы
  • Справочник Terraform
    • Обзор
    • Аутентификация в API
      • Overview
        • Overview
          • Overview
          • Create
          • Clone
          • Execute
          • Cancel
          • ReadStdLogs
          • ReadLogs
          • DownloadJobFiles
          • List
          • Get
          • Delete
          • DeleteData
          • DeleteAllData
          • SetDataTtl
  • Аудитные логи Audit Trails
  • Управление доступом
  • Правила тарификации
  • Публичные материалы
  • История изменений

В этой статье:

  • gRPC request
  • CloneProjectJobRequest
  • JobParameters
  • File
  • FileDesc
  • Environment
  • DockerImageSpec
  • PythonEnv
  • PipOptions
  • CloudInstanceType
  • ExtendedWorkingStorage
  • Argument
  • OutputDatasetDesc
  • GracefulShutdownParameters
  • SparkParameters
  • operation.Operation
  • CloneProjectJobMetadata
  • CloneProjectJobResponse
  • StorageFile
  • File
  • FileDesc
  1. Справочник API
  2. gRPC (англ.)
  3. DataSphere Jobs API v2
  4. ProjectJob
  5. Clone

DataSphere Jobs API v2, gRPC: ProjectJobService.Clone

Статья создана
Yandex Cloud
Обновлена 17 декабря 2024 г.
  • gRPC request
  • CloneProjectJobRequest
  • JobParameters
  • File
  • FileDesc
  • Environment
  • DockerImageSpec
  • PythonEnv
  • PipOptions
  • CloudInstanceType
  • ExtendedWorkingStorage
  • Argument
  • OutputDatasetDesc
  • GracefulShutdownParameters
  • SparkParameters
  • operation.Operation
  • CloneProjectJobMetadata
  • CloneProjectJobResponse
  • StorageFile
  • File
  • FileDesc

Clone job.

gRPC requestgRPC request

rpc Clone (CloneProjectJobRequest) returns (operation.Operation)

CloneProjectJobRequestCloneProjectJobRequest

{
  "source_job_id": "string",
  "job_parameters_overrides": {
    "input_files": [
      {
        "desc": {
          "path": "string",
          "var": "string"
        },
        "sha256": "string",
        "size_bytes": "int64",
        "compression_type": "FileCompressionType"
      }
    ],
    "output_files": [
      {
        "path": "string",
        "var": "string"
      }
    ],
    "s3_mount_ids": [
      "string"
    ],
    "dataset_ids": [
      "string"
    ],
    "cmd": "string",
    "env": {
      "vars": "map<string, string>",
      // Includes only one of the fields `docker_image_resource_id`, `docker_image_spec`
      "docker_image_resource_id": "string",
      "docker_image_spec": {
        "image_url": "string",
        "username": "string",
        // Includes only one of the fields `password_plain_text`, `password_ds_secret_name`
        "password_plain_text": "string",
        "password_ds_secret_name": "string"
        // end of the list of possible fields
      },
      // end of the list of possible fields
      "python_env": {
        "conda_yaml": "string",
        "local_modules": [
          {
            "desc": {
              "path": "string",
              "var": "string"
            },
            "sha256": "string",
            "size_bytes": "int64",
            "compression_type": "FileCompressionType"
          }
        ],
        "python_version": "string",
        "requirements": [
          "string"
        ],
        "pip_options": {
          "index_url": "string",
          "extra_index_urls": [
            "string"
          ],
          "trusted_hosts": [
            "string"
          ],
          "no_deps": "bool"
        }
      }
    },
    "attach_project_disk": "bool",
    "cloud_instance_types": [
      {
        "name": "string"
      }
    ],
    "extended_working_storage": {
      "type": "StorageType",
      "size_gb": "int64"
    },
    "arguments": [
      {
        "name": "string",
        "value": "string"
      }
    ],
    "output_datasets": [
      {
        "name": "string",
        "description": "string",
        "labels": "map<string, string>",
        "size_gb": "int64",
        "var": "string"
      }
    ],
    "graceful_shutdown_parameters": {
      "timeout": "google.protobuf.Duration",
      "signal": "int64"
    },
    "spark_parameters": {
      "connector_id": "string"
    }
  },
  "name": "string",
  "desc": "string",
  "data_ttl": "google.protobuf.Duration"
}

Field

Description

source_job_id

string

ID of job to be cloned.

job_parameters_overrides

JobParameters

Parameters overrides.

name

string

New job name.

desc

string

New job description

data_ttl

google.protobuf.Duration

Data ttl.

JobParametersJobParameters

Job parameters.

Field

Description

input_files[]

File

List of input files.

output_files[]

FileDesc

List of output files descriptions.

s3_mount_ids[]

string

List of DataSphere S3 mount ids.

dataset_ids[]

string

List of DataSphere dataset ids.

cmd

string

Job run command.

env

Environment

Job environment description.

attach_project_disk

bool

Should project disk be attached to VM.

cloud_instance_types[]

CloudInstanceType

VM specification.

extended_working_storage

ExtendedWorkingStorage

Extended working storage configuration.

arguments[]

Argument

List of literal arguments.

output_datasets[]

OutputDatasetDesc

List of DataSets descriptions to create.

graceful_shutdown_parameters

GracefulShutdownParameters

Graceful shutdown settings.

spark_parameters

SparkParameters

Spark connector settings.

FileFile

Field

Description

desc

FileDesc

sha256

string

SHA256 of the file.

size_bytes

int64

File size in bytes.

compression_type

enum FileCompressionType

File compression info

  • FILE_COMPRESSION_TYPE_UNSPECIFIED
  • NONE
  • ZIP

FileDescFileDesc

Field

Description

path

string

Path of the file on filesystem.

var

string

Variable to use in cmd substitution.

EnvironmentEnvironment

Field

Description

vars

object (map<string, string>)

Environment variables.

docker_image_resource_id

string

DS docker image id.

Includes only one of the fields docker_image_resource_id, docker_image_spec.

docker_image_spec

DockerImageSpec

Includes only one of the fields docker_image_resource_id, docker_image_spec.

python_env

PythonEnv

DockerImageSpecDockerImageSpec

Field

Description

image_url

string

Docker image URL.

username

string

Username for container registry.

password_plain_text

string

Plaintext password.

Includes only one of the fields password_plain_text, password_ds_secret_name.

Password for container registry.

password_ds_secret_name

string

ID of DataSphere secret containing password.

Includes only one of the fields password_plain_text, password_ds_secret_name.

Password for container registry.

PythonEnvPythonEnv

Field

Description

conda_yaml

string

Conda YAML.

local_modules[]

File

List of local modules descriptions.

python_version

string

Python version reduced to major.minor

requirements[]

string

List of pip requirements

pip_options

PipOptions

Pip install options

PipOptionsPipOptions

Field

Description

index_url

string

--index-url option

extra_index_urls[]

string

--extra-index-urls option

trusted_hosts[]

string

--trusted-hosts option

no_deps

bool

--no-deps option

CloudInstanceTypeCloudInstanceType

Field

Description

name

string

Name of DataSphere VM configuration.

ExtendedWorkingStorageExtendedWorkingStorage

Extended working storage configuration.

Field

Description

type

enum StorageType

  • STORAGE_TYPE_UNSPECIFIED
  • SSD

size_gb

int64

ArgumentArgument

Field

Description

name

string

value

string

OutputDatasetDescOutputDatasetDesc

Field

Description

name

string

Name to create dataset with

description

string

Description to show in UI

labels

object (map<string, string>)

size_gb

int64

Size of dataset to create

var

string

Var name to replace in cmd, like in FileDesc

GracefulShutdownParametersGracefulShutdownParameters

Field

Description

timeout

google.protobuf.Duration

signal

int64

default 15 (SIGTERM)

SparkParametersSparkParameters

Field

Description

connector_id

string

ID of the Spark connector.

operation.Operationoperation.Operation

{
  "id": "string",
  "description": "string",
  "created_at": "google.protobuf.Timestamp",
  "created_by": "string",
  "modified_at": "google.protobuf.Timestamp",
  "done": "bool",
  "metadata": {
    "project_id": "string",
    "job_id": "string"
  },
  // Includes only one of the fields `error`, `response`
  "error": "google.rpc.Status",
  "response": {
    "job_id": "string",
    "upload_files": [
      {
        "file": {
          "desc": {
            "path": "string",
            "var": "string"
          },
          "sha256": "string",
          "size_bytes": "int64",
          "compression_type": "FileCompressionType"
        },
        "url": "string"
      }
    ]
  }
  // end of the list of possible fields
}

An Operation resource. For more information, see Operation.

Field

Description

id

string

ID of the operation.

description

string

Description of the operation. 0-256 characters long.

created_at

google.protobuf.Timestamp

Creation timestamp.

created_by

string

ID of the user or service account who initiated the operation.

modified_at

google.protobuf.Timestamp

The time when the Operation resource was last modified.

done

bool

If the value is false, it means the operation is still in progress.
If true, the operation is completed, and either error or response is available.

metadata

CloneProjectJobMetadata

Service-specific metadata associated with the operation.
It typically contains the ID of the target resource that the operation is performed on.
Any method that returns a long-running operation should document the metadata type, if any.

error

google.rpc.Status

The error result of the operation in case of failure or cancellation.

Includes only one of the fields error, response.

The operation result.
If done == false and there was no failure detected, neither error nor response is set.
If done == false and there was a failure detected, error is set.
If done == true, exactly one of error or response is set.

response

CloneProjectJobResponse

The normal response of the operation in case of success.
If the original method returns no data on success, such as Delete,
the response is google.protobuf.Empty.
If the original method is the standard Create/Update,
the response should be the target resource of the operation.
Any method that returns a long-running operation should document the response type, if any.

Includes only one of the fields error, response.

The operation result.
If done == false and there was no failure detected, neither error nor response is set.
If done == false and there was a failure detected, error is set.
If done == true, exactly one of error or response is set.

CloneProjectJobMetadataCloneProjectJobMetadata

Field

Description

project_id

string

job_id

string

CloneProjectJobResponseCloneProjectJobResponse

Field

Description

job_id

string

Job ID.

upload_files[]

StorageFile

Files with presigned URLs generated by server to upload them to storage. Order is arbitrary.

Upload files include input files, executable file (python main script or binary executable) and local modules
in case of python.

If file was already uploaded, there will be no element for it.

StorageFileStorageFile

Field

Description

file

File

url

string

File URL.

FileFile

Field

Description

desc

FileDesc

sha256

string

SHA256 of the file.

size_bytes

int64

File size in bytes.

compression_type

enum FileCompressionType

File compression info

  • FILE_COMPRESSION_TYPE_UNSPECIFIED
  • NONE
  • ZIP

FileDescFileDesc

Field

Description

path

string

Path of the file on filesystem.

var

string

Variable to use in cmd substitution.

Была ли статья полезна?

Предыдущая
Create
Следующая
Execute
Проект Яндекса
© 2025 ООО «Яндекс.Облако»