mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-23 09:13:34 -05:00
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
37 lines
875 B
JavaScript
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;
|