You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
55
+
/**
56
+
* APIVersion defines the versioned schema of this representation of an object. Servers should
57
+
* convert recognized schemas to the latest internal value, and may reject unrecognized values.
"APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources")
"List of alertmanagers. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md")
118
96
publicList<V1Alertmanager> getItems() {
119
97
returnitems;
120
98
}
121
99
122
-
123
100
publicvoidsetItems(List<V1Alertmanager> items) {
124
101
this.items = items;
125
102
}
126
103
127
-
128
104
publicV1AlertmanagerListkind(Stringkind) {
129
-
105
+
130
106
this.kind = kind;
131
107
returnthis;
132
108
}
133
109
134
-
/**
135
-
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
110
+
/**
111
+
* Kind is a string value representing the REST resource this object represents. Servers may infer
112
+
* this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More
"Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds")
if (!V1AlertmanagerList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null
240
-
thrownewIllegalArgumentException(String.format("The required field(s) %s in V1AlertmanagerList is not found in the empty JSON string", V1AlertmanagerList.openapiRequiredFields.toString()));
// check to see if the JSON string contains additional fields
246
-
for (Entry<String, JsonElement> entry : entries) {
247
-
if (!V1AlertmanagerList.openapiFields.contains(entry.getKey())) {
248
-
thrownewIllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1AlertmanagerList` properties. JSON: %s", entry.getKey(), jsonObj.toString()));
249
-
}
250
-
}
251
-
252
-
// check to make sure all required properties/fields are present in the JSON string
253
-
for (StringrequiredField : V1AlertmanagerList.openapiRequiredFields) {
254
-
if (jsonObj.get(requiredField) == null) {
255
-
thrownewIllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString()));
256
-
}
257
-
}
258
-
if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) {
259
-
thrownewIllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString()));
260
-
}
261
-
// ensure the json data is an array
262
-
if (!jsonObj.get("items").isJsonArray()) {
263
-
thrownewIllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString()));
if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) {
272
-
thrownewIllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString()));
0 commit comments