scaleway.jobs.v1alpha1 package
Submodules
scaleway.jobs.v1alpha1.api module
- class scaleway.jobs.v1alpha1.api.JobsV1Alpha1API(client: Client, *, bypass_validation: bool = False)
Bases:
API
This API allows you to manage your Serverless Jobs.
- create_job_definition(*, cpu_limit: int, memory_limit: int, image_uri: str, command: str, description: str, region: Optional[str] = None, name: Optional[str] = None, local_storage_capacity: Optional[int] = None, project_id: Optional[str] = None, environment_variables: Optional[Dict[str, str]] = None, job_timeout: Optional[str] = None, cron_schedule: Optional[CreateJobDefinitionRequestCronScheduleConfig] = None) JobDefinition
Create a new job definition in a specified Project. :param cpu_limit: CPU limit of the job. :param memory_limit: Memory limit of the job (in MiB). :param image_uri: Image to use for the job. :param command: Startup command. If empty or not defined, the image’s default command is used. :param description: Description of the job. :param region: Region to target. If none is passed will use default region from the config. :param name: Name of the job definition. :param local_storage_capacity: Local storage capacity of the job (in MiB). :param project_id: UUID of the Scaleway Project containing the job. :param environment_variables: Environment variables of the job. :param job_timeout: Timeout of the job in seconds. :param cron_schedule: Configure a cron for the job. :return:
JobDefinition
Usage:
result = api.create_job_definition( cpu_limit=1, memory_limit=1, image_uri="example", command="example", description="example", )
- create_job_definition_secrets(*, job_definition_id: str, secrets: List[CreateJobDefinitionSecretsRequestSecretConfig], region: Optional[str] = None) CreateJobDefinitionSecretsResponse
Create a secret reference within a job definition. :param job_definition_id: UUID of the job definition. :param secrets: List of secrets to inject into the job. :param region: Region to target. If none is passed will use default region from the config. :return:
CreateJobDefinitionSecretsResponse
Usage:
result = api.create_job_definition_secrets( job_definition_id="example", secrets=[], )
- delete_job_definition(*, job_definition_id: str, region: Optional[str] = None) None
Delete an exsisting job definition by its unique identifier. :param job_definition_id: UUID of the job definition to delete. :param region: Region to target. If none is passed will use default region from the config.
Usage:
result = api.delete_job_definition( job_definition_id="example", )
- delete_job_definition_secret(*, job_definition_id: str, secret_id: str, region: Optional[str] = None) None
Delete a secret reference within a job definition. :param job_definition_id: UUID of the job definition. :param secret_id: UUID of the secret reference within the job. :param region: Region to target. If none is passed will use default region from the config.
Usage:
result = api.delete_job_definition_secret( job_definition_id="example", secret_id="example", )
- get_job_definition(*, job_definition_id: str, region: Optional[str] = None) JobDefinition
Get a job definition by its unique identifier. :param job_definition_id: UUID of the job definition to get. :param region: Region to target. If none is passed will use default region from the config. :return:
JobDefinition
Usage:
result = api.get_job_definition( job_definition_id="example", )
- get_job_definition_secret(*, job_definition_id: str, secret_id: str, region: Optional[str] = None) Secret
Get a secret references within a job definition. :param job_definition_id: UUID of the job definition. :param secret_id: UUID of the secret reference within the job. :param region: Region to target. If none is passed will use default region from the config. :return:
Secret
Usage:
result = api.get_job_definition_secret( job_definition_id="example", secret_id="example", )
- get_job_run(*, job_run_id: str, region: Optional[str] = None) JobRun
Get a job run by its unique identifier. :param job_run_id: UUID of the job run to get. :param region: Region to target. If none is passed will use default region from the config. :return:
JobRun
Usage:
result = api.get_job_run( job_run_id="example", )
- get_jobs_limits(*, region: Optional[str] = None) JobsLimits
Get jobs limits for the console. :param region: Region to target. If none is passed will use default region from the config. :return:
JobsLimits
Usage:
result = api.get_jobs_limits()
- list_job_definition_secrets(*, job_definition_id: str, region: Optional[str] = None) ListJobDefinitionSecretsResponse
List secrets references within a job definition. :param job_definition_id: UUID of the job definition. :param region: Region to target. If none is passed will use default region from the config. :return:
ListJobDefinitionSecretsResponse
Usage:
result = api.list_job_definition_secrets( job_definition_id="example", )
- list_job_definitions(*, region: Optional[str] = None, page: Optional[int] = None, page_size: Optional[int] = None, order_by: Optional[ListJobDefinitionsRequestOrderBy] = None, project_id: Optional[str] = None, organization_id: Optional[str] = None) ListJobDefinitionsResponse
List all your job definitions with filters. :param region: Region to target. If none is passed will use default region from the config. :param page: :param page_size: :param order_by: :param project_id: :param organization_id: :return:
ListJobDefinitionsResponse
Usage:
result = api.list_job_definitions()
- list_job_definitions_all(*, region: Optional[str] = None, page: Optional[int] = None, page_size: Optional[int] = None, order_by: Optional[ListJobDefinitionsRequestOrderBy] = None, project_id: Optional[str] = None, organization_id: Optional[str] = None) List[JobDefinition]
List all your job definitions with filters. :param region: Region to target. If none is passed will use default region from the config. :param page: :param page_size: :param order_by: :param project_id: :param organization_id: :return:
List[JobDefinition]
Usage:
result = api.list_job_definitions_all()
- list_job_runs(*, region: Optional[str] = None, page: Optional[int] = None, page_size: Optional[int] = None, order_by: Optional[ListJobRunsRequestOrderBy] = None, job_definition_id: Optional[str] = None, project_id: Optional[str] = None, organization_id: Optional[str] = None) ListJobRunsResponse
List all job runs with filters. :param region: Region to target. If none is passed will use default region from the config. :param page: :param page_size: :param order_by: :param job_definition_id: :param project_id: :param organization_id: :return:
ListJobRunsResponse
Usage:
result = api.list_job_runs()
- list_job_runs_all(*, region: Optional[str] = None, page: Optional[int] = None, page_size: Optional[int] = None, order_by: Optional[ListJobRunsRequestOrderBy] = None, job_definition_id: Optional[str] = None, project_id: Optional[str] = None, organization_id: Optional[str] = None) List[JobRun]
List all job runs with filters. :param region: Region to target. If none is passed will use default region from the config. :param page: :param page_size: :param order_by: :param job_definition_id: :param project_id: :param organization_id: :return:
List[JobRun]
Usage:
result = api.list_job_runs_all()
- list_jobs_resources(*, region: Optional[str] = None) ListJobsResourcesResponse
List jobs resources for the console. :param region: Region to target. If none is passed will use default region from the config. :return:
ListJobsResourcesResponse
Usage:
result = api.list_jobs_resources()
- start_job_definition(*, job_definition_id: str, region: Optional[str] = None, command: Optional[str] = None, environment_variables: Optional[Dict[str, str]] = None, replicas: Optional[int] = None) StartJobDefinitionResponse
Run an existing job definition by its unique identifier. This will create a new job run. :param job_definition_id: UUID of the job definition to start. :param region: Region to target. If none is passed will use default region from the config. :param command: Contextual startup command for this specific job run. :param environment_variables: Contextual environment variables for this specific job run. :param replicas: Number of jobs to run. :return:
StartJobDefinitionResponse
Usage:
result = api.start_job_definition( job_definition_id="example", )
- stop_job_run(*, job_run_id: str, region: Optional[str] = None) JobRun
Stop a job run by its unique identifier. :param job_run_id: UUID of the job run to stop. :param region: Region to target. If none is passed will use default region from the config. :return:
JobRun
Usage:
result = api.stop_job_run( job_run_id="example", )
- update_job_definition(*, job_definition_id: str, region: Optional[str] = None, name: Optional[str] = None, cpu_limit: Optional[int] = None, memory_limit: Optional[int] = None, local_storage_capacity: Optional[int] = None, image_uri: Optional[str] = None, command: Optional[str] = None, environment_variables: Optional[Dict[str, str]] = None, description: Optional[str] = None, job_timeout: Optional[str] = None, cron_schedule: Optional[UpdateJobDefinitionRequestCronScheduleConfig] = None) JobDefinition
Update an existing job definition associated with the specified unique identifier. :param job_definition_id: UUID of the job definition to update. :param region: Region to target. If none is passed will use default region from the config. :param name: Name of the job definition. :param cpu_limit: CPU limit of the job. :param memory_limit: Memory limit of the job (in MiB). :param local_storage_capacity: Local storage capacity of the job (in MiB). :param image_uri: Image to use for the job. :param command: Startup command. :param environment_variables: Environment variables of the job. :param description: Description of the job. :param job_timeout: Timeout of the job in seconds. :param cron_schedule: :return:
JobDefinition
Usage:
result = api.update_job_definition( job_definition_id="example", )
- update_job_definition_secret(*, job_definition_id: str, secret_id: str, region: Optional[str] = None, secret_manager_version: Optional[str] = None, path: Optional[str] = None, env_var_name: Optional[str] = None) Secret
Update a secret reference within a job definition. :param job_definition_id: UUID of the job definition. :param secret_id: UUID of the secret reference within the job. :param region: Region to target. If none is passed will use default region from the config. :param secret_manager_version: Version of the secret in Secret Manager. :param path: Path of the secret to mount inside the job (either path or env_var_name must be set). One-Of (‘secret_config’): at most one of ‘path’, ‘env_var_name’ could be set. :param env_var_name: Environment variable name used to expose the secret inside the job (either path or env_var_name must be set). One-Of (‘secret_config’): at most one of ‘path’, ‘env_var_name’ could be set. :return:
Secret
Usage:
result = api.update_job_definition_secret( job_definition_id="example", secret_id="example", )
scaleway.jobs.v1alpha1.content module
- scaleway.jobs.v1alpha1.content.JOB_RUN_TRANSIENT_STATUSES: List[JobRunState] = [<JobRunState.QUEUED: 'queued'>, <JobRunState.SCHEDULED: 'scheduled'>, <JobRunState.RUNNING: 'running'>]
Lists transient statutes of the enum
JobRunState
.
scaleway.jobs.v1alpha1.marshalling module
- scaleway.jobs.v1alpha1.marshalling.marshal_CreateJobDefinitionRequest(request: CreateJobDefinitionRequest, defaults: ProfileDefaults) Dict[str, Any]
- scaleway.jobs.v1alpha1.marshalling.marshal_CreateJobDefinitionRequestCronScheduleConfig(request: CreateJobDefinitionRequestCronScheduleConfig, defaults: ProfileDefaults) Dict[str, Any]
- scaleway.jobs.v1alpha1.marshalling.marshal_CreateJobDefinitionSecretsRequest(request: CreateJobDefinitionSecretsRequest, defaults: ProfileDefaults) Dict[str, Any]
- scaleway.jobs.v1alpha1.marshalling.marshal_CreateJobDefinitionSecretsRequestSecretConfig(request: CreateJobDefinitionSecretsRequestSecretConfig, defaults: ProfileDefaults) Dict[str, Any]
- scaleway.jobs.v1alpha1.marshalling.marshal_StartJobDefinitionRequest(request: StartJobDefinitionRequest, defaults: ProfileDefaults) Dict[str, Any]
- scaleway.jobs.v1alpha1.marshalling.marshal_UpdateJobDefinitionRequest(request: UpdateJobDefinitionRequest, defaults: ProfileDefaults) Dict[str, Any]
- scaleway.jobs.v1alpha1.marshalling.marshal_UpdateJobDefinitionRequestCronScheduleConfig(request: UpdateJobDefinitionRequestCronScheduleConfig, defaults: ProfileDefaults) Dict[str, Any]
- scaleway.jobs.v1alpha1.marshalling.marshal_UpdateJobDefinitionSecretRequest(request: UpdateJobDefinitionSecretRequest, defaults: ProfileDefaults) Dict[str, Any]
- scaleway.jobs.v1alpha1.marshalling.unmarshal_CreateJobDefinitionSecretsResponse(data: Any) CreateJobDefinitionSecretsResponse
- scaleway.jobs.v1alpha1.marshalling.unmarshal_CronSchedule(data: Any) CronSchedule
- scaleway.jobs.v1alpha1.marshalling.unmarshal_JobDefinition(data: Any) JobDefinition
- scaleway.jobs.v1alpha1.marshalling.unmarshal_JobsLimits(data: Any) JobsLimits
- scaleway.jobs.v1alpha1.marshalling.unmarshal_ListJobDefinitionSecretsResponse(data: Any) ListJobDefinitionSecretsResponse
- scaleway.jobs.v1alpha1.marshalling.unmarshal_ListJobDefinitionsResponse(data: Any) ListJobDefinitionsResponse
- scaleway.jobs.v1alpha1.marshalling.unmarshal_ListJobRunsResponse(data: Any) ListJobRunsResponse
- scaleway.jobs.v1alpha1.marshalling.unmarshal_ListJobsResourcesResponse(data: Any) ListJobsResourcesResponse
- scaleway.jobs.v1alpha1.marshalling.unmarshal_SecretEnvVar(data: Any) SecretEnvVar
- scaleway.jobs.v1alpha1.marshalling.unmarshal_SecretFile(data: Any) SecretFile
- scaleway.jobs.v1alpha1.marshalling.unmarshal_StartJobDefinitionResponse(data: Any) StartJobDefinitionResponse
scaleway.jobs.v1alpha1.types module
- class scaleway.jobs.v1alpha1.types.CreateJobDefinitionRequest(cpu_limit: 'int', memory_limit: 'int', image_uri: 'str', command: 'str', description: 'str', region: 'Optional[Region]', name: 'Optional[str]', local_storage_capacity: 'Optional[int]', project_id: 'Optional[str]', environment_variables: 'Optional[Dict[str, str]]', job_timeout: 'Optional[str]', cron_schedule: 'Optional[CreateJobDefinitionRequestCronScheduleConfig]')
Bases:
object
- command: str
Startup command. If empty or not defined, the image’s default command is used.
- cpu_limit: int
CPU limit of the job.
- cron_schedule: Optional[CreateJobDefinitionRequestCronScheduleConfig]
Configure a cron for the job.
- description: str
Description of the job.
- environment_variables: Optional[Dict[str, str]]
Environment variables of the job.
- image_uri: str
Image to use for the job.
- job_timeout: Optional[str]
Timeout of the job in seconds.
- local_storage_capacity: Optional[int]
Local storage capacity of the job (in MiB).
- memory_limit: int
Memory limit of the job (in MiB).
- name: Optional[str]
Name of the job definition.
- project_id: Optional[str]
UUID of the Scaleway Project containing the job.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.types.CreateJobDefinitionRequestCronScheduleConfig(schedule: 'str', timezone: 'str')
Bases:
object
- schedule: str
- timezone: str
- class scaleway.jobs.v1alpha1.types.CreateJobDefinitionSecretsRequest(job_definition_id: 'str', secrets: 'List[CreateJobDefinitionSecretsRequestSecretConfig]', region: 'Optional[Region]')
Bases:
object
- job_definition_id: str
UUID of the job definition.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- secrets: List[CreateJobDefinitionSecretsRequestSecretConfig]
List of secrets to inject into the job.
- class scaleway.jobs.v1alpha1.types.CreateJobDefinitionSecretsRequestSecretConfig(secret_manager_id: 'str', secret_manager_version: 'str', path: 'Optional[str]', env_var_name: 'Optional[str]')
Bases:
object
- env_var_name: Optional[str]
- path: Optional[str]
- secret_manager_id: str
- secret_manager_version: str
- class scaleway.jobs.v1alpha1.types.CreateJobDefinitionSecretsResponse(secrets: 'List[Secret]')
Bases:
object
- class scaleway.jobs.v1alpha1.types.CronSchedule(schedule: 'str', timezone: 'str')
Bases:
object
- timezone: str
Timezone for the cron schedule, in tz database format (e.g., ‘Europe/Paris’).
- class scaleway.jobs.v1alpha1.types.DeleteJobDefinitionRequest(job_definition_id: 'str', region: 'Optional[Region]')
Bases:
object
- job_definition_id: str
UUID of the job definition to delete.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.types.DeleteJobDefinitionSecretRequest(job_definition_id: 'str', secret_id: 'str', region: 'Optional[Region]')
Bases:
object
- job_definition_id: str
UUID of the job definition.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- secret_id: str
UUID of the secret reference within the job.
- class scaleway.jobs.v1alpha1.types.GetJobDefinitionRequest(job_definition_id: 'str', region: 'Optional[Region]')
Bases:
object
- job_definition_id: str
UUID of the job definition to get.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.types.GetJobDefinitionSecretRequest(job_definition_id: 'str', secret_id: 'str', region: 'Optional[Region]')
Bases:
object
- job_definition_id: str
UUID of the job definition.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- secret_id: str
UUID of the secret reference within the job.
- class scaleway.jobs.v1alpha1.types.GetJobRunRequest(job_run_id: 'str', region: 'Optional[Region]')
Bases:
object
- job_run_id: str
UUID of the job run to get.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.types.GetJobsLimitsRequest(region: 'Optional[Region]')
Bases:
object
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.types.JobDefinition(id: 'str', name: 'str', cpu_limit: 'int', memory_limit: 'int', image_uri: 'str', command: 'str', project_id: 'str', created_at: 'Optional[datetime]', updated_at: 'Optional[datetime]', environment_variables: 'Dict[str, str]', description: 'str', local_storage_capacity: 'int', region: 'Region', job_timeout: 'Optional[str]', cron_schedule: 'Optional[CronSchedule]')
Bases:
object
- command: str
- cpu_limit: int
- created_at: Optional[datetime]
- cron_schedule: Optional[CronSchedule]
- description: str
- environment_variables: Dict[str, str]
- id: str
- image_uri: str
- job_timeout: Optional[str]
- local_storage_capacity: int
- memory_limit: int
- name: str
- project_id: str
- region: str
Region to target. If none is passed will use default region from the config.
- updated_at: Optional[datetime]
- class scaleway.jobs.v1alpha1.types.JobRun(id: 'str', job_definition_id: 'str', state: 'JobRunState', error_message: 'str', cpu_limit: 'int', memory_limit: 'int', command: 'str', created_at: 'Optional[datetime]', updated_at: 'Optional[datetime]', terminated_at: 'Optional[datetime]', exit_code: 'Optional[int]', run_duration: 'Optional[str]', environment_variables: 'Dict[str, str]', local_storage_capacity: 'int', region: 'Region', started_at: 'Optional[datetime]')
Bases:
object
- command: str
- cpu_limit: int
- created_at: Optional[datetime]
- environment_variables: Dict[str, str]
- error_message: str
- exit_code: Optional[int]
- id: str
- job_definition_id: str
- local_storage_capacity: int
- memory_limit: int
- region: str
Region to target. If none is passed will use default region from the config.
- run_duration: Optional[str]
- started_at: Optional[datetime]
- state: JobRunState
- terminated_at: Optional[datetime]
- updated_at: Optional[datetime]
- class scaleway.jobs.v1alpha1.types.JobRunState(value: str, names: Optional[Any] = None, *args: Any, **kwargs: Any)
Bases:
str
,Enum
An enumeration.
- CANCELED = 'canceled'
- FAILED = 'failed'
- INTERNAL_ERROR = 'internal_error'
- QUEUED = 'queued'
- RUNNING = 'running'
- SCHEDULED = 'scheduled'
- SUCCEEDED = 'succeeded'
- UNKNOWN_STATE = 'unknown_state'
- class scaleway.jobs.v1alpha1.types.JobsLimits(secrets_per_job_definition: 'int')
Bases:
object
- secrets_per_job_definition: int
- class scaleway.jobs.v1alpha1.types.ListJobDefinitionSecretsRequest(job_definition_id: 'str', region: 'Optional[Region]')
Bases:
object
- job_definition_id: str
UUID of the job definition.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.types.ListJobDefinitionSecretsResponse(secrets: 'List[Secret]', total_count: 'int')
Bases:
object
- total_count: int
Total count of secret references within a job definition.
- class scaleway.jobs.v1alpha1.types.ListJobDefinitionsRequest(region: 'Optional[Region]', page: 'Optional[int]', page_size: 'Optional[int]', order_by: 'Optional[ListJobDefinitionsRequestOrderBy]', project_id: 'Optional[str]', organization_id: 'Optional[str]')
Bases:
object
- order_by: Optional[ListJobDefinitionsRequestOrderBy]
- organization_id: Optional[str]
- page: Optional[int]
- page_size: Optional[int]
- project_id: Optional[str]
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.types.ListJobDefinitionsRequestOrderBy(value: str, names: Optional[Any] = None, *args: Any, **kwargs: Any)
Bases:
str
,Enum
An enumeration.
- CREATED_AT_ASC = 'created_at_asc'
- CREATED_AT_DESC = 'created_at_desc'
- class scaleway.jobs.v1alpha1.types.ListJobDefinitionsResponse(job_definitions: 'List[JobDefinition]', total_count: 'int')
Bases:
object
- job_definitions: List[JobDefinition]
- total_count: int
- class scaleway.jobs.v1alpha1.types.ListJobRunsRequest(region: 'Optional[Region]', page: 'Optional[int]', page_size: 'Optional[int]', order_by: 'Optional[ListJobRunsRequestOrderBy]', job_definition_id: 'Optional[str]', project_id: 'Optional[str]', organization_id: 'Optional[str]')
Bases:
object
- job_definition_id: Optional[str]
- order_by: Optional[ListJobRunsRequestOrderBy]
- organization_id: Optional[str]
- page: Optional[int]
- page_size: Optional[int]
- project_id: Optional[str]
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.types.ListJobRunsRequestOrderBy(value: str, names: Optional[Any] = None, *args: Any, **kwargs: Any)
Bases:
str
,Enum
An enumeration.
- CREATED_AT_ASC = 'created_at_asc'
- CREATED_AT_DESC = 'created_at_desc'
- class scaleway.jobs.v1alpha1.types.ListJobRunsResponse(job_runs: 'List[JobRun]', total_count: 'int')
Bases:
object
- total_count: int
- class scaleway.jobs.v1alpha1.types.ListJobsResourcesRequest(region: 'Optional[Region]')
Bases:
object
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.types.ListJobsResourcesResponse(resources: 'List[Resource]')
Bases:
object
- class scaleway.jobs.v1alpha1.types.Resource(cpu_limit: 'int', memory_limit: 'int')
Bases:
object
- cpu_limit: int
- memory_limit: int
- class scaleway.jobs.v1alpha1.types.Secret(secret_id: 'str', secret_manager_id: 'str', secret_manager_version: 'str', file: 'Optional[SecretFile]', env_var: 'Optional[SecretEnvVar]')
Bases:
object
- env_var: Optional[SecretEnvVar]
- file: Optional[SecretFile]
- secret_id: str
UUID of the secret reference within the job.
- secret_manager_id: str
UUID of the secret in Secret Manager.
- secret_manager_version: str
Version of the secret in Secret Manager.
- class scaleway.jobs.v1alpha1.types.StartJobDefinitionRequest(job_definition_id: 'str', region: 'Optional[Region]', command: 'Optional[str]', environment_variables: 'Optional[Dict[str, str]]', replicas: 'Optional[int]')
Bases:
object
- command: Optional[str]
Contextual startup command for this specific job run.
- environment_variables: Optional[Dict[str, str]]
Contextual environment variables for this specific job run.
- job_definition_id: str
UUID of the job definition to start.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- replicas: Optional[int]
Number of jobs to run.
- class scaleway.jobs.v1alpha1.types.StartJobDefinitionResponse(job_runs: 'List[JobRun]')
Bases:
object
- class scaleway.jobs.v1alpha1.types.StopJobRunRequest(job_run_id: 'str', region: 'Optional[Region]')
Bases:
object
- job_run_id: str
UUID of the job run to stop.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.types.UpdateJobDefinitionRequest(job_definition_id: 'str', region: 'Optional[Region]', name: 'Optional[str]', cpu_limit: 'Optional[int]', memory_limit: 'Optional[int]', local_storage_capacity: 'Optional[int]', image_uri: 'Optional[str]', command: 'Optional[str]', environment_variables: 'Optional[Dict[str, str]]', description: 'Optional[str]', job_timeout: 'Optional[str]', cron_schedule: 'Optional[UpdateJobDefinitionRequestCronScheduleConfig]')
Bases:
object
- command: Optional[str]
Startup command.
- cpu_limit: Optional[int]
CPU limit of the job.
- cron_schedule: Optional[UpdateJobDefinitionRequestCronScheduleConfig]
- description: Optional[str]
Description of the job.
- environment_variables: Optional[Dict[str, str]]
Environment variables of the job.
- image_uri: Optional[str]
Image to use for the job.
- job_definition_id: str
UUID of the job definition to update.
- job_timeout: Optional[str]
Timeout of the job in seconds.
- local_storage_capacity: Optional[int]
Local storage capacity of the job (in MiB).
- memory_limit: Optional[int]
Memory limit of the job (in MiB).
- name: Optional[str]
Name of the job definition.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.types.UpdateJobDefinitionRequestCronScheduleConfig(schedule: 'Optional[str]', timezone: 'Optional[str]')
Bases:
object
- schedule: Optional[str]
- timezone: Optional[str]
- class scaleway.jobs.v1alpha1.types.UpdateJobDefinitionSecretRequest(job_definition_id: 'str', secret_id: 'str', region: 'Optional[Region]', secret_manager_version: 'Optional[str]', path: 'Optional[str]', env_var_name: 'Optional[str]')
Bases:
object
- env_var_name: Optional[str]
- job_definition_id: str
UUID of the job definition.
- path: Optional[str]
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- secret_id: str
UUID of the secret reference within the job.
- secret_manager_version: Optional[str]
Version of the secret in Secret Manager.
Module contents
- class scaleway.jobs.v1alpha1.CreateJobDefinitionRequest(cpu_limit: 'int', memory_limit: 'int', image_uri: 'str', command: 'str', description: 'str', region: 'Optional[Region]', name: 'Optional[str]', local_storage_capacity: 'Optional[int]', project_id: 'Optional[str]', environment_variables: 'Optional[Dict[str, str]]', job_timeout: 'Optional[str]', cron_schedule: 'Optional[CreateJobDefinitionRequestCronScheduleConfig]')
Bases:
object
- command: str
Startup command. If empty or not defined, the image’s default command is used.
- cpu_limit: int
CPU limit of the job.
- cron_schedule: Optional[CreateJobDefinitionRequestCronScheduleConfig]
Configure a cron for the job.
- description: str
Description of the job.
- environment_variables: Optional[Dict[str, str]]
Environment variables of the job.
- image_uri: str
Image to use for the job.
- job_timeout: Optional[str]
Timeout of the job in seconds.
- local_storage_capacity: Optional[int]
Local storage capacity of the job (in MiB).
- memory_limit: int
Memory limit of the job (in MiB).
- name: Optional[str]
Name of the job definition.
- project_id: Optional[str]
UUID of the Scaleway Project containing the job.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.CreateJobDefinitionRequestCronScheduleConfig(schedule: 'str', timezone: 'str')
Bases:
object
- schedule: str
- timezone: str
- class scaleway.jobs.v1alpha1.CreateJobDefinitionSecretsRequest(job_definition_id: 'str', secrets: 'List[CreateJobDefinitionSecretsRequestSecretConfig]', region: 'Optional[Region]')
Bases:
object
- job_definition_id: str
UUID of the job definition.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- secrets: List[CreateJobDefinitionSecretsRequestSecretConfig]
List of secrets to inject into the job.
- class scaleway.jobs.v1alpha1.CreateJobDefinitionSecretsRequestSecretConfig(secret_manager_id: 'str', secret_manager_version: 'str', path: 'Optional[str]', env_var_name: 'Optional[str]')
Bases:
object
- env_var_name: Optional[str]
- path: Optional[str]
- secret_manager_id: str
- secret_manager_version: str
- class scaleway.jobs.v1alpha1.CreateJobDefinitionSecretsResponse(secrets: 'List[Secret]')
Bases:
object
- class scaleway.jobs.v1alpha1.CronSchedule(schedule: 'str', timezone: 'str')
Bases:
object
- timezone: str
Timezone for the cron schedule, in tz database format (e.g., ‘Europe/Paris’).
- class scaleway.jobs.v1alpha1.DeleteJobDefinitionRequest(job_definition_id: 'str', region: 'Optional[Region]')
Bases:
object
- job_definition_id: str
UUID of the job definition to delete.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.DeleteJobDefinitionSecretRequest(job_definition_id: 'str', secret_id: 'str', region: 'Optional[Region]')
Bases:
object
- job_definition_id: str
UUID of the job definition.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- secret_id: str
UUID of the secret reference within the job.
- class scaleway.jobs.v1alpha1.GetJobDefinitionRequest(job_definition_id: 'str', region: 'Optional[Region]')
Bases:
object
- job_definition_id: str
UUID of the job definition to get.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.GetJobDefinitionSecretRequest(job_definition_id: 'str', secret_id: 'str', region: 'Optional[Region]')
Bases:
object
- job_definition_id: str
UUID of the job definition.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- secret_id: str
UUID of the secret reference within the job.
- class scaleway.jobs.v1alpha1.GetJobRunRequest(job_run_id: 'str', region: 'Optional[Region]')
Bases:
object
- job_run_id: str
UUID of the job run to get.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.GetJobsLimitsRequest(region: 'Optional[Region]')
Bases:
object
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.JobDefinition(id: 'str', name: 'str', cpu_limit: 'int', memory_limit: 'int', image_uri: 'str', command: 'str', project_id: 'str', created_at: 'Optional[datetime]', updated_at: 'Optional[datetime]', environment_variables: 'Dict[str, str]', description: 'str', local_storage_capacity: 'int', region: 'Region', job_timeout: 'Optional[str]', cron_schedule: 'Optional[CronSchedule]')
Bases:
object
- command: str
- cpu_limit: int
- created_at: Optional[datetime]
- cron_schedule: Optional[CronSchedule]
- description: str
- environment_variables: Dict[str, str]
- id: str
- image_uri: str
- job_timeout: Optional[str]
- local_storage_capacity: int
- memory_limit: int
- name: str
- project_id: str
- region: str
Region to target. If none is passed will use default region from the config.
- updated_at: Optional[datetime]
- class scaleway.jobs.v1alpha1.JobRun(id: 'str', job_definition_id: 'str', state: 'JobRunState', error_message: 'str', cpu_limit: 'int', memory_limit: 'int', command: 'str', created_at: 'Optional[datetime]', updated_at: 'Optional[datetime]', terminated_at: 'Optional[datetime]', exit_code: 'Optional[int]', run_duration: 'Optional[str]', environment_variables: 'Dict[str, str]', local_storage_capacity: 'int', region: 'Region', started_at: 'Optional[datetime]')
Bases:
object
- command: str
- cpu_limit: int
- created_at: Optional[datetime]
- environment_variables: Dict[str, str]
- error_message: str
- exit_code: Optional[int]
- id: str
- job_definition_id: str
- local_storage_capacity: int
- memory_limit: int
- region: str
Region to target. If none is passed will use default region from the config.
- run_duration: Optional[str]
- started_at: Optional[datetime]
- state: JobRunState
- terminated_at: Optional[datetime]
- updated_at: Optional[datetime]
- class scaleway.jobs.v1alpha1.JobRunState(value: str, names: Optional[Any] = None, *args: Any, **kwargs: Any)
Bases:
str
,Enum
An enumeration.
- CANCELED = 'canceled'
- FAILED = 'failed'
- INTERNAL_ERROR = 'internal_error'
- QUEUED = 'queued'
- RUNNING = 'running'
- SCHEDULED = 'scheduled'
- SUCCEEDED = 'succeeded'
- UNKNOWN_STATE = 'unknown_state'
- class scaleway.jobs.v1alpha1.JobsLimits(secrets_per_job_definition: 'int')
Bases:
object
- secrets_per_job_definition: int
- class scaleway.jobs.v1alpha1.JobsV1Alpha1API(client: Client, *, bypass_validation: bool = False)
Bases:
API
This API allows you to manage your Serverless Jobs.
- create_job_definition(*, cpu_limit: int, memory_limit: int, image_uri: str, command: str, description: str, region: Optional[str] = None, name: Optional[str] = None, local_storage_capacity: Optional[int] = None, project_id: Optional[str] = None, environment_variables: Optional[Dict[str, str]] = None, job_timeout: Optional[str] = None, cron_schedule: Optional[CreateJobDefinitionRequestCronScheduleConfig] = None) JobDefinition
Create a new job definition in a specified Project. :param cpu_limit: CPU limit of the job. :param memory_limit: Memory limit of the job (in MiB). :param image_uri: Image to use for the job. :param command: Startup command. If empty or not defined, the image’s default command is used. :param description: Description of the job. :param region: Region to target. If none is passed will use default region from the config. :param name: Name of the job definition. :param local_storage_capacity: Local storage capacity of the job (in MiB). :param project_id: UUID of the Scaleway Project containing the job. :param environment_variables: Environment variables of the job. :param job_timeout: Timeout of the job in seconds. :param cron_schedule: Configure a cron for the job. :return:
JobDefinition
Usage:
result = api.create_job_definition( cpu_limit=1, memory_limit=1, image_uri="example", command="example", description="example", )
- create_job_definition_secrets(*, job_definition_id: str, secrets: List[CreateJobDefinitionSecretsRequestSecretConfig], region: Optional[str] = None) CreateJobDefinitionSecretsResponse
Create a secret reference within a job definition. :param job_definition_id: UUID of the job definition. :param secrets: List of secrets to inject into the job. :param region: Region to target. If none is passed will use default region from the config. :return:
CreateJobDefinitionSecretsResponse
Usage:
result = api.create_job_definition_secrets( job_definition_id="example", secrets=[], )
- delete_job_definition(*, job_definition_id: str, region: Optional[str] = None) None
Delete an exsisting job definition by its unique identifier. :param job_definition_id: UUID of the job definition to delete. :param region: Region to target. If none is passed will use default region from the config.
Usage:
result = api.delete_job_definition( job_definition_id="example", )
- delete_job_definition_secret(*, job_definition_id: str, secret_id: str, region: Optional[str] = None) None
Delete a secret reference within a job definition. :param job_definition_id: UUID of the job definition. :param secret_id: UUID of the secret reference within the job. :param region: Region to target. If none is passed will use default region from the config.
Usage:
result = api.delete_job_definition_secret( job_definition_id="example", secret_id="example", )
- get_job_definition(*, job_definition_id: str, region: Optional[str] = None) JobDefinition
Get a job definition by its unique identifier. :param job_definition_id: UUID of the job definition to get. :param region: Region to target. If none is passed will use default region from the config. :return:
JobDefinition
Usage:
result = api.get_job_definition( job_definition_id="example", )
- get_job_definition_secret(*, job_definition_id: str, secret_id: str, region: Optional[str] = None) Secret
Get a secret references within a job definition. :param job_definition_id: UUID of the job definition. :param secret_id: UUID of the secret reference within the job. :param region: Region to target. If none is passed will use default region from the config. :return:
Secret
Usage:
result = api.get_job_definition_secret( job_definition_id="example", secret_id="example", )
- get_job_run(*, job_run_id: str, region: Optional[str] = None) JobRun
Get a job run by its unique identifier. :param job_run_id: UUID of the job run to get. :param region: Region to target. If none is passed will use default region from the config. :return:
JobRun
Usage:
result = api.get_job_run( job_run_id="example", )
- get_jobs_limits(*, region: Optional[str] = None) JobsLimits
Get jobs limits for the console. :param region: Region to target. If none is passed will use default region from the config. :return:
JobsLimits
Usage:
result = api.get_jobs_limits()
- list_job_definition_secrets(*, job_definition_id: str, region: Optional[str] = None) ListJobDefinitionSecretsResponse
List secrets references within a job definition. :param job_definition_id: UUID of the job definition. :param region: Region to target. If none is passed will use default region from the config. :return:
ListJobDefinitionSecretsResponse
Usage:
result = api.list_job_definition_secrets( job_definition_id="example", )
- list_job_definitions(*, region: Optional[str] = None, page: Optional[int] = None, page_size: Optional[int] = None, order_by: Optional[ListJobDefinitionsRequestOrderBy] = None, project_id: Optional[str] = None, organization_id: Optional[str] = None) ListJobDefinitionsResponse
List all your job definitions with filters. :param region: Region to target. If none is passed will use default region from the config. :param page: :param page_size: :param order_by: :param project_id: :param organization_id: :return:
ListJobDefinitionsResponse
Usage:
result = api.list_job_definitions()
- list_job_definitions_all(*, region: Optional[str] = None, page: Optional[int] = None, page_size: Optional[int] = None, order_by: Optional[ListJobDefinitionsRequestOrderBy] = None, project_id: Optional[str] = None, organization_id: Optional[str] = None) List[JobDefinition]
List all your job definitions with filters. :param region: Region to target. If none is passed will use default region from the config. :param page: :param page_size: :param order_by: :param project_id: :param organization_id: :return:
List[JobDefinition]
Usage:
result = api.list_job_definitions_all()
- list_job_runs(*, region: Optional[str] = None, page: Optional[int] = None, page_size: Optional[int] = None, order_by: Optional[ListJobRunsRequestOrderBy] = None, job_definition_id: Optional[str] = None, project_id: Optional[str] = None, organization_id: Optional[str] = None) ListJobRunsResponse
List all job runs with filters. :param region: Region to target. If none is passed will use default region from the config. :param page: :param page_size: :param order_by: :param job_definition_id: :param project_id: :param organization_id: :return:
ListJobRunsResponse
Usage:
result = api.list_job_runs()
- list_job_runs_all(*, region: Optional[str] = None, page: Optional[int] = None, page_size: Optional[int] = None, order_by: Optional[ListJobRunsRequestOrderBy] = None, job_definition_id: Optional[str] = None, project_id: Optional[str] = None, organization_id: Optional[str] = None) List[JobRun]
List all job runs with filters. :param region: Region to target. If none is passed will use default region from the config. :param page: :param page_size: :param order_by: :param job_definition_id: :param project_id: :param organization_id: :return:
List[JobRun]
Usage:
result = api.list_job_runs_all()
- list_jobs_resources(*, region: Optional[str] = None) ListJobsResourcesResponse
List jobs resources for the console. :param region: Region to target. If none is passed will use default region from the config. :return:
ListJobsResourcesResponse
Usage:
result = api.list_jobs_resources()
- start_job_definition(*, job_definition_id: str, region: Optional[str] = None, command: Optional[str] = None, environment_variables: Optional[Dict[str, str]] = None, replicas: Optional[int] = None) StartJobDefinitionResponse
Run an existing job definition by its unique identifier. This will create a new job run. :param job_definition_id: UUID of the job definition to start. :param region: Region to target. If none is passed will use default region from the config. :param command: Contextual startup command for this specific job run. :param environment_variables: Contextual environment variables for this specific job run. :param replicas: Number of jobs to run. :return:
StartJobDefinitionResponse
Usage:
result = api.start_job_definition( job_definition_id="example", )
- stop_job_run(*, job_run_id: str, region: Optional[str] = None) JobRun
Stop a job run by its unique identifier. :param job_run_id: UUID of the job run to stop. :param region: Region to target. If none is passed will use default region from the config. :return:
JobRun
Usage:
result = api.stop_job_run( job_run_id="example", )
- update_job_definition(*, job_definition_id: str, region: Optional[str] = None, name: Optional[str] = None, cpu_limit: Optional[int] = None, memory_limit: Optional[int] = None, local_storage_capacity: Optional[int] = None, image_uri: Optional[str] = None, command: Optional[str] = None, environment_variables: Optional[Dict[str, str]] = None, description: Optional[str] = None, job_timeout: Optional[str] = None, cron_schedule: Optional[UpdateJobDefinitionRequestCronScheduleConfig] = None) JobDefinition
Update an existing job definition associated with the specified unique identifier. :param job_definition_id: UUID of the job definition to update. :param region: Region to target. If none is passed will use default region from the config. :param name: Name of the job definition. :param cpu_limit: CPU limit of the job. :param memory_limit: Memory limit of the job (in MiB). :param local_storage_capacity: Local storage capacity of the job (in MiB). :param image_uri: Image to use for the job. :param command: Startup command. :param environment_variables: Environment variables of the job. :param description: Description of the job. :param job_timeout: Timeout of the job in seconds. :param cron_schedule: :return:
JobDefinition
Usage:
result = api.update_job_definition( job_definition_id="example", )
- update_job_definition_secret(*, job_definition_id: str, secret_id: str, region: Optional[str] = None, secret_manager_version: Optional[str] = None, path: Optional[str] = None, env_var_name: Optional[str] = None) Secret
Update a secret reference within a job definition. :param job_definition_id: UUID of the job definition. :param secret_id: UUID of the secret reference within the job. :param region: Region to target. If none is passed will use default region from the config. :param secret_manager_version: Version of the secret in Secret Manager. :param path: Path of the secret to mount inside the job (either path or env_var_name must be set). One-Of (‘secret_config’): at most one of ‘path’, ‘env_var_name’ could be set. :param env_var_name: Environment variable name used to expose the secret inside the job (either path or env_var_name must be set). One-Of (‘secret_config’): at most one of ‘path’, ‘env_var_name’ could be set. :return:
Secret
Usage:
result = api.update_job_definition_secret( job_definition_id="example", secret_id="example", )
- class scaleway.jobs.v1alpha1.ListJobDefinitionSecretsRequest(job_definition_id: 'str', region: 'Optional[Region]')
Bases:
object
- job_definition_id: str
UUID of the job definition.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.ListJobDefinitionSecretsResponse(secrets: 'List[Secret]', total_count: 'int')
Bases:
object
- total_count: int
Total count of secret references within a job definition.
- class scaleway.jobs.v1alpha1.ListJobDefinitionsRequest(region: 'Optional[Region]', page: 'Optional[int]', page_size: 'Optional[int]', order_by: 'Optional[ListJobDefinitionsRequestOrderBy]', project_id: 'Optional[str]', organization_id: 'Optional[str]')
Bases:
object
- order_by: Optional[ListJobDefinitionsRequestOrderBy]
- organization_id: Optional[str]
- page: Optional[int]
- page_size: Optional[int]
- project_id: Optional[str]
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.ListJobDefinitionsRequestOrderBy(value: str, names: Optional[Any] = None, *args: Any, **kwargs: Any)
Bases:
str
,Enum
An enumeration.
- CREATED_AT_ASC = 'created_at_asc'
- CREATED_AT_DESC = 'created_at_desc'
- class scaleway.jobs.v1alpha1.ListJobDefinitionsResponse(job_definitions: 'List[JobDefinition]', total_count: 'int')
Bases:
object
- job_definitions: List[JobDefinition]
- total_count: int
- class scaleway.jobs.v1alpha1.ListJobRunsRequest(region: 'Optional[Region]', page: 'Optional[int]', page_size: 'Optional[int]', order_by: 'Optional[ListJobRunsRequestOrderBy]', job_definition_id: 'Optional[str]', project_id: 'Optional[str]', organization_id: 'Optional[str]')
Bases:
object
- job_definition_id: Optional[str]
- order_by: Optional[ListJobRunsRequestOrderBy]
- organization_id: Optional[str]
- page: Optional[int]
- page_size: Optional[int]
- project_id: Optional[str]
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.ListJobRunsRequestOrderBy(value: str, names: Optional[Any] = None, *args: Any, **kwargs: Any)
Bases:
str
,Enum
An enumeration.
- CREATED_AT_ASC = 'created_at_asc'
- CREATED_AT_DESC = 'created_at_desc'
- class scaleway.jobs.v1alpha1.ListJobRunsResponse(job_runs: 'List[JobRun]', total_count: 'int')
Bases:
object
- total_count: int
- class scaleway.jobs.v1alpha1.ListJobsResourcesRequest(region: 'Optional[Region]')
Bases:
object
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.ListJobsResourcesResponse(resources: 'List[Resource]')
Bases:
object
- class scaleway.jobs.v1alpha1.Resource(cpu_limit: 'int', memory_limit: 'int')
Bases:
object
- cpu_limit: int
- memory_limit: int
- class scaleway.jobs.v1alpha1.Secret(secret_id: 'str', secret_manager_id: 'str', secret_manager_version: 'str', file: 'Optional[SecretFile]', env_var: 'Optional[SecretEnvVar]')
Bases:
object
- env_var: Optional[SecretEnvVar]
- file: Optional[SecretFile]
- secret_id: str
UUID of the secret reference within the job.
- secret_manager_id: str
UUID of the secret in Secret Manager.
- secret_manager_version: str
Version of the secret in Secret Manager.
- class scaleway.jobs.v1alpha1.StartJobDefinitionRequest(job_definition_id: 'str', region: 'Optional[Region]', command: 'Optional[str]', environment_variables: 'Optional[Dict[str, str]]', replicas: 'Optional[int]')
Bases:
object
- command: Optional[str]
Contextual startup command for this specific job run.
- environment_variables: Optional[Dict[str, str]]
Contextual environment variables for this specific job run.
- job_definition_id: str
UUID of the job definition to start.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- replicas: Optional[int]
Number of jobs to run.
- class scaleway.jobs.v1alpha1.StartJobDefinitionResponse(job_runs: 'List[JobRun]')
Bases:
object
- class scaleway.jobs.v1alpha1.StopJobRunRequest(job_run_id: 'str', region: 'Optional[Region]')
Bases:
object
- job_run_id: str
UUID of the job run to stop.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.UpdateJobDefinitionRequest(job_definition_id: 'str', region: 'Optional[Region]', name: 'Optional[str]', cpu_limit: 'Optional[int]', memory_limit: 'Optional[int]', local_storage_capacity: 'Optional[int]', image_uri: 'Optional[str]', command: 'Optional[str]', environment_variables: 'Optional[Dict[str, str]]', description: 'Optional[str]', job_timeout: 'Optional[str]', cron_schedule: 'Optional[UpdateJobDefinitionRequestCronScheduleConfig]')
Bases:
object
- command: Optional[str]
Startup command.
- cpu_limit: Optional[int]
CPU limit of the job.
- cron_schedule: Optional[UpdateJobDefinitionRequestCronScheduleConfig]
- description: Optional[str]
Description of the job.
- environment_variables: Optional[Dict[str, str]]
Environment variables of the job.
- image_uri: Optional[str]
Image to use for the job.
- job_definition_id: str
UUID of the job definition to update.
- job_timeout: Optional[str]
Timeout of the job in seconds.
- local_storage_capacity: Optional[int]
Local storage capacity of the job (in MiB).
- memory_limit: Optional[int]
Memory limit of the job (in MiB).
- name: Optional[str]
Name of the job definition.
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- class scaleway.jobs.v1alpha1.UpdateJobDefinitionRequestCronScheduleConfig(schedule: 'Optional[str]', timezone: 'Optional[str]')
Bases:
object
- schedule: Optional[str]
- timezone: Optional[str]
- class scaleway.jobs.v1alpha1.UpdateJobDefinitionSecretRequest(job_definition_id: 'str', secret_id: 'str', region: 'Optional[Region]', secret_manager_version: 'Optional[str]', path: 'Optional[str]', env_var_name: 'Optional[str]')
Bases:
object
- env_var_name: Optional[str]
- job_definition_id: str
UUID of the job definition.
- path: Optional[str]
- region: Optional[str]
Region to target. If none is passed will use default region from the config.
- secret_id: str
UUID of the secret reference within the job.
- secret_manager_version: Optional[str]
Version of the secret in Secret Manager.