class TencentCloud::Cynosdb::V20190107::ModifyClusterDatabaseRequest

ModifyClusterDatabase请求参数结构体

def deserialize(params)

def deserialize(params)
  @ClusterId = params['ClusterId']
  @DbName = params['DbName']
  unless params['NewUserHostPrivileges'].nil?
    @NewUserHostPrivileges = []
    params['NewUserHostPrivileges'].each do |i|
      userhostprivilege_tmp = UserHostPrivilege.new
      userhostprivilege_tmp.deserialize(i)
      @NewUserHostPrivileges << userhostprivilege_tmp
    end
  end
  @Description = params['Description']
  unless params['OldUserHostPrivileges'].nil?
    @OldUserHostPrivileges = []
    params['OldUserHostPrivileges'].each do |i|
      userhostprivilege_tmp = UserHostPrivilege.new
      userhostprivilege_tmp.deserialize(i)
      @OldUserHostPrivileges << userhostprivilege_tmp
    end
  end
end

def initialize(clusterid=nil, dbname=nil, newuserhostprivileges=nil, description=nil, olduserhostprivileges=nil)

def initialize(clusterid=nil, dbname=nil, newuserhostprivileges=nil, description=nil, olduserhostprivileges=nil)
  @ClusterId = clusterid
  @DbName = dbname
  @NewUserHostPrivileges = newuserhostprivileges
  @Description = description
  @OldUserHostPrivileges = olduserhostprivileges
end