Files
awx/awx/ui/src/api/models/Schedules.js
mabashian 4e665ca77f Change ask_job_slicing_on_launch to ask_job_slice_count_on_launch to match api
Adds support for prompting labels on launch in the UI

Fix execution environment prompting in UI

Round out support for prompting all the things on JT launch

Adds timeout to job details

Adds fetchAllLabels to JT/WFJT data models

Moves labels methods out to a mixin so they can be shared across JTs/WFJTs/Schedules

Fixes bug where ee was not being sent on launch

Adds the ability to prompt for ee's, ig's, labels, timeout and job slicing to schedules

Fixes bug where saving schedule form without opening the prompt would throw errors

Adds support for IGs and labels to workflow node prompting

Adds support for label prompting to node modal

Fix job template form tests
2022-09-22 15:18:23 -04:00

37 lines
875 B
JavaScript

import Base from '../Base';
import LabelsMixin from '../mixins/Labels.mixin';
class Schedules extends LabelsMixin(Base) {
constructor(http) {
super(http);
this.baseUrl = 'api/v2/schedules/';
}
createPreview(data) {
return this.http.post(`${this.baseUrl}preview/`, data);
}
readCredentials(resourceId, params) {
return this.http.get(`${this.baseUrl}${resourceId}/credentials/`, params);
}
associateCredential(resourceId, credentialId) {
return this.http.post(`${this.baseUrl}${resourceId}/credentials/`, {
id: credentialId,
});
}
disassociateCredential(resourceId, credentialId) {
return this.http.post(`${this.baseUrl}${resourceId}/credentials/`, {
id: credentialId,
disassociate: true,
});
}
readZoneInfo() {
return this.http.get(`${this.baseUrl}zoneinfo/`);
}
}
export default Schedules;