2 * ========================LICENSE_START=================================
5 * Copyright (C) 2023 Nordix Foundation
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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===================================
21 package org.oran.pmproducer.r1;
23 import com.fasterxml.jackson.annotation.JsonProperty;
24 import com.google.gson.annotations.SerializedName;
26 import io.swagger.v3.oas.annotations.media.Schema;
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 {
32 @SuppressWarnings("java:S1874")
33 @Schema(name = "info_job_identity", description = "Identity of the Information Job", required = true)
34 @SerializedName("info_job_identity")
35 @JsonProperty("info_job_identity")
36 public String id = "";
38 @Schema(name = "info_type_identity", description = "Type identity for the job")
39 @SerializedName("info_type_identity")
40 @JsonProperty("info_type_identity")
41 public String typeId = "";
43 @Schema(name = "info_job_data", description = "Json for the job data")
44 @SerializedName("info_job_data")
45 @JsonProperty("info_job_data")
46 public Object jobData;
48 @Schema(name = "owner", description = "The owner of the job")
49 @SerializedName("owner")
50 @JsonProperty("owner")
51 public String owner = "";
53 @Schema(name = "last_updated", description = "The time when the job was last updated or created (ISO-8601)")
54 @SerializedName("last_updated")
55 @JsonProperty("last_updated")
56 public String lastUpdated = "";
58 public ProducerJobInfo(Object jobData, String id, String typeId, String owner, String lastUpdated) {
60 this.jobData = jobData;
63 this.lastUpdated = lastUpdated;
66 public ProducerJobInfo() {}