You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/kubernetes/models/config-map/payloads.js

30 lines
753 B

import { KubernetesCommonMetadataPayload } from 'Kubernetes/models/common/payloads';
/**
* Payload for CREATE
*/
const _KubernetesConfigMapCreatePayload = Object.freeze({
metadata: new KubernetesCommonMetadataPayload(),
data: {},
binaryData: {},
});
export class KubernetesConfigMapCreatePayload {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesConfigMapCreatePayload)));
}
}
/**
* Payload for UPDATE
*/
const _KubernetesConfigMapUpdatePayload = Object.freeze({
metadata: new KubernetesCommonMetadataPayload(),
data: {},
binaryData: {},
});
export class KubernetesConfigMapUpdatePayload {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesConfigMapUpdatePayload)));
}
}