class_docstr: NOTE: This class is auto generated by the swagger code generator program.
  
  Do not edit the class manually.
docstr: Sets the kernel_type of this KernelPushRequest.
  
  The type of kernel. Cannot be changed once the kernel has been created  # noqa: E501
  
  :param kernel_type: The kernel_type of this KernelPushRequest.  # noqa: E501
  :type: str
docstr_tok: ["Sets","the","kernel_type","of","this","KernelPushRequest",".","The","type","of","kernel",".","Can","not","be","changed","once","the","kernel","has","been","created","#","noqa",":","E501",":","param","kernel_type",":","The","kernel_type","of","this","KernelPushRequest",".","#","noqa",":","E501",":","type",":","str"]
code: def kernel_type(self, kernel_type):
      """Sets the kernel_type of this KernelPushRequest.
  
      The type of kernel. Cannot be changed once the kernel has been created  # noqa: E501
  
      :param kernel_type: The kernel_type of this KernelPushRequest.  # noqa: E501
      :type: str
      """
      if kernel_type is None:
          raise ValueError(
              "Invalid value for `kernel_type`, must not be `None`"
          )  # noqa: E501
      allowed_values = ["script", "notebook"]  # noqa: E501
      if kernel_type not in allowed_values:
          raise ValueError(
              "Invalid value for `kernel_type` ({0}), must be one of {1}".format(  # noqa: E501
                  kernel_type, allowed_values
              )
          )
  
      self._kernel_type = kernel_type
  
imports: import pprint
  import re
  import six
label_desc: Use image node_id 13 for calling the KernelPushRequest obj's underlying member method code with example usage: obj.kernel_type(kernel_type) without return types