Creating PM-producer
[nonrtric/plt/ranpm.git] / pmproducer / src / main / java / org / oran / pmproducer / r1 / ProducerJobInfo.java
1 /*-
2  * ========================LICENSE_START=================================
3  * O-RAN-SC
4  * %%
5  * Copyright (C) 2023 Nordix Foundation
6  * %%
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ========================LICENSE_END===================================
19  */
20
21 package org.oran.pmproducer.r1;
22
23 import com.fasterxml.jackson.annotation.JsonProperty;
24 import com.google.gson.annotations.SerializedName;
25
26 import io.swagger.v3.oas.annotations.media.Schema;
27
28 @Schema(name = "producer_info_job_request",
29         description = "The body of the Information Producer callbacks for Information Job creation and deletion")
30 public class ProducerJobInfo {
31
32     @Schema(name = "info_job_identity", description = "Identity of the Information Job", required = true)
33     @SerializedName("info_job_identity")
34     @JsonProperty("info_job_identity")
35     public String id = "";
36
37     @Schema(name = "info_type_identity", description = "Type identity for the job")
38     @SerializedName("info_type_identity")
39     @JsonProperty("info_type_identity")
40     public String typeId = "";
41
42     @Schema(name = "info_job_data", description = "Json for the job data")
43     @SerializedName("info_job_data")
44     @JsonProperty("info_job_data")
45     public Object jobData;
46
47     @Schema(name = "owner", description = "The owner of the job")
48     @SerializedName("owner")
49     @JsonProperty("owner")
50     public String owner = "";
51
52     @Schema(name = "last_updated", description = "The time when the job was last updated or created (ISO-8601)")
53     @SerializedName("last_updated")
54     @JsonProperty("last_updated")
55     public String lastUpdated = "";
56
57     public ProducerJobInfo(Object jobData, String id, String typeId, String owner, String lastUpdated) {
58         this.id = id;
59         this.jobData = jobData;
60         this.typeId = typeId;
61         this.owner = owner;
62         this.lastUpdated = lastUpdated;
63     }
64
65     public ProducerJobInfo() {}
66
67 }