text: # DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
  
  """
  Auto-generated class for CreateGrantBody
  """
  from .Grant import Grant
  from six import string_types
  
  from . import client_support
  
  
  class CreateGrantBody(object):
      """
      auto-generated. don't touch.
      """
  
      @staticmethod
      def create(**kwargs):
          """
          :type grant: Grant
          :type username: string_types
          :rtype: CreateGrantBody
          """
  
          return CreateGrantBody(**kwargs)
  
      def __init__(self, json=None, **kwargs):
          if json is None and not kwargs:
              raise ValueError('No data or kwargs present')
  
          class_name = 'CreateGrantBody'
          data = json or kwargs
  
          # set attributes
          data_types = [Grant]
          self.grant = client_support.set_property('grant', data, data_types, False, [], False, True, class_name)
          data_types = [string_types]
          self.username = client_support.set_property('username', data, data_types, False, [], False, True, class_name)
  
      def __str__(self):
          return self.as_json(indent=4)
  
      def as_json(self, indent=0):
          return client_support.to_json(self, indent=indent)
  
      def as_dict(self):
          return client_support.to_dict(self)
  