|
| 1 | +/* |
| 2 | + * Copyright 2020 Marc Nuri |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.marcnuri.yakc.model.io.dapr.v2alpha1; |
| 18 | + |
| 19 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 20 | +import com.marcnuri.yakc.model.ListModel; |
| 21 | +import com.marcnuri.yakc.model.Model; |
| 22 | +import com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta; |
| 23 | +import java.util.List; |
| 24 | +import lombok.AllArgsConstructor; |
| 25 | +import lombok.Builder; |
| 26 | +import lombok.Data; |
| 27 | +import lombok.NoArgsConstructor; |
| 28 | +import lombok.NonNull; |
| 29 | +import lombok.Singular; |
| 30 | +import lombok.ToString; |
| 31 | + |
| 32 | +/** |
| 33 | + * SubscriptionList is a list of Subscription |
| 34 | + */ |
| 35 | +@SuppressWarnings({"squid:S1192", "WeakerAccess", "unused"}) |
| 36 | +@Builder(toBuilder = true, builderClassName = "Builder") |
| 37 | +@AllArgsConstructor |
| 38 | +@NoArgsConstructor |
| 39 | +@Data |
| 40 | +@ToString |
| 41 | +public class SubscriptionList implements Model, ListModel<Subscription> { |
| 42 | + |
| 43 | + |
| 44 | + /** |
| 45 | + * 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 |
| 46 | + */ |
| 47 | + @JsonProperty("apiVersion") |
| 48 | + private String apiVersion; |
| 49 | + |
| 50 | + /** |
| 51 | + * List of subscriptions. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md |
| 52 | + */ |
| 53 | + @NonNull |
| 54 | + @JsonProperty("items") |
| 55 | + @Singular(value = "addToItems", ignoreNullCollections = true) |
| 56 | + private List<Subscription> items; |
| 57 | + |
| 58 | + /** |
| 59 | + * 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 |
| 60 | + */ |
| 61 | + @JsonProperty("kind") |
| 62 | + private String kind; |
| 63 | + |
| 64 | + @JsonProperty("metadata") |
| 65 | + private ListMeta metadata; |
| 66 | + |
| 67 | +} |
| 68 | + |
0 commit comments