/// <summary> /// Initializes a new instance of the <see cref="V1beta1ControllerRevision" /> class. /// </summary> /// <param name="ApiVersion">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/api-conventions.md#resources.</param> /// <param name="Data">Data is the serialized representation of the state..</param> /// <param name="Kind">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/api-conventions.md#types-kinds.</param> /// <param name="Metadata">Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.</param> /// <param name="Revision">Revision indicates the revision of the state represented by Data. (required).</param> public V1beta1ControllerRevision(string ApiVersion = default(string), RuntimeRawExtension Data = default(RuntimeRawExtension), string Kind = default(string), V1ObjectMeta Metadata = default(V1ObjectMeta), long?Revision = default(long?)) { // to ensure "Revision" is required (not null) if (Revision == null) { throw new InvalidDataException("Revision is a required property for V1beta1ControllerRevision and cannot be null"); } else { this.Revision = Revision; } this.ApiVersion = ApiVersion; this.Data = Data; this.Kind = Kind; this.Metadata = Metadata; }
/// <summary> /// Initializes a new instance of the <see cref="V1WatchEvent" /> class. /// </summary> /// <param name="_Object">Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. (required).</param> /// <param name="Type">Type (required).</param> public V1WatchEvent(RuntimeRawExtension _Object = default(RuntimeRawExtension), string Type = default(string)) { // to ensure "_Object" is required (not null) if (_Object == null) { throw new InvalidDataException("_Object is a required property for V1WatchEvent and cannot be null"); } else { this._Object = _Object; } // to ensure "Type" is required (not null) if (Type == null) { throw new InvalidDataException("Type is a required property for V1WatchEvent and cannot be null"); } else { this.Type = Type; } }