@scaleway/sdk-jobs 2.4.1 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v1alpha1/metadata.gen.d.ts +86 -0
- package/dist/v1alpha1/metadata.gen.js +97 -0
- package/dist/v1alpha2/marshalling.gen.js +1 -1
- package/dist/v1alpha2/metadata.gen.d.ts +106 -0
- package/dist/v1alpha2/metadata.gen.js +119 -0
- package/dist/v1alpha2/types.gen.d.ts +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export declare const queriesMetadata: {
|
|
2
|
+
readonly namespace: "jobs";
|
|
3
|
+
readonly version: "v1alpha1";
|
|
4
|
+
readonly folderName: "jobsv1alpha1";
|
|
5
|
+
readonly services: readonly [{
|
|
6
|
+
readonly apiClass: "API";
|
|
7
|
+
readonly methods: readonly [{
|
|
8
|
+
readonly methodName: "getJobDefinition";
|
|
9
|
+
readonly protoName: "GetJobDefinition";
|
|
10
|
+
readonly paramsType: "GetJobDefinitionRequest";
|
|
11
|
+
readonly returnType: "JobDefinition";
|
|
12
|
+
readonly isList: false;
|
|
13
|
+
readonly paginationType: "none";
|
|
14
|
+
readonly isPrivate: false;
|
|
15
|
+
readonly description: "\"";
|
|
16
|
+
}, {
|
|
17
|
+
readonly methodName: "listJobDefinitions";
|
|
18
|
+
readonly protoName: "ListJobDefinitions";
|
|
19
|
+
readonly paramsType: "ListJobDefinitionsRequest";
|
|
20
|
+
readonly returnType: "ListJobDefinitionsResponse";
|
|
21
|
+
readonly isList: true;
|
|
22
|
+
readonly paginationType: "offset";
|
|
23
|
+
readonly pageParamKey: "page";
|
|
24
|
+
readonly listItemType: "JobDefinition";
|
|
25
|
+
readonly isPrivate: false;
|
|
26
|
+
readonly description: "\"";
|
|
27
|
+
}, {
|
|
28
|
+
readonly methodName: "getJobDefinitionSecret";
|
|
29
|
+
readonly protoName: "GetJobDefinitionSecret";
|
|
30
|
+
readonly paramsType: "GetJobDefinitionSecretRequest";
|
|
31
|
+
readonly returnType: "Secret";
|
|
32
|
+
readonly isList: false;
|
|
33
|
+
readonly paginationType: "none";
|
|
34
|
+
readonly isPrivate: false;
|
|
35
|
+
readonly description: "\"";
|
|
36
|
+
}, {
|
|
37
|
+
readonly methodName: "listJobDefinitionSecrets";
|
|
38
|
+
readonly protoName: "ListJobDefinitionSecrets";
|
|
39
|
+
readonly paramsType: "ListJobDefinitionSecretsRequest";
|
|
40
|
+
readonly returnType: "ListJobDefinitionSecretsResponse";
|
|
41
|
+
readonly isList: false;
|
|
42
|
+
readonly paginationType: "none";
|
|
43
|
+
readonly isPrivate: false;
|
|
44
|
+
readonly description: "\"";
|
|
45
|
+
}, {
|
|
46
|
+
readonly methodName: "getJobRun";
|
|
47
|
+
readonly protoName: "GetJobRun";
|
|
48
|
+
readonly paramsType: "GetJobRunRequest";
|
|
49
|
+
readonly returnType: "JobRun";
|
|
50
|
+
readonly isList: false;
|
|
51
|
+
readonly paginationType: "none";
|
|
52
|
+
readonly isPrivate: false;
|
|
53
|
+
readonly description: "\"";
|
|
54
|
+
}, {
|
|
55
|
+
readonly methodName: "listJobRuns";
|
|
56
|
+
readonly protoName: "ListJobRuns";
|
|
57
|
+
readonly paramsType: "ListJobRunsRequest";
|
|
58
|
+
readonly returnType: "ListJobRunsResponse";
|
|
59
|
+
readonly isList: true;
|
|
60
|
+
readonly paginationType: "offset";
|
|
61
|
+
readonly pageParamKey: "page";
|
|
62
|
+
readonly listItemType: "JobRun";
|
|
63
|
+
readonly isPrivate: false;
|
|
64
|
+
readonly description: "\"";
|
|
65
|
+
}, {
|
|
66
|
+
readonly methodName: "listJobsResources";
|
|
67
|
+
readonly protoName: "ListJobsResources";
|
|
68
|
+
readonly paramsType: "ListJobsResourcesRequest";
|
|
69
|
+
readonly returnType: "ListJobsResourcesResponse";
|
|
70
|
+
readonly isList: false;
|
|
71
|
+
readonly paginationType: "none";
|
|
72
|
+
readonly isPrivate: false;
|
|
73
|
+
readonly description: "\"";
|
|
74
|
+
}, {
|
|
75
|
+
readonly methodName: "getJobsLimits";
|
|
76
|
+
readonly protoName: "GetJobsLimits";
|
|
77
|
+
readonly paramsType: "GetJobsLimitsRequest";
|
|
78
|
+
readonly returnType: "JobsLimits";
|
|
79
|
+
readonly isList: false;
|
|
80
|
+
readonly paginationType: "none";
|
|
81
|
+
readonly isPrivate: false;
|
|
82
|
+
readonly description: "\"";
|
|
83
|
+
}];
|
|
84
|
+
}];
|
|
85
|
+
};
|
|
86
|
+
export type QueriesMetadata = typeof queriesMetadata;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
//#region src/v1alpha1/metadata.gen.ts
|
|
2
|
+
var queriesMetadata = {
|
|
3
|
+
namespace: "jobs",
|
|
4
|
+
version: "v1alpha1",
|
|
5
|
+
folderName: "jobsv1alpha1",
|
|
6
|
+
services: [{
|
|
7
|
+
apiClass: "API",
|
|
8
|
+
methods: [
|
|
9
|
+
{
|
|
10
|
+
methodName: "getJobDefinition",
|
|
11
|
+
protoName: "GetJobDefinition",
|
|
12
|
+
paramsType: "GetJobDefinitionRequest",
|
|
13
|
+
returnType: "JobDefinition",
|
|
14
|
+
isList: false,
|
|
15
|
+
paginationType: "none",
|
|
16
|
+
isPrivate: false,
|
|
17
|
+
description: "\""
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
methodName: "listJobDefinitions",
|
|
21
|
+
protoName: "ListJobDefinitions",
|
|
22
|
+
paramsType: "ListJobDefinitionsRequest",
|
|
23
|
+
returnType: "ListJobDefinitionsResponse",
|
|
24
|
+
isList: true,
|
|
25
|
+
paginationType: "offset",
|
|
26
|
+
pageParamKey: "page",
|
|
27
|
+
listItemType: "JobDefinition",
|
|
28
|
+
isPrivate: false,
|
|
29
|
+
description: "\""
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
methodName: "getJobDefinitionSecret",
|
|
33
|
+
protoName: "GetJobDefinitionSecret",
|
|
34
|
+
paramsType: "GetJobDefinitionSecretRequest",
|
|
35
|
+
returnType: "Secret",
|
|
36
|
+
isList: false,
|
|
37
|
+
paginationType: "none",
|
|
38
|
+
isPrivate: false,
|
|
39
|
+
description: "\""
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
methodName: "listJobDefinitionSecrets",
|
|
43
|
+
protoName: "ListJobDefinitionSecrets",
|
|
44
|
+
paramsType: "ListJobDefinitionSecretsRequest",
|
|
45
|
+
returnType: "ListJobDefinitionSecretsResponse",
|
|
46
|
+
isList: false,
|
|
47
|
+
paginationType: "none",
|
|
48
|
+
isPrivate: false,
|
|
49
|
+
description: "\""
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
methodName: "getJobRun",
|
|
53
|
+
protoName: "GetJobRun",
|
|
54
|
+
paramsType: "GetJobRunRequest",
|
|
55
|
+
returnType: "JobRun",
|
|
56
|
+
isList: false,
|
|
57
|
+
paginationType: "none",
|
|
58
|
+
isPrivate: false,
|
|
59
|
+
description: "\""
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
methodName: "listJobRuns",
|
|
63
|
+
protoName: "ListJobRuns",
|
|
64
|
+
paramsType: "ListJobRunsRequest",
|
|
65
|
+
returnType: "ListJobRunsResponse",
|
|
66
|
+
isList: true,
|
|
67
|
+
paginationType: "offset",
|
|
68
|
+
pageParamKey: "page",
|
|
69
|
+
listItemType: "JobRun",
|
|
70
|
+
isPrivate: false,
|
|
71
|
+
description: "\""
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
methodName: "listJobsResources",
|
|
75
|
+
protoName: "ListJobsResources",
|
|
76
|
+
paramsType: "ListJobsResourcesRequest",
|
|
77
|
+
returnType: "ListJobsResourcesResponse",
|
|
78
|
+
isList: false,
|
|
79
|
+
paginationType: "none",
|
|
80
|
+
isPrivate: false,
|
|
81
|
+
description: "\""
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
methodName: "getJobsLimits",
|
|
85
|
+
protoName: "GetJobsLimits",
|
|
86
|
+
paramsType: "GetJobsLimitsRequest",
|
|
87
|
+
returnType: "JobsLimits",
|
|
88
|
+
isList: false,
|
|
89
|
+
paginationType: "none",
|
|
90
|
+
isPrivate: false,
|
|
91
|
+
description: "\""
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}]
|
|
95
|
+
};
|
|
96
|
+
//#endregion
|
|
97
|
+
export { queriesMetadata };
|
|
@@ -69,7 +69,7 @@ var unmarshalJobRun = (data) => {
|
|
|
69
69
|
jobDefinitionId: data.job_definition_id,
|
|
70
70
|
localStorageCapacity: data.local_storage_capacity,
|
|
71
71
|
memoryLimit: data.memory_limit,
|
|
72
|
-
reason: data.reason,
|
|
72
|
+
reason: data.reason ? data.reason : void 0,
|
|
73
73
|
region: data.region,
|
|
74
74
|
runDuration: data.run_duration,
|
|
75
75
|
startedAt: unmarshalDate(data.started_at),
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export declare const queriesMetadata: {
|
|
2
|
+
readonly namespace: "jobs";
|
|
3
|
+
readonly version: "v1alpha2";
|
|
4
|
+
readonly folderName: "jobsv1alpha2";
|
|
5
|
+
readonly services: readonly [{
|
|
6
|
+
readonly apiClass: "API";
|
|
7
|
+
readonly methods: readonly [{
|
|
8
|
+
readonly methodName: "getJobDefinition";
|
|
9
|
+
readonly protoName: "GetJobDefinition";
|
|
10
|
+
readonly paramsType: "GetJobDefinitionRequest";
|
|
11
|
+
readonly returnType: "JobDefinition";
|
|
12
|
+
readonly isList: false;
|
|
13
|
+
readonly paginationType: "none";
|
|
14
|
+
readonly isPrivate: false;
|
|
15
|
+
readonly description: "\"";
|
|
16
|
+
}, {
|
|
17
|
+
readonly methodName: "listJobDefinitions";
|
|
18
|
+
readonly protoName: "ListJobDefinitions";
|
|
19
|
+
readonly paramsType: "ListJobDefinitionsRequest";
|
|
20
|
+
readonly returnType: "ListJobDefinitionsResponse";
|
|
21
|
+
readonly isList: true;
|
|
22
|
+
readonly paginationType: "offset";
|
|
23
|
+
readonly pageParamKey: "page";
|
|
24
|
+
readonly listItemType: "JobDefinition";
|
|
25
|
+
readonly isPrivate: false;
|
|
26
|
+
readonly description: "\"";
|
|
27
|
+
}, {
|
|
28
|
+
readonly methodName: "getJobRun";
|
|
29
|
+
readonly protoName: "GetJobRun";
|
|
30
|
+
readonly paramsType: "GetJobRunRequest";
|
|
31
|
+
readonly returnType: "JobRun";
|
|
32
|
+
readonly isList: false;
|
|
33
|
+
readonly paginationType: "none";
|
|
34
|
+
readonly isPrivate: false;
|
|
35
|
+
readonly description: "\"";
|
|
36
|
+
}, {
|
|
37
|
+
readonly methodName: "listJobRuns";
|
|
38
|
+
readonly protoName: "ListJobRuns";
|
|
39
|
+
readonly paramsType: "ListJobRunsRequest";
|
|
40
|
+
readonly returnType: "ListJobRunsResponse";
|
|
41
|
+
readonly isList: true;
|
|
42
|
+
readonly paginationType: "offset";
|
|
43
|
+
readonly pageParamKey: "page";
|
|
44
|
+
readonly listItemType: "JobRun";
|
|
45
|
+
readonly isPrivate: false;
|
|
46
|
+
readonly description: "\"";
|
|
47
|
+
}, {
|
|
48
|
+
readonly methodName: "getSecret";
|
|
49
|
+
readonly protoName: "GetSecret";
|
|
50
|
+
readonly paramsType: "GetSecretRequest";
|
|
51
|
+
readonly returnType: "Secret";
|
|
52
|
+
readonly isList: false;
|
|
53
|
+
readonly paginationType: "none";
|
|
54
|
+
readonly isPrivate: false;
|
|
55
|
+
readonly description: "\"";
|
|
56
|
+
}, {
|
|
57
|
+
readonly methodName: "listSecrets";
|
|
58
|
+
readonly protoName: "ListSecrets";
|
|
59
|
+
readonly paramsType: "ListSecretsRequest";
|
|
60
|
+
readonly returnType: "ListSecretsResponse";
|
|
61
|
+
readonly isList: false;
|
|
62
|
+
readonly paginationType: "none";
|
|
63
|
+
readonly isPrivate: false;
|
|
64
|
+
readonly description: "\"";
|
|
65
|
+
}, {
|
|
66
|
+
readonly methodName: "getTrigger";
|
|
67
|
+
readonly protoName: "GetTrigger";
|
|
68
|
+
readonly paramsType: "GetTriggerRequest";
|
|
69
|
+
readonly returnType: "Trigger";
|
|
70
|
+
readonly isList: false;
|
|
71
|
+
readonly paginationType: "none";
|
|
72
|
+
readonly isPrivate: false;
|
|
73
|
+
readonly description: "\"";
|
|
74
|
+
}, {
|
|
75
|
+
readonly methodName: "listTriggers";
|
|
76
|
+
readonly protoName: "ListTriggers";
|
|
77
|
+
readonly paramsType: "ListTriggersRequest";
|
|
78
|
+
readonly returnType: "ListTriggersResponse";
|
|
79
|
+
readonly isList: true;
|
|
80
|
+
readonly paginationType: "offset";
|
|
81
|
+
readonly pageParamKey: "page";
|
|
82
|
+
readonly listItemType: "Trigger";
|
|
83
|
+
readonly isPrivate: false;
|
|
84
|
+
readonly description: "\"";
|
|
85
|
+
}, {
|
|
86
|
+
readonly methodName: "listJobResources";
|
|
87
|
+
readonly protoName: "ListJobResources";
|
|
88
|
+
readonly paramsType: "ListJobResourcesRequest";
|
|
89
|
+
readonly returnType: "ListJobResourcesResponse";
|
|
90
|
+
readonly isList: false;
|
|
91
|
+
readonly paginationType: "none";
|
|
92
|
+
readonly isPrivate: false;
|
|
93
|
+
readonly description: "\"";
|
|
94
|
+
}, {
|
|
95
|
+
readonly methodName: "getJobLimits";
|
|
96
|
+
readonly protoName: "GetJobLimits";
|
|
97
|
+
readonly paramsType: "GetJobLimitsRequest";
|
|
98
|
+
readonly returnType: "JobLimits";
|
|
99
|
+
readonly isList: false;
|
|
100
|
+
readonly paginationType: "none";
|
|
101
|
+
readonly isPrivate: false;
|
|
102
|
+
readonly description: "\"";
|
|
103
|
+
}];
|
|
104
|
+
}];
|
|
105
|
+
};
|
|
106
|
+
export type QueriesMetadata = typeof queriesMetadata;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
//#region src/v1alpha2/metadata.gen.ts
|
|
2
|
+
var queriesMetadata = {
|
|
3
|
+
namespace: "jobs",
|
|
4
|
+
version: "v1alpha2",
|
|
5
|
+
folderName: "jobsv1alpha2",
|
|
6
|
+
services: [{
|
|
7
|
+
apiClass: "API",
|
|
8
|
+
methods: [
|
|
9
|
+
{
|
|
10
|
+
methodName: "getJobDefinition",
|
|
11
|
+
protoName: "GetJobDefinition",
|
|
12
|
+
paramsType: "GetJobDefinitionRequest",
|
|
13
|
+
returnType: "JobDefinition",
|
|
14
|
+
isList: false,
|
|
15
|
+
paginationType: "none",
|
|
16
|
+
isPrivate: false,
|
|
17
|
+
description: "\""
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
methodName: "listJobDefinitions",
|
|
21
|
+
protoName: "ListJobDefinitions",
|
|
22
|
+
paramsType: "ListJobDefinitionsRequest",
|
|
23
|
+
returnType: "ListJobDefinitionsResponse",
|
|
24
|
+
isList: true,
|
|
25
|
+
paginationType: "offset",
|
|
26
|
+
pageParamKey: "page",
|
|
27
|
+
listItemType: "JobDefinition",
|
|
28
|
+
isPrivate: false,
|
|
29
|
+
description: "\""
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
methodName: "getJobRun",
|
|
33
|
+
protoName: "GetJobRun",
|
|
34
|
+
paramsType: "GetJobRunRequest",
|
|
35
|
+
returnType: "JobRun",
|
|
36
|
+
isList: false,
|
|
37
|
+
paginationType: "none",
|
|
38
|
+
isPrivate: false,
|
|
39
|
+
description: "\""
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
methodName: "listJobRuns",
|
|
43
|
+
protoName: "ListJobRuns",
|
|
44
|
+
paramsType: "ListJobRunsRequest",
|
|
45
|
+
returnType: "ListJobRunsResponse",
|
|
46
|
+
isList: true,
|
|
47
|
+
paginationType: "offset",
|
|
48
|
+
pageParamKey: "page",
|
|
49
|
+
listItemType: "JobRun",
|
|
50
|
+
isPrivate: false,
|
|
51
|
+
description: "\""
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
methodName: "getSecret",
|
|
55
|
+
protoName: "GetSecret",
|
|
56
|
+
paramsType: "GetSecretRequest",
|
|
57
|
+
returnType: "Secret",
|
|
58
|
+
isList: false,
|
|
59
|
+
paginationType: "none",
|
|
60
|
+
isPrivate: false,
|
|
61
|
+
description: "\""
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
methodName: "listSecrets",
|
|
65
|
+
protoName: "ListSecrets",
|
|
66
|
+
paramsType: "ListSecretsRequest",
|
|
67
|
+
returnType: "ListSecretsResponse",
|
|
68
|
+
isList: false,
|
|
69
|
+
paginationType: "none",
|
|
70
|
+
isPrivate: false,
|
|
71
|
+
description: "\""
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
methodName: "getTrigger",
|
|
75
|
+
protoName: "GetTrigger",
|
|
76
|
+
paramsType: "GetTriggerRequest",
|
|
77
|
+
returnType: "Trigger",
|
|
78
|
+
isList: false,
|
|
79
|
+
paginationType: "none",
|
|
80
|
+
isPrivate: false,
|
|
81
|
+
description: "\""
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
methodName: "listTriggers",
|
|
85
|
+
protoName: "ListTriggers",
|
|
86
|
+
paramsType: "ListTriggersRequest",
|
|
87
|
+
returnType: "ListTriggersResponse",
|
|
88
|
+
isList: true,
|
|
89
|
+
paginationType: "offset",
|
|
90
|
+
pageParamKey: "page",
|
|
91
|
+
listItemType: "Trigger",
|
|
92
|
+
isPrivate: false,
|
|
93
|
+
description: "\""
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
methodName: "listJobResources",
|
|
97
|
+
protoName: "ListJobResources",
|
|
98
|
+
paramsType: "ListJobResourcesRequest",
|
|
99
|
+
returnType: "ListJobResourcesResponse",
|
|
100
|
+
isList: false,
|
|
101
|
+
paginationType: "none",
|
|
102
|
+
isPrivate: false,
|
|
103
|
+
description: "\""
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
methodName: "getJobLimits",
|
|
107
|
+
protoName: "GetJobLimits",
|
|
108
|
+
paramsType: "GetJobLimitsRequest",
|
|
109
|
+
returnType: "JobLimits",
|
|
110
|
+
isList: false,
|
|
111
|
+
paginationType: "none",
|
|
112
|
+
isPrivate: false,
|
|
113
|
+
description: "\""
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
}]
|
|
117
|
+
};
|
|
118
|
+
//#endregion
|
|
119
|
+
export { queriesMetadata };
|
|
@@ -150,7 +150,7 @@ export interface JobDefinition {
|
|
|
150
150
|
/**
|
|
151
151
|
* @deprecated Deprecated, please use startup_command instead.
|
|
152
152
|
*/
|
|
153
|
-
command
|
|
153
|
+
command?: string;
|
|
154
154
|
/**
|
|
155
155
|
* Environment variables of the job.
|
|
156
156
|
*/
|
|
@@ -248,7 +248,7 @@ export interface JobRun {
|
|
|
248
248
|
/**
|
|
249
249
|
* @deprecated Deprecated, please use startup_command instead.
|
|
250
250
|
*/
|
|
251
|
-
command
|
|
251
|
+
command?: string;
|
|
252
252
|
/**
|
|
253
253
|
* Environment variables of the job run.
|
|
254
254
|
*/
|
|
@@ -348,7 +348,7 @@ export type CreateJobDefinitionRequest = {
|
|
|
348
348
|
/**
|
|
349
349
|
* @deprecated Deprecated: please use startup_command instead.
|
|
350
350
|
*/
|
|
351
|
-
command
|
|
351
|
+
command?: string;
|
|
352
352
|
/**
|
|
353
353
|
* The main executable or entrypoint script to run.
|
|
354
354
|
If both command and startup_command are provided, only startup_command will be used.
|