Package net.stickycode.kuuty.model.v18
Class IoK8sApimachineryPkgApisMetaV1WatchEvent
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApimachineryPkgApisMetaV1WatchEvent
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApimachineryPkgApisMetaV1WatchEvent extends Object
Event represents a single event to a watched resource.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_OBJECTstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description IoK8sApimachineryPkgApisMetaV1WatchEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IoK8sApimachineryPkgApisMetaV1WatchEvent_object(Object _object)booleanequals(Object o)ObjectgetObject()RawExtension is used to hold extensions in external versions.StringgetType()Get typeinthashCode()voidsetObject(Object _object)voidsetType(String type)StringtoString()IoK8sApimachineryPkgApisMetaV1WatchEventtype(String type)
-
-
-
Field Detail
-
JSON_PROPERTY_OBJECT
public static final String JSON_PROPERTY_OBJECT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
_object
public IoK8sApimachineryPkgApisMetaV1WatchEvent _object(Object _object)
-
getObject
public Object getObject()
RawExtension is used to hold extensions in external versions. To use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types. // Internal package: type MyAPIObject struct { runtime.TypeMeta `json:\",inline\"` MyPlugin runtime.Object `json:\"myPlugin\"` } type PluginA struct { AOption string `json:\"aOption\"` } // External package: type MyAPIObject struct { runtime.TypeMeta `json:\",inline\"` MyPlugin runtime.RawExtension `json:\"myPlugin\"` } type PluginA struct { AOption string `json:\"aOption\"` } // On the wire, the JSON will look something like this: { \"kind\":\"MyAPIObject\", \"apiVersion\":\"v1\", \"myPlugin\": { \"kind\":\"PluginA\", \"aOption\":\"foo\", }, } So what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)- Returns:
- _object
-
setObject
public void setObject(Object _object)
-
type
public IoK8sApimachineryPkgApisMetaV1WatchEvent type(String type)
-
getType
public String getType()
Get type- Returns:
- type
-
setType
public void setType(String type)
-
-